Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
ac552055
Commit
ac552055
authored
Nov 07, 2011
by
Jelte Jansen
Browse files
[1298] add test with bad master port as well
parent
26aaecc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/xfrin/tests/xfrin_test.py
View file @
ac552055
...
...
@@ -1907,6 +1907,19 @@ class TestXfrin(unittest.TestCase):
self
.
assertEqual
(
self
.
xfr
.
command_handler
(
"notify"
,
self
.
args
)[
'result'
][
0
],
1
)
# also try a different port in the actual command
zones
=
{
'zones'
:
[
{
'name'
:
TEST_ZONE_NAME_STR
,
'master_addr'
:
TEST_MASTER_IPV6_ADDRESS
,
'master_port'
:
str
(
int
(
TEST_MASTER_PORT
)
+
1
)
}
]}
self
.
xfr
.
config_handler
(
zones
)
# the command should now fail
self
.
assertEqual
(
self
.
xfr
.
command_handler
(
"notify"
,
self
.
args
)[
'result'
][
0
],
1
)
def
test_command_handler_notify_known_zone
(
self
):
# try it with a known zone
self
.
args
[
'master'
]
=
TEST_MASTER_IPV6_ADDRESS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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