Implement tests

This commit is contained in:
Keannu Christian Bernasol 2025-09-13 20:05:13 +08:00
parent 7b1d9d2b4c
commit 0baf619ace
19 changed files with 432 additions and 48 deletions

View file

@ -0,0 +1,9 @@
{
"version": "1",
"name": "drf_template",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View file

@ -0,0 +1,4 @@
meta {
name: drf_template
type: collection
}

View file

@ -0,0 +1,5 @@
vars {
BASE_URL: {{process.env.BACKEND_URL}}
ADMIN_EMAIL: {{process.env.BACKEND_ADMIN_EMAIL}}
USER_PASSWORD: {{process.env.BACKEND_PASSWORD}}
}

View file

@ -0,0 +1,11 @@
meta {
name: GET Swagger
type: http
seq: 1
}
get {
url: {{BASE_URL}}/swagger/
body: none
auth: none
}

View file

@ -0,0 +1,18 @@
meta {
name: Login & Get Users
type: http
seq: 1
}
post {
url: {{BASE_URL}}/accounts/jwt/create/
body: json
auth: none
}
body:json {
{
"username": "{{ADMIN_EMAIL}}",
"password": "{{USER_PASSWORD}}"
}
}