Commit 88f134a1 authored by Jamie Tanna's avatar Jamie Tanna

Add Inspec test cases

Also, remove the unused smoke tests
parent 6c759fd2
Pipeline #8519560 passed with stage
in 10 minutes and 2 seconds
describe user('jamie') do
it { should exist }
its('groups') { should eq ['test'] }
end
describe group('test') do
it { should exist }
end
describe directory('/home/jamie') do
it { should exist }
end
describe user('jamie') do
it { should exist }
its('groups') { should eq ['jamie'] }
end
describe group('jamie') do
it { should exist }
end
describe directory('/home/jamie') do
it { should exist }
end
describe user('everybody') do
it { should exist }
its('groups') { should eq ['everybody'] }
end
describe group('everybody') do
it { should exist }
end
describe directory('/home/everybody') do
it { should exist }
end
describe file('/home/everybody/hello.txt') do
it { should exist }
its('mode') { should cmp '0600' }
its('owner') { should eq 'everybody' }
its('content') { should eq 'hello everybody' }
end
# # encoding: utf-8
# Inspec test for recipe user-cookbook::default
# The Inspec reference, with examples and extensive documentation, can be
# found at http://inspec.io/docs/reference/resources/
unless os.windows?
# This is an example test, replace with your own test.
describe user('root'), :skip do
it { should exist }
end
end
# This is an example test, replace it with your own test.
describe port(80), :skip do
it { should_not be_listening }
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment