Sha256: ac4fe521623a221676bc4c4395882fe8668a0d73f2294c6cfe43790e36f3016c

Contents?: true

Size: 821 Bytes

Versions: 11

Compression:

Stored size: 821 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

11 entries across 11 versions & 1 rubygems

Version Path
wombat-cli-0.7.3 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.7.2 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.6.2 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.4.1 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.4.0 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.3.4 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.3.3 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.3.2 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.3.1 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.3.0 generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb
wombat-cli-0.2.1 cookbooks/infranodes/test/integration/default/infranodes_spec.rb