Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
feat: add intelij http-client configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
igorissen committed Aug 7, 2023
1 parent 0fe805f commit 2dc5d79
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/functional/create-audit-log.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
POST {{baseUrl}}/api/audit-logs
Content-Type: application/json

{"targetUserId": "2", "userId": "3", "action": "ANONYMIZATION", "occurredAt": "2023-08-04T08:57:54.836Z", "role": "SUPPORT", "client": "PIX_ADMIN"}

> {%
client.test('Creates an audit log and returns a response with an HTTP status code 204 (NO_CONTENT)', function () {
client.assert(response.status === 204, `Server responded with HTTP status code ${response.status}`)
});
%}
5 changes: 5 additions & 0 deletions src/tests/functional/http-client.env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"development": {
"baseUrl": "http://localhost:3001"
}
}

0 comments on commit 2dc5d79

Please sign in to comment.