feat: add listening test
This commit is contained in:
parent
4c897ed635
commit
cf18a2e564
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,11 @@ describe file('/etc/bind/named.conf.local') do
|
|||
it { should contain '4.2.2.4' }
|
||||
end
|
||||
|
||||
describe port(53) do
|
||||
it { should be_listening.with('tcp') }
|
||||
it { should be_listening.with('udp') }
|
||||
end
|
||||
|
||||
describe command('host hello.test.local 127.0.0.1') do
|
||||
its(:exit_status) { should eq 0 }
|
||||
its(:stdout) { should contain('1.2.3.4') }
|
||||
|
|
Loading…
Reference in a new issue