From 8d6db9371f6785ff6d05648ade95c8bfb90695f8 Mon Sep 17 00:00:00 2001 From: Thomas Markwalder Date: Thu, 14 Jun 2018 17:43:50 -0400 Subject: [PATCH] [master] Corrected kea-shell tests src/bin/shell/tests/shell_process_tests.sh.in Updated expected results strings --- src/bin/shell/tests/shell_process_tests.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/shell/tests/shell_process_tests.sh.in b/src/bin/shell/tests/shell_process_tests.sh.in index c80e81a345..5171ec0cdb 100644 --- a/src/bin/shell/tests/shell_process_tests.sh.in +++ b/src/bin/shell/tests/shell_process_tests.sh.in @@ -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' (:1:76)\" } ]" \ + "[ { \"result\": 2, \"text\": \"out of range value (80000) specified for parameter 'http-port' (: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 }" -- 2.47.3