chef/site-cookbooks/kosmos_garage/test/integration/default/default_test.rb
Râu Cao b5ff60214c Install/configure Garage
Add a garage cookbook that installs the garage binary distribution and
creates the necessary configuration and system service.

Also deploy two new VMs to act as storage nodes.

refs #428
2022-11-25 10:56:22 +00:00

22 lines
529 B
Ruby

# InSpec test for recipe kosmos_garage::garagej
# The Chef InSpec reference, with examples and extensive documentation, can be
# found at https://docs.chef.io/inspec/resources/
describe file('/usr/local/bin/garage') do
it { should exist }
its('mode') { should cmp '00755' }
end
describe service('garage') do
it { should be_enabled }
it { should be_installed }
it { should be_running }
end
[3900, 3901, 3902, 3903, 3904].each do |port_number|
describe port(port_number) do
it { should be_listening }
end
end