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 htt-client configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
igorissen committed Aug 4, 2023
1 parent 47b702d commit 4e94ee1
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 201 (CREATED)', function () {
client.assert(response.status === 201, `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:3000"
}
}

0 comments on commit 4e94ee1

Please sign in to comment.