Skip to content

Commit 5aad2e2

Browse files
committed
Test for templating correctness
1 parent c9c6f66 commit 5aad2e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

samba-timemachine/spec/samba-timemachine/samba-timemachine_spec.rb

+6-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ def compose
8080

8181
describe command('/usr/bin/testparm') do
8282
its(:stderr) { should match(/Loaded services file OK/) }
83-
its(:stdout) { should match(/comment = Apple TimeMachine Backup Target/) }
84-
its(:stdout) { should match(/fruit:time machine max size = 524288000000B/) }
8583
its(:exit_status) { should eq 0 }
8684
end
8785

@@ -90,6 +88,12 @@ def compose
9088
its(:exit_status) { should eq 0 }
9189
end
9290

91+
describe process('smbd') do
92+
it { is_expected.to be_running }
93+
its(:args) { is_expected.to contain('--no-process-group --foreground') }
94+
its(:user) { is_expected.to eq('root') }
95+
end
96+
9397
describe command('ss -tulpn') do
9498
its(:stdout) { should match(/^tcp.*0.0.0.0:445.*"smbd",pid=1/)}
9599
its(:exit_status) { should eq 0 }

0 commit comments

Comments
 (0)