queries.feature 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  1. Feature: Querying feature
  2. This feature is a collection of non-specific querying tests;
  3. for instance whether multiple queries in a row return consistent
  4. answers.
  5. Scenario: Repeated queries
  6. Given I have bind10 running with configuration example.org.inmem.config
  7. And wait for bind10 stderr message BIND10_STARTED_CC
  8. And wait for bind10 stderr message CMDCTL_STARTED
  9. And wait for bind10 stderr message AUTH_SERVER_STARTED
  10. And wait for bind10 stderr message STATS_STARTING
  11. bind10 module Auth should be running
  12. And bind10 module Stats should be running
  13. And bind10 module Resolver should not be running
  14. And bind10 module Xfrout should not be running
  15. And bind10 module Zonemgr should not be running
  16. And bind10 module Xfrin should not be running
  17. And bind10 module StatsHttpd should not be running
  18. When I query statistics zones of bind10 module Auth
  19. last bindctl output should not contain "error"
  20. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
  21. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  22. Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
  23. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  24. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  25. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  26. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  27. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  28. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  29. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  30. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
  31. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  32. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  33. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  34. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  35. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  36. Then the statistics counter responses for the zone _SERVER_ should be 0
  37. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  38. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  39. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  40. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  41. Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
  42. Then the statistics counter qryauthans for the zone _SERVER_ should be 0
  43. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  44. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  45. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  46. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  47. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
  48. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  49. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  50. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  51. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  52. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  53. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  54. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  55. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  56. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  57. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  58. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  59. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  60. A query for www.example.org should have rcode NOERROR
  61. The last query response should have flags qr aa rd
  62. The last query response should have ancount 1
  63. The last query response should have nscount 2
  64. The last query response should have adcount 2
  65. The answer section of the last query response should be
  66. """
  67. www.example.org. 3600 IN A 192.0.2.1
  68. """
  69. The authority section of the last query response should be
  70. """
  71. example.org. 3600 IN NS ns1.example.org.
  72. example.org. 3600 IN NS ns2.example.org.
  73. """
  74. The additional section of the last query response should be
  75. """
  76. ns1.example.org. 3600 IN A 192.0.2.3
  77. ns2.example.org. 3600 IN A 192.0.2.4
  78. """
  79. And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
  80. And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
  81. When I query statistics zones of bind10 module Auth
  82. last bindctl output should not contain "error"
  83. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
  84. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  85. Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
  86. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  87. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  88. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  89. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  90. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  91. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  92. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  93. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
  94. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  95. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  96. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  97. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  98. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  99. Then the statistics counter responses for the zone _SERVER_ should be 1
  100. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  101. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  102. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  103. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  104. Then the statistics counter qrysuccess for the zone _SERVER_ should be 1
  105. Then the statistics counter qryauthans for the zone _SERVER_ should be 1
  106. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  107. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  108. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  109. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  110. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
  111. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  112. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  113. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  114. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  115. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  116. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  117. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  118. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  119. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  120. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  121. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  122. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  123. # Repeat of the above
  124. A query for www.example.org should have rcode NOERROR
  125. The last query response should have flags qr aa rd
  126. The last query response should have ancount 1
  127. The last query response should have nscount 2
  128. The last query response should have adcount 2
  129. The answer section of the last query response should be
  130. """
  131. www.example.org. 3600 IN A 192.0.2.1
  132. """
  133. The authority section of the last query response should be
  134. """
  135. example.org. 3600 IN NS ns1.example.org.
  136. example.org. 3600 IN NS ns2.example.org.
  137. """
  138. The additional section of the last query response should be
  139. """
  140. ns1.example.org. 3600 IN A 192.0.2.3
  141. ns2.example.org. 3600 IN A 192.0.2.4
  142. """
  143. And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
  144. And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
  145. When I query statistics zones of bind10 module Auth
  146. last bindctl output should not contain "error"
  147. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 2
  148. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  149. Then the statistics counter udp in the category request for the zone _SERVER_ should be 2
  150. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  151. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  152. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  153. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  154. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  155. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  156. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  157. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 2
  158. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  159. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  160. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  161. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  162. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  163. Then the statistics counter responses for the zone _SERVER_ should be 2
  164. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  165. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  166. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  167. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  168. Then the statistics counter qrysuccess for the zone _SERVER_ should be 2
  169. Then the statistics counter qryauthans for the zone _SERVER_ should be 2
  170. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  171. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  172. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  173. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  174. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 2
  175. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  176. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  177. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  178. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  179. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  180. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  181. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  182. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  183. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  184. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  185. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  186. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  187. # And now query something completely different
  188. A query for nosuchname.example.org should have rcode NXDOMAIN
  189. The last query response should have flags qr aa rd
  190. The last query response should have ancount 0
  191. The last query response should have nscount 1
  192. The last query response should have adcount 0
  193. The authority section of the last query response should be
  194. """
  195. example.org. 3600 IN SOA ns1.example.org. admin.example.org. 1234 3600 1800 2419200 7200
  196. """
  197. And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
  198. And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
  199. When I query statistics zones of bind10 module Auth
  200. last bindctl output should not contain "error"
  201. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 3
  202. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  203. Then the statistics counter udp in the category request for the zone _SERVER_ should be 3
  204. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  205. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  206. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  207. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  208. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  209. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  210. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  211. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 3
  212. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  213. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  214. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  215. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  216. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  217. Then the statistics counter responses for the zone _SERVER_ should be 3
  218. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  219. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  220. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  221. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  222. Then the statistics counter qrysuccess for the zone _SERVER_ should be 2
  223. Then the statistics counter qryauthans for the zone _SERVER_ should be 3
  224. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  225. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  226. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  227. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  228. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 2
  229. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  230. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  231. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 1
  232. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  233. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  234. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  235. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  236. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  237. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  238. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  239. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  240. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  241. Scenario: ANY query
  242. Given I have bind10 running with configuration example.org.inmem.config
  243. And wait for bind10 stderr message BIND10_STARTED_CC
  244. And wait for bind10 stderr message CMDCTL_STARTED
  245. And wait for bind10 stderr message AUTH_SERVER_STARTED
  246. bind10 module Auth should be running
  247. And bind10 module Stats should be running
  248. And bind10 module Resolver should not be running
  249. And bind10 module Xfrout should not be running
  250. And bind10 module Zonemgr should not be running
  251. And bind10 module Xfrin should not be running
  252. And bind10 module StatsHttpd should not be running
  253. When I query statistics zones of bind10 module Auth
  254. last bindctl output should not contain "error"
  255. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
  256. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  257. Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
  258. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  259. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  260. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  261. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  262. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  263. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  264. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  265. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
  266. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  267. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  268. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  269. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  270. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  271. Then the statistics counter responses for the zone _SERVER_ should be 0
  272. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  273. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  274. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  275. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  276. Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
  277. Then the statistics counter qryauthans for the zone _SERVER_ should be 0
  278. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  279. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  280. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  281. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  282. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
  283. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  284. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  285. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  286. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  287. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  288. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  289. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  290. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  291. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  292. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  293. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  294. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  295. A query for example.org type ANY should have rcode NOERROR
  296. The last query response should have flags qr aa rd
  297. The last query response should have ancount 4
  298. The last query response should have nscount 0
  299. The last query response should have adcount 3
  300. The answer section of the last query response should be
  301. """
  302. example.org. 3600 IN NS ns1.example.org.
  303. example.org. 3600 IN NS ns2.example.org.
  304. example.org. 3600 IN SOA ns1.example.org. admin.example.org. 1234 3600 1800 2419200 7200
  305. example.org. 3600 IN MX 10 mail.example.org.
  306. """
  307. The additional section of the last query response should be
  308. """
  309. ns1.example.org. 3600 IN A 192.0.2.3
  310. ns2.example.org. 3600 IN A 192.0.2.4
  311. mail.example.org. 3600 IN A 192.0.2.10
  312. """
  313. And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
  314. And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
  315. When I query statistics zones of bind10 module Auth
  316. last bindctl output should not contain "error"
  317. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
  318. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  319. Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
  320. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  321. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  322. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  323. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  324. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  325. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  326. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  327. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
  328. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  329. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  330. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  331. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  332. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  333. Then the statistics counter responses for the zone _SERVER_ should be 1
  334. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  335. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  336. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  337. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  338. Then the statistics counter qrysuccess for the zone _SERVER_ should be 1
  339. Then the statistics counter qryauthans for the zone _SERVER_ should be 1
  340. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  341. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  342. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  343. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  344. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
  345. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  346. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  347. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  348. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  349. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  350. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  351. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  352. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  353. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  354. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  355. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  356. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  357. Scenario: Delegation query for unsigned child zone
  358. Given I have bind10 running with configuration example.org.inmem.config
  359. And wait for bind10 stderr message BIND10_STARTED_CC
  360. And wait for bind10 stderr message CMDCTL_STARTED
  361. And wait for bind10 stderr message AUTH_SERVER_STARTED
  362. When I query statistics zones of bind10 module Auth
  363. last bindctl output should not contain "error"
  364. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
  365. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  366. Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
  367. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  368. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  369. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  370. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  371. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  372. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  373. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  374. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
  375. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  376. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  377. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  378. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  379. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  380. Then the statistics counter responses for the zone _SERVER_ should be 0
  381. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  382. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  383. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  384. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  385. Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
  386. Then the statistics counter qryauthans for the zone _SERVER_ should be 0
  387. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  388. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  389. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  390. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  391. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
  392. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  393. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  394. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  395. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  396. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  397. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  398. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  399. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  400. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  401. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  402. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  403. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  404. A dnssec query for www.sub.example.org type AAAA should have rcode NOERROR
  405. The last query response should have flags qr rd
  406. The last query response should have edns_flags do
  407. The last query response should have ancount 0
  408. The last query response should have nscount 1
  409. The last query response should have adcount 2
  410. The authority section of the last query response should be
  411. """
  412. sub.example.org. 3600 IN NS ns.sub.example.org.
  413. """
  414. The additional section of the last query response should be
  415. """
  416. ns.sub.example.org. 3600 IN A 192.0.2.101
  417. """
  418. And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
  419. And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
  420. When I query statistics zones of bind10 module Auth
  421. last bindctl output should not contain "error"
  422. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
  423. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  424. Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
  425. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  426. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 1
  427. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  428. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  429. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  430. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  431. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 1
  432. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
  433. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  434. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  435. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  436. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  437. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  438. Then the statistics counter responses for the zone _SERVER_ should be 1
  439. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  440. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 1
  441. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  442. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  443. Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
  444. Then the statistics counter qryauthans for the zone _SERVER_ should be 0
  445. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 1
  446. Then the statistics counter qryreferral for the zone _SERVER_ should be 1
  447. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  448. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  449. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
  450. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  451. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  452. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  453. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  454. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  455. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  456. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  457. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  458. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  459. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  460. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  461. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  462. Scenario: SSHFP query
  463. # We are testing one more RR type for a normal successful case
  464. Given I have bind10 running with configuration example.org.inmem.config
  465. And wait for bind10 stderr message BIND10_STARTED_CC
  466. And wait for bind10 stderr message CMDCTL_STARTED
  467. And wait for bind10 stderr message AUTH_SERVER_STARTED
  468. bind10 module Auth should be running
  469. And bind10 module Stats should be running
  470. And bind10 module Resolver should not be running
  471. And bind10 module Xfrout should not be running
  472. And bind10 module Zonemgr should not be running
  473. And bind10 module Xfrin should not be running
  474. And bind10 module StatsHttpd should not be running
  475. When I query statistics zones of bind10 module Auth
  476. last bindctl output should not contain "error"
  477. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 0
  478. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  479. Then the statistics counter udp in the category request for the zone _SERVER_ should be 0
  480. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  481. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  482. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  483. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  484. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  485. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  486. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  487. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 0
  488. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  489. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  490. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  491. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  492. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  493. Then the statistics counter responses for the zone _SERVER_ should be 0
  494. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  495. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  496. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  497. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  498. Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
  499. Then the statistics counter qryauthans for the zone _SERVER_ should be 0
  500. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  501. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  502. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 0
  503. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  504. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 0
  505. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  506. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  507. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  508. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  509. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  510. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  511. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  512. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  513. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  514. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  515. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  516. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  517. A query for example.org type SSHFP should have rcode NOERROR
  518. The last query response should have ancount 0
  519. When I query statistics zones of bind10 module Auth
  520. last bindctl output should not contain "error"
  521. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 1
  522. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  523. Then the statistics counter udp in the category request for the zone _SERVER_ should be 1
  524. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  525. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  526. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  527. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  528. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  529. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  530. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  531. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 1
  532. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  533. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  534. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  535. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  536. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  537. Then the statistics counter responses for the zone _SERVER_ should be 1
  538. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  539. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  540. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  541. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  542. Then the statistics counter qrysuccess for the zone _SERVER_ should be 0
  543. Then the statistics counter qryauthans for the zone _SERVER_ should be 1
  544. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  545. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  546. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 1
  547. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  548. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 1
  549. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  550. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  551. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  552. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  553. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  554. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  555. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  556. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  557. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  558. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  559. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  560. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0
  561. A query for shell.example.org type SSHFP should have rcode NOERROR
  562. The last query response should have ancount 1
  563. The answer section of the last query response should be
  564. """
  565. shell.example.org. 3600 IN SSHFP 2 1 123456789abcdef67890123456789abcdef67890
  566. """
  567. And wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST
  568. And wait for new bind10 stderr message AUTH_RECEIVED_COMMAND
  569. When I query statistics zones of bind10 module Auth
  570. last bindctl output should not contain "error"
  571. Then the statistics counter v4 in the category request for the zone _SERVER_ should be 2
  572. Then the statistics counter v6 in the category request for the zone _SERVER_ should be 0
  573. Then the statistics counter udp in the category request for the zone _SERVER_ should be 2
  574. Then the statistics counter tcp in the category request for the zone _SERVER_ should be 0
  575. Then the statistics counter edns0 in the category request for the zone _SERVER_ should be 0
  576. Then the statistics counter badednsver in the category request for the zone _SERVER_ should be 0
  577. Then the statistics counter tsig in the category request for the zone _SERVER_ should be 0
  578. Then the statistics counter sig0 in the category request for the zone _SERVER_ should be 0
  579. Then the statistics counter badsig in the category request for the zone _SERVER_ should be 0
  580. Then the statistics counter dnssec_ok in the category request for the zone _SERVER_ should be 0
  581. Then the statistics counter query in the category opcode for the zone _SERVER_ should be 2
  582. Then the statistics counter iquery in the category opcode for the zone _SERVER_ should be 0
  583. Then the statistics counter status in the category opcode for the zone _SERVER_ should be 0
  584. Then the statistics counter notify in the category opcode for the zone _SERVER_ should be 0
  585. Then the statistics counter update in the category opcode for the zone _SERVER_ should be 0
  586. Then the statistics counter other in the category opcode for the zone _SERVER_ should be 0
  587. Then the statistics counter responses for the zone _SERVER_ should be 2
  588. Then the statistics counter truncated in the category response for the zone _SERVER_ should be 0
  589. Then the statistics counter edns0 in the category response for the zone _SERVER_ should be 0
  590. Then the statistics counter tsig in the category response for the zone _SERVER_ should be 0
  591. Then the statistics counter sig0 in the category response for the zone _SERVER_ should be 0
  592. Then the statistics counter qrysuccess for the zone _SERVER_ should be 1
  593. Then the statistics counter qryauthans for the zone _SERVER_ should be 2
  594. Then the statistics counter qrynoauthans for the zone _SERVER_ should be 0
  595. Then the statistics counter qryreferral for the zone _SERVER_ should be 0
  596. Then the statistics counter qrynxrrset for the zone _SERVER_ should be 1
  597. Then the statistics counter authqryrej for the zone _SERVER_ should be 0
  598. Then the statistics counter noerror in the category rcode for the zone _SERVER_ should be 2
  599. Then the statistics counter formerr in the category rcode for the zone _SERVER_ should be 0
  600. Then the statistics counter servfail in the category rcode for the zone _SERVER_ should be 0
  601. Then the statistics counter nxdomain in the category rcode for the zone _SERVER_ should be 0
  602. Then the statistics counter notimp in the category rcode for the zone _SERVER_ should be 0
  603. Then the statistics counter refused in the category rcode for the zone _SERVER_ should be 0
  604. Then the statistics counter yxdomain in the category rcode for the zone _SERVER_ should be 0
  605. Then the statistics counter yxrrset in the category rcode for the zone _SERVER_ should be 0
  606. Then the statistics counter nxrrset in the category rcode for the zone _SERVER_ should be 0
  607. Then the statistics counter notauth in the category rcode for the zone _SERVER_ should be 0
  608. Then the statistics counter notzone in the category rcode for the zone _SERVER_ should be 0
  609. Then the statistics counter badvers in the category rcode for the zone _SERVER_ should be 0
  610. Then the statistics counter other in the category rcode for the zone _SERVER_ should be 0