From 200ce8b6b378b5ab0c9211f9c4beca23159dd6d6 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sat, 17 Mar 2018 15:14:00 +0100 Subject: [PATCH] feat: add a check for dnssec answer --- test/integration/bind/serverspec/bind_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/bind/serverspec/bind_spec.rb b/test/integration/bind/serverspec/bind_spec.rb index be8c917..f221046 100644 --- a/test/integration/bind/serverspec/bind_spec.rb +++ b/test/integration/bind/serverspec/bind_spec.rb @@ -56,9 +56,10 @@ describe port(53) do it { should be_listening.with('udp') } end -describe command('dig +nocmd +noall +answer hello.test.local @127.0.0.1') do +describe command('dig +nocmd +noall +answer +dnssec hello.test.local @127.0.0.1') do its(:exit_status) { should eq 0 } its(:stdout) { should contain(/hello\.test\.local\.\s+300\s+IN\s+A\s+1\.2\.3\.4/) } + its(:stdout) { should contain(/hello\.test\.local\.\s+300\s+IN\s+RRSIG\s+A /) } end describe command('dig +nocmd +noall +answer -t mx test.local @127.0.0.1') do