mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 05:55:28 +00:00
[trac2361] add new test for CHAOS version.bind and authors.bind TXT
This commit is contained in:
22
tests/lettuce/configurations/auth/auth_basic.config.orig
Normal file
22
tests/lettuce/configurations/auth/auth_basic.config.orig
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": 2,
|
||||
"Logging": {
|
||||
"loggers": [ {
|
||||
"debuglevel": 99,
|
||||
"severity": "DEBUG",
|
||||
"name": "*"
|
||||
} ]
|
||||
},
|
||||
"Auth": {
|
||||
"listen_on": [ {
|
||||
"port": 47806,
|
||||
"address": "127.0.0.1"
|
||||
} ]
|
||||
},
|
||||
"Boss": {
|
||||
"components": {
|
||||
"b10-auth": { "kind": "needed", "special": "auth" },
|
||||
"b10-cmdctl": { "special": "cmdctl", "kind": "needed" }
|
||||
}
|
||||
}
|
||||
}
|
22
tests/lettuce/features/auth_basic.feature
Normal file
22
tests/lettuce/features/auth_basic.feature
Normal file
@@ -0,0 +1,22 @@
|
||||
Feature: Basic Authoritative DNS server
|
||||
This feature set is for testing the execution of the b10-auth
|
||||
component using its default datasource configurations. This
|
||||
will start it and perform queries against it.
|
||||
|
||||
Scenario: Query builtin bind zone
|
||||
Given I have bind10 running with configuration auth/auth_basic.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 Resolver should not be running
|
||||
|
||||
A query for example.com should have rcode REFUSED
|
||||
|
||||
A query for version.bind type TXT class CH should have rcode NOERROR
|
||||
|
||||
A query for authors.bind type TXT class CH should have rcode NOERROR
|
||||
|
||||
# TODO: to be compatible with BIND 9
|
||||
# A query for nonexistent.bind type TXT class CH should have rcode REFUSED
|
@@ -49,6 +49,8 @@ copylist = [
|
||||
"configurations/example.org.config"],
|
||||
["configurations/bindctl/bindctl.config.orig",
|
||||
"configurations/bindctl/bindctl.config"],
|
||||
["configurations/auth/auth_basic.config.orig",
|
||||
"configurations/auth/auth_basic.config"],
|
||||
["configurations/resolver/resolver_basic.config.orig",
|
||||
"configurations/resolver/resolver_basic.config"],
|
||||
["configurations/multi_instance/multi_auth.config.orig",
|
||||
|
Reference in New Issue
Block a user