Skip to content

Commit 5cd8eb3

Browse files
committed
Add missing tests for waagent.service
1 parent 2584bf1 commit 5cd8eb3

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

bosh-stemcell/spec/stemcells/azure_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,20 @@
6060
it { should be_enabled }
6161
end
6262
end
63+
64+
describe 'WALinuxAgent configuration' do
65+
describe file('/etc/waagent.conf') do
66+
it { should be_owned_by('root') }
67+
end
68+
69+
describe file('/lib/systemd/system/walinuxagent.service') do
70+
it { should be_mode(0644) }
71+
it { should be_owned_by('root') }
72+
end
73+
74+
describe service('walinuxagent') do
75+
it { should be_enabled }
76+
end
77+
end
6378
end
6479
end

0 commit comments

Comments
 (0)