Sha256: d39beadafa174c862af8b84d68befa0c0e38c95df658e86f41eb1736fb188a7f

Contents?: true

Size: 1.38 KB

Versions: 5

Compression:

Stored size: 1.38 KB

Contents

# build-node tests

describe file("/home/#{os.name}/.ssh/authorized_keys") do
  its('content') { should include file("/tmp/public.pub").content }
  it { should exist }
end

%w(chef automate compliance).each do |hostname|
  describe file("/etc/chef/trusted_certs/#{hostname}_animals_biz.crt") do
    its('content') { should eq file("/tmp/#{hostname}.crt").content }
  end
end

describe file('/etc/chef/client.pem') do
  its('content') { file("/tmp/private.pem").content }
end

describe file('/etc/chef/client.rb') do
  its('content') { should match /chef_server_url\s.*'https:\/\/chef.animals.biz\/organizations\/marsupials'/ }
  its('content') { should match /client_key\s.*'\/etc\/chef\/client.pem'/}
  its('content') { should match /node_name\s.*'build-node-1'/}
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

describe package('chefdk') do
  it { should be_installed }
end

# verify dbuild user

# verify delivery workspace

# verify delivery configs

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wombat-cli-0.6.1 generator_files/cookbooks/build_node/test/integration/default/build-node_spec.rb
wombat-cli-0.6.0 generator_files/cookbooks/build_node/test/integration/default/build-node_spec.rb
wombat-cli-0.5.0 generator_files/cookbooks/build_node/test/integration/default/build-node_spec.rb
wombat-cli-0.4.3 generator_files/cookbooks/build_node/test/integration/default/build-node_spec.rb
wombat-cli-0.4.2 generator_files/cookbooks/build_node/test/integration/default/build-node_spec.rb