-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
49 lines (49 loc) · 1.17 KB
/
config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"info": {
"_postman_id": "17bd80e2-2d78-4426-9ce4-526c5764beef",
"name": "01.Config",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
"_exporter_id": "26876722"
},
"item": [
{
"name": "Login - Admin",
"event": [
{
"listen": "test",
"script": {
"exec": [
"pm.test(\"Status code is 200\", function(){",
" pm.response.to.have.status(200)",
"});",
"",
"pm.test(\"Success message with the Admin name\", function(){",
" let fullName = pm.response.json().user.fullName;",
"",
" pm.expect(pm.response.text()).to.include(`Olá ${fullName}, autenticação autorizada com sucesso!`);",
"});",
"",
"pm.globals.set(\"Token\", JSON.parse(responseBody).token);"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"mail\": \"{{mailAdmin}}\",\n \"password\": \"{{passwordAdmin}}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": "{{baseUrl}}/api/login"
},
"response": []
}
]
}