Sha256: 9d13f8c432df9b3a6bf3301490f03c5f40fceaab88a49e86ef5650651d31a99d
Contents?: true
Size: 941 Bytes
Versions: 1
Compression:
Stored size: 941 Bytes
Contents
# compliance tests describe command('hostname') do its('stdout') { should eq "compliance\n" } end describe file('/home/vagrant/.ssh/authorized_keys') do its('content') { file("/tmp/public.pub").content } end describe package('chef-compliance') do it { should be_installed } end %w(crt key).each do |ext| describe file("/var/opt/chef-compliance/ssl/ca/compliance.animals.biz.#{ext}") do its('content') { should eq file("/tmp/compliance.#{ext}").content } end end describe file('/etc/hosts') do its('content') { should match /172.31.54.10\s.*chef.animals.biz chef/ } its('content') { should match /172.31.54.11\s.*automate.animals.biz automate/ } its('content') { should match /172.31.54.12\s.*compliance.animals.biz compliance/ } its('content') { should match /172.31.54.51\s.*build-node-1.animals.biz build-node-1/ } its('content') { should match /172.31.54.201\s.*workstation-1.animals.biz workstation-1/ } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wombat-cli-0.2.0 | cookbooks/compliance/test/integration/default/compliance.rb |