]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Corrected kea-shell tests
authorThomas Markwalder <tmark@isc.org>
Thu, 14 Jun 2018 21:43:50 +0000 (17:43 -0400)
committerThomas Markwalder <tmark@isc.org>
Thu, 14 Jun 2018 21:43:50 +0000 (17:43 -0400)
    src/bin/shell/tests/shell_process_tests.sh.in
        Updated expected results strings

src/bin/shell/tests/shell_process_tests.sh.in

index c80e81a34583b026ec11d83d482a8b79d0165b7f..5171ec0cdbe6b4bd64422075bf6895db0a22f8eb 100644 (file)
@@ -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" \
@@ -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 }"