|
| 1 | +describe port(443) do |
| 2 | + it { should be_listening } |
| 3 | + its('protocols') { should include 'tcp' } |
| 4 | +end |
| 5 | + |
| 6 | +describe port(80) do |
| 7 | + it { should be_listening } |
| 8 | + its('protocols') { should include 'tcp' } |
| 9 | +end |
| 10 | + |
| 11 | +describe port(4321) do |
| 12 | + it { should be_listening } |
| 13 | + its('protocols') { should include 'tcp' } |
| 14 | +end |
| 15 | + |
| 16 | +describe port(9683) do |
| 17 | + it { should be_listening } |
| 18 | + its('protocols') { should include 'tcp' } |
| 19 | +end |
| 20 | + |
| 21 | +describe port(9463) do |
| 22 | + it { should be_listening } |
| 23 | + its('protocols') { should include 'tcp' } |
| 24 | +end |
| 25 | + |
| 26 | +describe port(9090) do |
| 27 | + it { should be_listening } |
| 28 | + its('protocols') { should include 'tcp' } |
| 29 | +end |
| 30 | + |
| 31 | +describe port(8000) do |
| 32 | + it { should be_listening } |
| 33 | + its('protocols') { should include 'tcp' } |
| 34 | +end |
| 35 | + |
| 36 | +describe port(5432) do |
| 37 | + it { should be_listening } |
| 38 | + its('protocols') { should include 'tcp' } |
| 39 | +end |
| 40 | + |
| 41 | +describe port(5672) do |
| 42 | + it { should be_listening } |
| 43 | + its('protocols') { should include 'tcp' } |
| 44 | +end |
| 45 | + |
| 46 | +describe port(16379) do |
| 47 | + it { should be_listening } |
| 48 | + its('protocols') { should include 'tcp' } |
| 49 | +end |
| 50 | + |
| 51 | +describe package('chef-server-core') do |
| 52 | + it { should be_installed } |
| 53 | + its('version') { should eq '12.11.1-1' } |
| 54 | +end |
| 55 | + |
| 56 | +describe package('chef') do |
| 57 | + it { should be_installed } |
| 58 | + its('version') { should eq '12.16.42-1' } |
| 59 | +end |
| 60 | + |
| 61 | +describe package('chef-manage') do |
| 62 | + it { should be_installed } |
| 63 | + its('version') { should eq '2.4.4-1' } |
| 64 | +end |
| 65 | + |
| 66 | +describe file('/etc/opscode/chef-server.rb') do |
| 67 | + it { should be_file } |
| 68 | + it { should be_owned_by 'root' } |
| 69 | + its('content') { should match(%r{^topology "standalone"$}) } |
| 70 | +end |
| 71 | + |
| 72 | +describe file('/var/opt/chef-manage/.license.accepted') do |
| 73 | + it { should exist } |
| 74 | + its('size') { should be 0 } |
| 75 | +end |
| 76 | + |
| 77 | +describe file('/var/opt/opscode-reporting/.license.accepted') do |
| 78 | + it { should exist } |
| 79 | + its('size') { should be 0 } |
| 80 | +end |
0 commit comments