Skip to content

Commit

Permalink
Add an IT test to verify DELETE method works as expected (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienvermeille committed Aug 5, 2024
1 parent aeef78b commit 6276145
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/it-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,27 @@ jobs:
actual: ${{ steps.execution.outputs.status }}
comparison: exact

test-delete-http-method:
name: "IT Test - Request Postman Echo DELETE"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Given the gh-action is used with method DELETE
id: execution
uses: ./
with:
url: 'https://postman-echo.com/delete'
contentType : 'application/json'
method: 'DELETE'
data: '{"key":"value"}'

- uses: nick-fields/assert-action@aa0067e01f0f6545c31755d6ca128c5a3a14f6bf # v2
name: Then outputs.status value must be 200
with:
expected: '200'
actual: ${{ steps.execution.outputs.status }}
comparison: exact

it-tests:
name: "All IT Tests have to pass"
runs-on: ubuntu-latest
Expand All @@ -309,6 +330,7 @@ jobs:
- test-input-file-with-single-file
- test-input-data-with-url-encoded-string
- test-input-data-with-url-encoded-json-data
- test-delete-http-method
steps:
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
Expand Down

0 comments on commit 6276145

Please sign in to comment.