Skip to content

Commit

Permalink
[master] Corrected kea-shell tests
Browse files Browse the repository at this point in the history
    src/bin/shell/tests/shell_process_tests.sh.in
        Updated expected results strings
  • Loading branch information
tmarkwalder committed Jun 14, 2018
1 parent 6fdd136 commit 8d6db93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/shell/tests/shell_process_tests.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ version_test "shell.version"
shell_command_test "shell.list-commands" "list-commands" \
"[ { \"arguments\": [ \"build-report\", \"config-get\", \"config-test\", \"config-write\", \"list-commands\", \"shutdown\", \"version-get\" ], \"result\": 0 } ]" ""
shell_command_test "shell.bogus" "give-me-a-beer" \
"[ { \"result\": 2, \"text\": \"'give-me-a-beer' command not supported.\" } ]" ""
"[ { \"result\": 2, \"text\": \"'give-me-a-beer' command not supported. You did not include \\\"service\\\" parameter in the command, which indicates that Kea Control Agent should process this command rather than forward it to one or more DHCP servers. If you aimed to send this command to one of the DHCP servers you should include the \\\"service\\\" parameter in your request, e.g. \\\"service\\\": [ \\\"dhcp4\\\" ] to forward the command to the DHCPv4 server, or \\\"service\\\": [ \\\"dhcp4\\\", \\\"dhcp6\\\" ] to forward it to both DHCPv4 and DHCPv6 servers etc.\" } ]" ""
shell_command_test "shell.empty-config-test" "config-test" \
"[ { \"result\": 1, \"text\": \"Missing mandatory 'arguments' parameter.\" } ]" ""
shell_command_test "shell.no-app-config-test" "config-test" \
Expand All @@ -190,5 +190,5 @@ shell_command_test "shell.no-map-config-test" "config-test" \
"[ { \"result\": 1, \"text\": \"'Control-agent' parameter expected to be a map.\" } ]" \
"\"Control-agent\": [ ]"
shell_command_test "shell.bad-value-config-test" "config-test" \
"[ { \"result\": 2, \"text\": \"out of range value (80000) specified for parameter 'http-port' (<string>:1:76)\" } ]" \
"[ { \"result\": 2, \"text\": \"out of range value (80000) specified for parameter 'http-port' (<string>:1:76) You did not include \\\"service\\\" parameter in the command, which indicates that Kea Control Agent should process this command rather than forward it to one or more DHCP servers. If you aimed to send this command to one of the DHCP servers you should include the \\\"service\\\" parameter in your request, e.g. \\\"service\\\": [ \\\"dhcp4\\\" ] to forward the command to the DHCPv4 server, or \\\"service\\\": [ \\\"dhcp4\\\", \\\"dhcp6\\\" ] to forward it to both DHCPv4 and DHCPv6 servers etc.\" } ]" \
"\"Control-agent\": { \"http-port\": 80000 }"

0 comments on commit 8d6db93

Please sign in to comment.