28 lines
368 B
Text
28 lines
368 B
Text
meta {
|
|
name: Login
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: http://localhost:8080/api/v1/auth/login
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
Accept: application/json
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"login": "z3.admin",
|
|
"password": "g4nWmGs0w^"
|
|
}
|
|
}
|
|
|
|
tests {
|
|
let response = res.getBody();
|
|
bru.setVar("jwt_token", response.token);
|
|
}
|