123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644 |
- Feature: Querying feature
- This feature is a collection of non-specific querying tests;
- for instance whether multiple queries in a row return consistent
- answers.
- Scenario: Repeated queries
- Given I have bind10 running with configuration example.org.inmem.config
- And wait for bind10 stderr message BIND10_STARTED_CC
- And wait for bind10 stderr message CMDCTL_STARTED
- And wait for bind10 stderr message AUTH_SERVER_STARTED
- And wait for bind10 stderr message STATS_STARTING
- bind10 module Auth should be running
- And bind10 module Stats should be running
- And bind10 module Resolver should not be running
- And bind10 module Xfrout should not be running
- And bind10 module Zonemgr should not be running
- And bind10 module Xfrin should not be running
- And bind10 module StatsHttpd should not be running
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 0
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
- Then the statistics counter qryauthans for the zone _SERVER_ should be 0
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- A query for www.example.org should have rcode NOERROR
- The last query response should have flags qr aa rd
- The last query response should have ancount 1
- The last query response should have nscount 2
- The last query response should have adcount 2
- The answer section of the last query response should be
- """
- www.example.org. 3600 IN A 192.0.2.1
- """
- The authority section of the last query response should be
- """
- example.org. 3600 IN NS ns1.example.org.
- example.org. 3600 IN NS ns2.example.org.
- """
- The additional section of the last query response should be
- """
- ns1.example.org. 3600 IN A 192.0.2.3
- ns2.example.org. 3600 IN A 192.0.2.4
- """
- And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
- And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 1
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 1
- Then the statistics counter qryauthans for the zone _SERVER_ should be 1
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- # Repeat of the above
- A query for www.example.org should have rcode NOERROR
- The last query response should have flags qr aa rd
- The last query response should have ancount 1
- The last query response should have nscount 2
- The last query response should have adcount 2
- The answer section of the last query response should be
- """
- www.example.org. 3600 IN A 192.0.2.1
- """
- The authority section of the last query response should be
- """
- example.org. 3600 IN NS ns1.example.org.
- example.org. 3600 IN NS ns2.example.org.
- """
- The additional section of the last query response should be
- """
- ns1.example.org. 3600 IN A 192.0.2.3
- ns2.example.org. 3600 IN A 192.0.2.4
- """
- And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
- And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 2
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 2
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 2
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 2
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 2
- Then the statistics counter qryauthans for the zone _SERVER_ should be 2
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 2
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- # And now query something completely different
- A query for nosuchname.example.org should have rcode NXDOMAIN
- The last query response should have flags qr aa rd
- The last query response should have ancount 0
- The last query response should have nscount 1
- The last query response should have adcount 0
- The authority section of the last query response should be
- """
- example.org. 3600 IN SOA ns1.example.org. admin.example.org. 1234 3600 1800 2419200 7200
- """
- And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
- And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 3
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 3
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 3
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 3
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 2
- Then the statistics counter qryauthans for the zone _SERVER_ should be 3
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 2
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 1
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- Scenario: ANY query
- Given I have bind10 running with configuration example.org.inmem.config
- And wait for bind10 stderr message BIND10_STARTED_CC
- And wait for bind10 stderr message CMDCTL_STARTED
- And wait for bind10 stderr message AUTH_SERVER_STARTED
- bind10 module Auth should be running
- And bind10 module Stats should be running
- And bind10 module Resolver should not be running
- And bind10 module Xfrout should not be running
- And bind10 module Zonemgr should not be running
- And bind10 module Xfrin should not be running
- And bind10 module StatsHttpd should not be running
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 0
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
- Then the statistics counter qryauthans for the zone _SERVER_ should be 0
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- A query for example.org type ANY should have rcode NOERROR
- The last query response should have flags qr aa rd
- The last query response should have ancount 4
- The last query response should have nscount 0
- The last query response should have adcount 3
- The answer section of the last query response should be
- """
- example.org. 3600 IN NS ns1.example.org.
- example.org. 3600 IN NS ns2.example.org.
- example.org. 3600 IN SOA ns1.example.org. admin.example.org. 1234 3600 1800 2419200 7200
- example.org. 3600 IN MX 10 mail.example.org.
- """
- The additional section of the last query response should be
- """
- ns1.example.org. 3600 IN A 192.0.2.3
- ns2.example.org. 3600 IN A 192.0.2.4
- mail.example.org. 3600 IN A 192.0.2.10
- """
- And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
- And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 1
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 1
- Then the statistics counter qryauthans for the zone _SERVER_ should be 1
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- Scenario: Delegation query for unsigned child zone
- Given I have bind10 running with configuration example.org.inmem.config
- And wait for bind10 stderr message BIND10_STARTED_CC
- And wait for bind10 stderr message CMDCTL_STARTED
- And wait for bind10 stderr message AUTH_SERVER_STARTED
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 0
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
- Then the statistics counter qryauthans for the zone _SERVER_ should be 0
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- A dnssec query for www.sub.example.org type AAAA should have rcode NOERROR
- The last query response should have flags qr rd
- The last query response should have edns_flags do
- The last query response should have ancount 0
- The last query response should have nscount 1
- The last query response should have adcount 2
- The authority section of the last query response should be
- """
- sub.example.org. 3600 IN NS ns.sub.example.org.
- """
- The additional section of the last query response should be
- """
- ns.sub.example.org. 3600 IN A 192.0.2.101
- """
- And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
- And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 1
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 1
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 1
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 1
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
- Then the statistics counter qryauthans for the zone _SERVER_ should be 0
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 1
- Then the statistics counter qryreferral for the zone _SERVER_ should be 1
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- Scenario: SSHFP query
- # We are testing one more RR type for a normal successful case
- Given I have bind10 running with configuration example.org.inmem.config
- And wait for bind10 stderr message BIND10_STARTED_CC
- And wait for bind10 stderr message CMDCTL_STARTED
- And wait for bind10 stderr message AUTH_SERVER_STARTED
- bind10 module Auth should be running
- And bind10 module Stats should be running
- And bind10 module Resolver should not be running
- And bind10 module Xfrout should not be running
- And bind10 module Zonemgr should not be running
- And bind10 module Xfrin should not be running
- And bind10 module StatsHttpd should not be running
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 0
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
- Then the statistics counter qryauthans for the zone _SERVER_ should be 0
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- A query for example.org type SSHFP should have rcode NOERROR
- The last query response should have ancount 0
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 1
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
- Then the statistics counter qryauthans for the zone _SERVER_ should be 1
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 1
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
- A query for shell.example.org type SSHFP should have rcode NOERROR
- The last query response should have ancount 1
- The answer section of the last query response should be
- """
- shell.example.org. 3600 IN SSHFP 2 1 123456789abcdef67890123456789abcdef67890
- """
- And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
- And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
- When I query statistics zones of bind10 module Auth
- last bindctl output should not contain "error"
- Then the statistics counter v4 in the category request for the zone _SERVER_ should be 2
- Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter udp in the category request for the zone _SERVER_ should be 2
- Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
- Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
- Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
- Then the statistics counter query in the category opcode for the zone _SERVER_ should be 2
- Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
- Then the statistics counter responses for the zone _SERVER_ should be 2
- Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
- Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
- Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
- Then the statistics counter qrysuccess for the zone _SERVER_ should be 1
- Then the statistics counter qryauthans for the zone _SERVER_ should be 2
- Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
- Then the statistics counter qryreferral for the zone _SERVER_ should be 0
- Then the statistics counter qrynxrrset for the zone _SERVER_ should be 1
- Then the statistics counter authqryrej for the zone _SERVER_ should be 0
- Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 2
- Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
- Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
|