Skip to content

Commit

Permalink
Add dumpstate negative tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rsjostrand-hpe committed Oct 5, 2022
1 parent 5d204e3 commit 4c220b3
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions test/ct/api/2-disruptive/test_dumpstate.negative.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4c220b3

Please sign in to comment.