]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3940] flags precedence tests
authorPiotrek Zadroga <piotrek@isc.org>
Tue, 17 Jun 2025 06:39:10 +0000 (08:39 +0200)
committerPiotrek Zadroga <piotrek@isc.org>
Tue, 17 Jun 2025 18:55:08 +0000 (18:55 +0000)
src/bin/shell/tests/ca_basic_auth_tests.sh.in
src/bin/shell/tests/d2_basic_auth_tests.sh.in
src/bin/shell/tests/dhcp4_basic_auth_tests.sh.in
src/bin/shell/tests/dhcp6_basic_auth_tests.sh.in

index ce3da5798c9fd686026564f4a03cfe94205636cc..6dc570a6646e87cccd659e54ad4d4a91a010df1a 100755 (executable)
@@ -207,3 +207,6 @@ shell_command_test "shell.bad-auth-password-file-content" \
 shell_command_test "shell.good-auth-password-file-content" \
     "--auth-user pet --auth-password-file ${tmpfile_path}/auth_password_file" "list-commands" "" \
     "[ { \"arguments\": [ \"build-report\", \"config-get\", \"config-hash-get\", \"config-reload\", \"config-set\", \"config-test\", \"config-write\", \"list-commands\", \"shutdown\", \"status-get\", \"version-get\" ], \"result\": 0 } ]"
+shell_command_test "shell.flag-precedence" \
+    "--auth-user pet --auth-password meow --auth-password-file ${tmpfile_path}/auth_bad_password_file" "list-commands" "fail" \
+    "Failed to run: HTTP Error 401: Unauthorized"
index dd7ff4edff6ee649ebbd42aa8a314dcd9c308270..8d2ff19ff1c6a48e1c783cec50af04138945adcf 100755 (executable)
@@ -212,3 +212,6 @@ shell_command_test "shell.bad-auth-password-file-content" \
 shell_command_test "shell.good-auth-password-file-content" \
     "--auth-user pet --auth-password-file ${tmpfile_path}/auth_password_file" "list-commands" "" \
     "[ { \"arguments\": [ \"build-report\", \"config-get\", \"config-hash-get\", \"config-reload\", \"config-set\", \"config-test\", \"config-write\", \"list-commands\", \"shutdown\", \"statistic-get\", \"statistic-get-all\", \"statistic-reset\", \"statistic-reset-all\", \"status-get\", \"version-get\" ], \"result\": 0 } ]"
+shell_command_test "shell.flag-precedence" \
+    "--auth-user pet --auth-password meow --auth-password-file ${tmpfile_path}/auth_bad_password_file" "list-commands" "fail" \
+    "Failed to run: HTTP Error 401: Unauthorized"
index 087338fe102e32106cc5d8b682c63777d565e2ef..89aa299eaf1880b7c8fbfcebb67685d1b9e04736 100755 (executable)
@@ -239,3 +239,6 @@ shell_command_test "shell.bad-auth-password-file-content" \
 shell_command_test "shell.good-auth-password-file-content" \
     "--auth-user pet --auth-password-file ${tmpfile_path}/auth_password_file" "list-commands" "" \
     "[ { \"arguments\": [ \"build-report\", \"config-backend-pull\", \"config-get\", \"config-hash-get\", \"config-reload\", \"config-set\", \"config-test\", \"config-write\", \"dhcp-disable\", \"dhcp-enable\", \"leases-reclaim\", \"list-commands\", \"server-tag-get\", \"shutdown\", \"statistic-get\", \"statistic-get-all\", \"statistic-remove\", \"statistic-remove-all\", \"statistic-reset\", \"statistic-reset-all\", \"statistic-sample-age-set\", \"statistic-sample-age-set-all\", \"statistic-sample-count-set\", \"statistic-sample-count-set-all\", \"status-get\", \"subnet4-select-test\", \"subnet4o6-select-test\", \"version-get\" ], \"result\": 0 } ]"
+shell_command_test "shell.flag-precedence" \
+    "--auth-user pet --auth-password meow --auth-password-file ${tmpfile_path}/auth_bad_password_file" "list-commands" "fail" \
+    "Failed to run: HTTP Error 401: Unauthorized"
index 906d5832925afef04ac4aa5a22c3b9b1dbde3477..62778274f3708f0969d9833b4c5e867ade354e0a 100755 (executable)
@@ -244,3 +244,6 @@ shell_command_test "shell.bad-auth-password-file-content" \
 shell_command_test "shell.good-auth-password-file-content" \
     "--auth-user pet --auth-password-file ${tmpfile_path}/auth_password_file" "list-commands" "" \
     "[ { \"arguments\": [ \"build-report\", \"config-backend-pull\", \"config-get\", \"config-hash-get\", \"config-reload\", \"config-set\", \"config-test\", \"config-write\", \"dhcp-disable\", \"dhcp-enable\", \"leases-reclaim\", \"list-commands\", \"server-tag-get\", \"shutdown\", \"statistic-get\", \"statistic-get-all\", \"statistic-remove\", \"statistic-remove-all\", \"statistic-reset\", \"statistic-reset-all\", \"statistic-sample-age-set\", \"statistic-sample-age-set-all\", \"statistic-sample-count-set\", \"statistic-sample-count-set-all\", \"status-get\", \"subnet6-select-test\", \"version-get\" ], \"result\": 0 } ]"
+shell_command_test "shell.flag-precedence" \
+    "--auth-user pet --auth-password meow --auth-password-file ${tmpfile_path}/auth_bad_password_file" "list-commands" "fail" \
+    "Failed to run: HTTP Error 401: Unauthorized"