generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb in wombat-cli-0.6.1 vs generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb in wombat-cli-0.6.2
- old
+ new
@@ -1,22 +1,22 @@
-# 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
+# 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