1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2024-12-04 21:30:23 +00:00

Add an IT test to verify DELETE method works as expected (#157)

This commit is contained in:
Sebastien Vermeille 2024-08-05 13:12:21 +02:00 committed by GitHub
parent aeef78bb14
commit 62761453c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
@ -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: