Skip to content

Commit

Permalink
test: update test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
SlimDeluxe committed Dec 4, 2023
1 parent dadf755 commit 75690ec
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 38 deletions.
39 changes: 20 additions & 19 deletions tests/fixtures/parcel_import/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"response": {
"status": {
"code": 200,
"http_version": "1.1",
"code": "200",
"message": ""
},
"headers": {
Expand All @@ -17,50 +18,50 @@
"access-control-allow-methods": "GET, POST, DELETE, PUT",
"access-control-allow-origin": "http:\/\/localhost",
"access-control-expose-headers": "Content-Disposition, hrid-csrf, EasyShip-Backend-Version",
"easyship-backend-version": "1.1.5",
"easyship-backend-version": "1.1.21",
"content-type": "application\/json",
"content-length": "60",
"date": "Wed, 01 Mar 2023 06:33:50 GMT"
"date": "Mon, 04 Dec 2023 18:35:20 GMT"
},
"body": "{\"status\":\"ok\",\"errlog\":null,\"pl_number\":[\"16962023439766\"]}",
"body": "{\"status\":\"ok\",\"errlog\":null,\"pl_number\":[\"16962028228119\"]}",
"curl_info": {
"url": "https:\/\/easyship.si\/api\/parcel\/parcel_import?name1=Zdravko+Dren&street=Partizanska&city=Izola&country=SI&pcode=6310&num_of_parcel=1&parcel_type=D-COD&rPropNum=44&cod_purpose=CODREF001&cod_amount=1234.56&predict=1",
"content_type": "application\/json",
"http_code": 200,
"header_size": 497,
"header_size": 498,
"request_size": 307,
"filetime": -1,
"ssl_verify_result": 0,
"redirect_count": 0,
"total_time": 0.152866,
"namelookup_time": 0.004209,
"connect_time": 0.011931,
"pretransfer_time": 0.024021,
"total_time": 0.178103,
"namelookup_time": 0.016825,
"connect_time": 0.021813,
"pretransfer_time": 0.030226,
"size_upload": 0,
"size_download": 60,
"speed_download": 394,
"speed_download": 337,
"speed_upload": 0,
"download_content_length": 60,
"upload_content_length": -1,
"starttransfer_time": 0.15281,
"starttransfer_time": 0.178068,
"redirect_time": 0,
"redirect_url": "",
"primary_ip": "194.28.110.135",
"certinfo": [],
"primary_port": 443,
"local_ip": "172.17.0.2",
"local_port": 52148,
"local_ip": "172.18.0.2",
"local_port": 54408,
"http_version": 2,
"protocol": 2,
"ssl_verifyresult": 0,
"scheme": "HTTPS",
"appconnect_time_us": 23985,
"connect_time_us": 11931,
"namelookup_time_us": 4209,
"pretransfer_time_us": 24021,
"appconnect_time_us": 30188,
"connect_time_us": 21813,
"namelookup_time_us": 16825,
"pretransfer_time_us": 30226,
"redirect_time_us": 0,
"starttransfer_time_us": 152810,
"total_time_us": 152866
"starttransfer_time_us": 178068,
"total_time_us": 178103
}
},
"index": 0
Expand Down
39 changes: 20 additions & 19 deletions tests/fixtures/parcel_import/no_prop_num.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
},
"response": {
"status": {
"code": 200,
"http_version": "1.1",
"code": "200",
"message": ""
},
"headers": {
Expand All @@ -17,50 +18,50 @@
"access-control-allow-methods": "GET, POST, DELETE, PUT",
"access-control-allow-origin": "http:\/\/localhost",
"access-control-expose-headers": "Content-Disposition, hrid-csrf, EasyShip-Backend-Version",
"easyship-backend-version": "1.1.5",
"easyship-backend-version": "1.1.21",
"content-type": "application\/json",
"content-length": "60",
"date": "Wed, 01 Mar 2023 06:33:50 GMT"
"date": "Mon, 04 Dec 2023 18:35:20 GMT"
},
"body": "{\"status\":\"ok\",\"errlog\":null,\"pl_number\":[\"16962023439767\"]}",
"body": "{\"status\":\"ok\",\"errlog\":null,\"pl_number\":[\"16962028228120\"]}",
"curl_info": {
"url": "https:\/\/easyship.si\/api\/parcel\/parcel_import?name1=Zdravko+Dren&street=Partizanska+12&city=Izola&country=SI&pcode=6310&num_of_parcel=1&parcel_type=D-B2C&phone=090123456&predict=1",
"content_type": "application\/json",
"http_code": 200,
"header_size": 497,
"header_size": 498,
"request_size": 273,
"filetime": -1,
"ssl_verify_result": 0,
"redirect_count": 0,
"total_time": 0.153348,
"namelookup_time": 0.00449,
"connect_time": 0.010542,
"pretransfer_time": 0.026826,
"total_time": 0.145177,
"namelookup_time": 0.001109,
"connect_time": 0.004791,
"pretransfer_time": 0.012928,
"size_upload": 0,
"size_download": 60,
"speed_download": 392,
"speed_download": 413,
"speed_upload": 0,
"download_content_length": 60,
"upload_content_length": -1,
"starttransfer_time": 0.153297,
"starttransfer_time": 0.145138,
"redirect_time": 0,
"redirect_url": "",
"primary_ip": "194.28.110.135",
"certinfo": [],
"primary_port": 443,
"local_ip": "172.17.0.2",
"local_port": 52162,
"local_ip": "172.18.0.2",
"local_port": 54412,
"http_version": 2,
"protocol": 2,
"ssl_verifyresult": 0,
"scheme": "HTTPS",
"appconnect_time_us": 26761,
"connect_time_us": 10542,
"namelookup_time_us": 4490,
"pretransfer_time_us": 26826,
"appconnect_time_us": 12905,
"connect_time_us": 4791,
"namelookup_time_us": 1109,
"pretransfer_time_us": 12928,
"redirect_time_us": 0,
"starttransfer_time_us": 153297,
"total_time_us": 153348
"starttransfer_time_us": 145138,
"total_time_us": 145177
}
},
"index": 0
Expand Down

0 comments on commit 75690ec

Please sign in to comment.