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
Sebastian Schrader
Kea
Commits
b743e6ba
Commit
b743e6ba
authored
Jul 22, 2011
by
Naoki Kambe
Browse files
[trac930] add changes because query counter names described in the
specfile are changed.
parent
6556a2ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/system/bindctl/tests.sh
View file @
b743e6ba
...
...
@@ -24,6 +24,10 @@ SYSTEMTESTTOP=..
status
=
0
n
=
0
# TODO: consider consistency with statistics definition in auth.spec
auth_queries_tcp
=
"
\<
queries
\.
tcp
\>
"
auth_queries_udp
=
"
\<
queries
\.
udp
\>
"
echo
"I:Checking b10-auth is working by default (
$n
)"
$DIG
+norec @10.53.0.1
-p
53210 ns.example.com. A
>
dig.out.
$n
||
status
=
1
# perform a simple check on the output (digcomp would be too much for this)
...
...
@@ -40,8 +44,8 @@ echo 'Stats show
--csv-file-dir
=
$BINDCTL_CSV_DIR
>
bindctl.out.
$n
||
status
=
1
# the server should have received 1 UDP and 1 TCP queries (TCP query was
# sent from the server startup script)
grep
"
\"
auth
.
queries
.
tcp
\"
: 1,
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
"
\"
auth
.
queries
.
udp
\"
: 1,
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
$
auth
_
queries
_
tcp
".*
\<
1
\>
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
$
auth
_
queries
_
udp
".*
\<
1
\>
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
if
[
$status
!=
0
]
;
then
echo
"I:failed"
;
fi
n
=
`
expr
$n
+ 1
`
...
...
@@ -73,8 +77,8 @@ echo 'Stats show
'
|
$RUN_BINDCTL
\
--csv-file-dir
=
$BINDCTL_CSV_DIR
>
bindctl.out.
$n
||
status
=
1
# The statistics counters should have been reset while stop/start.
grep
"
\"
auth
.
queries
.
tcp
\"
: 0,
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
"
\"
auth
.
queries
.
udp
\"
: 1,
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
$
auth
_
queries
_
tcp
".*
\<
0
\>
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
$
auth
_
queries
_
udp
".*
\<
1
\>
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
if
[
$status
!=
0
]
;
then
echo
"I:failed"
;
fi
n
=
`
expr
$n
+ 1
`
...
...
@@ -97,8 +101,8 @@ echo 'Stats show
'
|
$RUN_BINDCTL
\
--csv-file-dir
=
$BINDCTL_CSV_DIR
>
bindctl.out.
$n
||
status
=
1
# The statistics counters shouldn't be reset due to hot-swapping datasource.
grep
"
\"
auth
.
queries
.
tcp
\"
: 0,
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
"
\"
auth
.
queries
.
udp
\"
: 2,
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
$
auth
_
queries
_
tcp
".*
\<
0
\>
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
grep
$
auth
_
queries
_
udp
".*
\<
2
\>
"
bindctl.out.
$n
>
/dev/null
||
status
=
1
if
[
$status
!=
0
]
;
then
echo
"I:failed"
;
fi
n
=
`
expr
$n
+ 1
`
...
...
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