Pass rate: 100.0%
7
Total
7
Passed
0
Failed
0
Errors
0
Skipped
| Status | Test ID | Duration | Calls | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_create_user_flow user | 0.191s | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
148.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Samuel Nguyen",
"email": "samuel.nguyen.58ffbb94@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1033,
"name": "Samuel Nguyen",
"email": "samuel.nguyen.58ffbb94@gmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1033
204
34.6 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=201
actual=201
✅
has_key
key=id
✅
key_equals
key=name
expected=Samuel Nguyen
actual=Samuel Nguyen
✅
key_equals
key=email
expected=samuel.nguyen.58ffbb94@gmail.com
actual=samuel.nguyen.58ffbb94@gmail.com
✅
equals
path=$.status
expected=active
actual=active
✅
key_equals
key=gender
expected=male
actual=male
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.config:config_manager.py:103 Loaded config for env='dev': {'base_url': 'https://gorest.in', 'timeout': 30, 'verify_ssl': True, 'headers': {'Accept': 'application/json', 'Content-Type': 'application/json'}, 'api_retry_total': 3, 'api_retry_backoff_factor': 0.3, 'api_retry_methods': ['GET', 'HEAD', 'OPTIONS']}
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Samuel Nguyen', 'email': 'samuel.nguyen.58ffbb94@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:1062 Starting new HTTPS connection (1): gorest.in:443
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 111
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (148.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1033,
"name": "Samuel Nguyen",
"email": "samuel.nguyen.58ffbb94@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1033 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1033 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1033 204 (34.6 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_create_user_blocked_token user | 0.115s | 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
403
112.6 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Edwin Reed",
"email": "edwin.reed.9f749cfc@gmail.com",
"gender": "male",
"status": "active"
}
{
"message": "Forbidden. This token does not have permission to access this endpoint."
}
ASSERTIONS
✅
status_is
expected=403
actual=403
✅
has_key
key=message
✅
equals
path=$.message
expected=Forbidden. This token does not have permission to access this endpoint.
actual=Forbidden. This token does not have permission to access this endpoint.
LOGS
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Edwin Reed', 'email': 'edwin.reed.9f749cfc@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:1062 Starting new HTTPS connection (1): gorest.in:443
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 403 85
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 403 (112.6 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Forbidden. This token does not have permission to access this endpoint."
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_create_user_duplicate_email user | 0.084s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
30.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Jonathan Cook",
"email": "jonathan.cook.e184a216@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1034,
"name": "Jonathan Cook",
"email": "jonathan.cook.e184a216@gmail.com",
"gender": "male",
"status": "active"
}
POST
https://gorest.in/public/v2/users
422
24.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Jonathan Cook",
"email": "jonathan.cook.e184a216@gmail.com",
"gender": "male",
"status": "active"
}
[
{
"field": "email",
"message": "has already been taken"
}
]
DELETE
https://gorest.in/public/v2/users/1034
204
26.0 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=422
actual=422
✅
equals
path=$[0].field
expected=email
actual=email
✅
equals
path=$[0].message
expected=has already been taken
actual=has already been taken
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Jonathan Cook', 'email': 'jonathan.cook.e184a216@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 111
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (30.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1034,
"name": "Jonathan Cook",
"email": "jonathan.cook.e184a216@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Jonathan Cook', 'email': 'jonathan.cook.e184a216@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 422 54
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 422 (24.4 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: [
{
"field": "email",
"message": "has already been taken"
}
]
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1034 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1034 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1034 204 (26.0 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_get_user user | 0.108s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
28.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Darren Woods",
"email": "darren.woods.02b99193@yahoo.com",
"gender": "male",
"status": "active"
}
{
"id": 1035,
"name": "Darren Woods",
"email": "darren.woods.02b99193@yahoo.com",
"gender": "male",
"status": "active"
}
GET
https://gorest.in/public/v2/users/1035
200
33.8 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"id": 1035,
"name": "Darren Woods",
"email": "darren.woods.02b99193@yahoo.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1035
204
42.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1035
actual=1035
✅
key_equals
key=name
expected=Darren Woods
actual=Darren Woods
✅
key_equals
key=email
expected=darren.woods.02b99193@yahoo.com
actual=darren.woods.02b99193@yahoo.com
✅
key_equals
key=gender
expected=male
actual=male
✅
key_equals
key=status
expected=active
actual=active
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Darren Woods', 'email': 'darren.woods.02b99193@yahoo.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 109
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (28.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1035,
"name": "Darren Woods",
"email": "darren.woods.02b99193@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users/1035 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "GET /public/v2/users/1035 HTTP/1.1" 200 109
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1035 200 (33.8 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1035,
"name": "Darren Woods",
"email": "darren.woods.02b99193@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1035 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1035 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1035 204 (42.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_update_user user | 0.087s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
26.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Austin Vincent",
"email": "austin.vincent.e69be41d@yahoo.com",
"gender": "male",
"status": "active"
}
{
"id": 1036,
"name": "Austin Vincent",
"email": "austin.vincent.e69be41d@yahoo.com",
"gender": "male",
"status": "active"
}
PUT
https://gorest.in/public/v2/users/1036
200
30.2 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"id": 1036,
"name": "Updated Name",
"email": "austin.vincent.e69be41d@yahoo.com",
"gender": "male",
"status": "inactive"
}
{
"id": 1036,
"name": "Updated Name",
"email": "austin.vincent.e69be41d@yahoo.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1036
204
26.4 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1036
actual=1036
✅
key_equals
key=name
expected=Updated Name
actual=Updated Name
✅
key_equals
key=status
expected=inactive
actual=inactive
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Austin Vincent', 'email': 'austin.vincent.e69be41d@yahoo.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 113
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (26.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1036,
"name": "Austin Vincent",
"email": "austin.vincent.e69be41d@yahoo.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PUT https://gorest.in/public/v2/users/1036 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'id': 1036, 'name': 'Updated Name', 'email': 'austin.vincent.e69be41d@yahoo.com', 'gender': 'male', 'status': 'inactive'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "PUT /public/v2/users/1036 HTTP/1.1" 200 113
INFO pytest_api_core.client:api_client.py:162 ← PUT https://gorest.in/public/v2/users/1036 200 (30.2 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1036,
"name": "Updated Name",
"email": "austin.vincent.e69be41d@yahoo.com",
"gender": "male",
"status": "inactive"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1036 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1036 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1036 204 (26.4 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_patch_user user | 0.101s | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
42.8 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Andrew Gallegos",
"email": "andrew.gallegos.e6e0a6dd@hotmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1037,
"name": "Andrew Gallegos",
"email": "andrew.gallegos.e6e0a6dd@hotmail.com",
"gender": "male",
"status": "active"
}
PATCH
https://gorest.in/public/v2/users/1037
200
29.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"status": "inactive"
}
{
"id": 1037,
"name": "Andrew Gallegos",
"email": "andrew.gallegos.e6e0a6dd@hotmail.com",
"gender": "male",
"status": "inactive"
}
DELETE
https://gorest.in/public/v2/users/1037
204
24.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
— ASSERTIONS
✅
status_is
expected=200
actual=200
✅
key_equals
key=id
expected=1037
actual=1037
✅
key_equals
key=status
expected=inactive
actual=inactive
✅
key_equals
key=name
expected=Andrew Gallegos
actual=Andrew Gallegos
✅
key_equals
key=email
expected=andrew.gallegos.e6e0a6dd@hotmail.com
actual=andrew.gallegos.e6e0a6dd@hotmail.com
✅
key_equals
key=gender
expected=male
actual=male
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Andrew Gallegos', 'email': 'andrew.gallegos.e6e0a6dd@hotmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 117
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (42.8 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1037,
"name": "Andrew Gallegos",
"email": "andrew.gallegos.e6e0a6dd@hotmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → PATCH https://gorest.in/public/v2/users/1037 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'status': 'inactive'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "PATCH /public/v2/users/1037 HTTP/1.1" 200 119
INFO pytest_api_core.client:api_client.py:162 ← PATCH https://gorest.in/public/v2/users/1037 200 (29.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1037,
"name": "Andrew Gallegos",
"email": "andrew.gallegos.e6e0a6dd@hotmail.com",
"gender": "male",
"status": "inactive"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1037 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1037 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1037 204 (24.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| PASSED | ▶ tests/users/test_users.py::TestUsers::test_delete_user user | 0.107s | 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
POST
https://gorest.in/public/v2/users
201
23.7 ms
▶
Req Headers
Req Body
Res Headers
Res Body
{
"name": "Daniel Woods",
"email": "daniel.woods.94b55b32@gmail.com",
"gender": "male",
"status": "active"
}
{
"id": 1038,
"name": "Daniel Woods",
"email": "daniel.woods.94b55b32@gmail.com",
"gender": "male",
"status": "active"
}
DELETE
https://gorest.in/public/v2/users/1038
204
27.9 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
—
GET
https://gorest.in/public/v2/users/1038
404
26.3 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"message": "Resource not found"
}
DELETE
https://gorest.in/public/v2/users/1038
404
23.5 ms
▶
Req Headers
Req Body
Res Headers
Res Body
—
{
"message": "Resource not found"
}
ASSERTIONS
✅
status_is
expected=204
actual=204
✅
status_is
expected=404
actual=404
LOGS
--- Captured log setup ---
DEBUG pytest_api_core.client:api_client.py:147 → POST https://gorest.in/public/v2/users headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body={'name': 'Daniel Woods', 'email': 'daniel.woods.94b55b32@gmail.com', 'gender': 'male', 'status': 'active'}
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "POST /public/v2/users HTTP/1.1" 201 109
INFO pytest_api_core.client:api_client.py:162 ← POST https://gorest.in/public/v2/users 201 (23.7 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"id": 1038,
"name": "Daniel Woods",
"email": "daniel.woods.94b55b32@gmail.com",
"gender": "male",
"status": "active"
}
--- Captured log call ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1038 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1038 HTTP/1.1" 204 0
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1038 204 (27.9 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body:
DEBUG pytest_api_core.client:api_client.py:147 → GET https://gorest.in/public/v2/users/1038 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "GET /public/v2/users/1038 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← GET https://gorest.in/public/v2/users/1038 404 (26.3 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Resource not found"
}
--- Captured log teardown ---
DEBUG pytest_api_core.client:api_client.py:147 → DELETE https://gorest.in/public/v2/users/1038 headers={'User-Agent': 'python-requests/2.34.2', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'Connection': 'keep-alive', 'Content-Type': 'application/json'} body=None
DEBUG urllib3.connectionpool:connectionpool.py:544 https://gorest.in:443 "DELETE /public/v2/users/1038 HTTP/1.1" 404 32
INFO pytest_api_core.client:api_client.py:162 ← DELETE https://gorest.in/public/v2/users/1038 404 (23.5 ms)
DEBUG pytest_api_core.client:api_client.py:166 response body: {
"message": "Resource not found"
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||