Sha256: 833386d819d6ef8071c83cdf1e757be9f4262e301617374be9f3dc5411458552

Contents?: true

Size: 843 Bytes

Versions: 5

Compression:

Stored size: 843 Bytes

Contents

# automate tests

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

  describe package('push-jobs-client') do
    it { should be_installed }
  end
end

etc_hosts = os.windows? ? 'C:\Windows\System32\Drivers\etc\hosts' : '/etc/hosts'

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

5 entries across 5 versions & 1 rubygems

Version Path
wombat-cli-0.6.1 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.6.0 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.5.0 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.4.3 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.4.2 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb