From 4e94ee137d85e810757e314c6ad1a2a1b91feb32 Mon Sep 17 00:00:00 2001 From: Ismael Gorissen Date: Fri, 4 Aug 2023 16:06:28 +0200 Subject: [PATCH] feat: add intelij htt-client configuration file --- src/tests/functional/create-audit-log.http | 10 ++++++++++ src/tests/functional/http-client.env.json | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 src/tests/functional/create-audit-log.http create mode 100644 src/tests/functional/http-client.env.json diff --git a/src/tests/functional/create-audit-log.http b/src/tests/functional/create-audit-log.http new file mode 100644 index 0000000..ebaf681 --- /dev/null +++ b/src/tests/functional/create-audit-log.http @@ -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}`) +}); + %} diff --git a/src/tests/functional/http-client.env.json b/src/tests/functional/http-client.env.json new file mode 100644 index 0000000..8996abd --- /dev/null +++ b/src/tests/functional/http-client.env.json @@ -0,0 +1,5 @@ +{ + "development": { + "baseUrl": "http://localhost:3000" + } +}