From 4c220b3b292e1971d2fc1448d53f5708967ca706 Mon Sep 17 00:00:00 2001 From: Ryan Sjostrand Date: Wed, 5 Oct 2022 17:35:59 -0500 Subject: [PATCH] Add dumpstate negative tests --- .../2-disruptive/test_dumpstate.negative.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 test/ct/api/2-disruptive/test_dumpstate.negative.yaml diff --git a/test/ct/api/2-disruptive/test_dumpstate.negative.yaml b/test/ct/api/2-disruptive/test_dumpstate.negative.yaml new file mode 100644 index 0000000..8d05d03 --- /dev/null +++ b/test/ct/api/2-disruptive/test_dumpstate.negative.yaml @@ -0,0 +1,37 @@ +--- +test_name: bssAPIdumpstateNegative + +# TODO see if dumpstate can actually return a 400 bad request. If not update swagger. + +stages: +- name: Perform DELETE against /dumpstate + request: + url: "{bss_base_url}/boot/v1/dumpstate" + method: DELETE + verify: !bool "{verify}" + response: + status_code: 405 + +- name: Perform PATCH against /dumpstate + request: + url: "{bss_base_url}/boot/v1/dumpstate" + method: PATCH + verify: !bool "{verify}" + response: + status_code: 405 + +- name: Perform POST against /dumpstate + request: + url: "{bss_base_url}/boot/v1/dumpstate" + method: POST + verify: !bool "{verify}" + response: + status_code: 405 + +- name: Perform PUT against /dumpstate + request: + url: "{bss_base_url}/boot/v1/dumpstate" + method: PUT + verify: !bool "{verify}" + response: + status_code: 405 \ No newline at end of file