Update asserts

This commit is contained in:
Dayamond
2025-10-21 17:25:34 +02:00
parent a7b9ce803b
commit 5a41d2e028
3 changed files with 17 additions and 9 deletions
+7 -8
View File
@@ -7,19 +7,14 @@ meta {
post { post {
url: http://localhost:8000/api/users/login url: http://localhost:8000/api/users/login
body: json body: json
auth: basic auth: none
} }
headers { headers {
X-XSRF-TOKEN: eyJpdiI6IjZaY0Y4aWtBMkxhWnlWQ2VpNDBhQWc9PSIsInZhbHVlIjoiWkF0N2lWTmlRSzdienZqREp0YUxPOFg0OE10bXZZME1QRitZRjV6bGs3QnZ0WUJVU1RkL0h0eDhPR1huODFuZzFHMDQxNzg4eDN4Ri91eVdFSDNVNUloSGZtRHd1aFd0TEF6MkxzOUhDMjRJeUxEYUcveEZHcVlzMnZha0Q1MkQiLCJtYWMiOiI0MDc2NzRmMjFiNDhjMDBjMWY4Yzc5Y2FjNTZhZWNkN2FkM2RmMzJlZDNmOWYwNDFhZWFlZGFmOGE4ZTA0Yzg0IiwidGFnIjoiIn0= X-XSRF-TOKEN:
Accept: application/json Accept: application/json
} }
auth:basic {
username: test@test.com
password: test
}
body:json { body:json {
{ {
"email": "{{email}}", "email": "{{email}}",
@@ -30,7 +25,11 @@ body:json {
vars:pre-request { vars:pre-request {
email: test@test.com email: test@test.com
password: test password: test
xsrf: null }
assert {
res.status: eq 200
res.body.message: eq ok
} }
settings { settings {
+1 -1
View File
@@ -1,4 +1,4 @@
const c = "eyJpdiI6IjZaY0Y4aWtBMkxhWnlWQ2VpNDBhQWc9PSIsInZhbHVlIjoiWkF0N2lWTmlRSzdienZqREp0YUxPOFg0OE10bXZZME1QRitZRjV6bGs3QnZ0WUJVU1RkL0h0eDhPR1huODFuZzFHMDQxNzg4eDN4Ri91eVdFSDNVNUloSGZtRHd1aFd0TEF6MkxzOUhDMjRJeUxEYUcveEZHcVlzMnZha0Q1MkQiLCJtYWMiOiI0MDc2NzRmMjFiNDhjMDBjMWY4Yzc5Y2FjNTZhZWNkN2FkM2RmMzJlZDNmOWYwNDFhZWFlZGFmOGE4ZTA0Yzg0IiwidGFnIjoiIn0%3D"; const c = "";
const token = decodeURIComponent(c); const token = decodeURIComponent(c);
console.log(token); console.log(token);
+9
View File
@@ -10,6 +10,15 @@ get {
auth: inherit auth: inherit
} }
headers {
Accept: application/json
}
assert {
res.status: eq 200
}
settings { settings {
encodeUrl: true encodeUrl: true
timeout: 0
} }