Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
2f691c28
Commit
2f691c28
authored
Jun 21, 2012
by
Mukund Sivaraman
Browse files
[2025] Add lettuce test for notify
parent
73d71047
Changes
5
Hide whitespace changes
Inline
Side-by-side
tests/lettuce/configurations/xfrin/retransfer_slave_notify.conf
0 → 100644
View file @
2f691c28
{
"version"
:
2
,
"Logging"
: {
"loggers"
: [ {
"debuglevel"
:
99
,
"severity"
:
"DEBUG"
,
"name"
:
"*"
} ]
},
"Auth"
: {
"database_file"
:
"data/xfrin-notify.sqlite3"
,
"listen_on"
: [ {
"address"
:
"127.0.0.1"
,
"port"
:
47806
} ]
},
"Xfrin"
: {
"zones"
: [ {
"name"
:
"example.org"
,
"master_addr"
:
"127.0.0.1"
,
"master_port"
:
47807
} ]
},
"Zonemgr"
: {
"secondary_zones"
: [ {
"name"
:
"example.org"
,
"class"
:
"IN"
} ]
},
"Boss"
: {
"components"
: {
"b10-auth"
: {
"kind"
:
"needed"
,
"special"
:
"auth"
},
"b10-xfrin"
: {
"address"
:
"Xfrin"
,
"kind"
:
"dispensable"
},
"b10-zonemgr"
: {
"address"
:
"Zonemgr"
,
"kind"
:
"dispensable"
},
"b10-cmdctl"
: {
"special"
:
"cmdctl"
,
"kind"
:
"needed"
}
}
}
}
tests/lettuce/data/.gitignore
View file @
2f691c28
/inmem-xfrin.sqlite3
/test_nonexistent_db.sqlite3
/xfrin-notify.sqlite3
tests/lettuce/data/xfrin-notify.sqlite3.orig
0 → 100644
View file @
2f691c28
File added
tests/lettuce/features/terrain/terrain.py
View file @
2f691c28
...
...
@@ -59,6 +59,8 @@ copylist = [
"configurations/ddns/noddns.config"
],
[
"data/inmem-xfrin.sqlite3.orig"
,
"data/inmem-xfrin.sqlite3"
],
[
"data/xfrin-notify.sqlite3.orig"
,
"data/xfrin-notify.sqlite3"
],
[
"data/ddns/example.org.sqlite3.orig"
,
"data/ddns/example.org.sqlite3"
]
]
...
...
tests/lettuce/features/xfrin_notify_handling.feature
0 → 100644
View file @
2f691c28
Feature
:
Xfrin incoming notify handling
Tests for Xfrin incoming notify handling.
Scenario
:
Handle incoming notify
Given
I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
And
wait for master stderr message BIND10_STARTED_CC
And
wait for master stderr message CMDCTL_STARTED
And
wait for master stderr message AUTH_SERVER_STARTED
And
wait for master stderr message XFROUT_STARTED
And
wait for master stderr message ZONEMGR_STARTED
And
I have bind10 running with configuration xfrin/retransfer_slave_notify.conf
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 XFRIN_STARTED
And
wait for bind10 stderr message ZONEMGR_STARTED
A
query for www.example.org should have rcode NXDOMAIN
When
I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
Then
wait for new master stderr message XFROUT_NOTIFY_COMMAND
Then
wait for new bind10 stderr message AUTH_PROCESS_NOTIFY
Then
wait for new bind10 stderr message ZONEMGR_RECEIVE_NOTIFY
Then
wait for new bind10 stderr message XFRIN_XFR_TRANSFER_STARTED
Then
wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
Then
wait for new bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
A
query for www.example.org should have rcode NOERROR
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment