Skip to content

Commit aca58eb

Browse files
committed
Added test to report yourself
1 parent e96060c commit aca58eb

File tree

1 file changed

+69
-18
lines changed

1 file changed

+69
-18
lines changed

PyMatcha.postman_collection.json

Lines changed: 69 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,6 +2807,57 @@
28072807
}
28082808
},
28092809
"response": []
2810+
},
2811+
{
2812+
"name": "Report yourself",
2813+
"event": [
2814+
{
2815+
"listen": "test",
2816+
"script": {
2817+
"id": "6be429c6-89f9-4a13-9907-834b2dc30d5e",
2818+
"exec": [
2819+
"var response = JSON.parse(responseBody);",
2820+
"",
2821+
"",
2822+
"pm.test(\"Status code is 400\", function () {",
2823+
" pm.response.to.have.status(400);",
2824+
"});",
2825+
"",
2826+
"tests[\"JSON return code is 400\"] = response.code == 400",
2827+
"",
2828+
"tests[\"success is true\"] = response.success == false",
2829+
"tests[\"Message is correct\"] = response.error.message == \"Cannot report yourself\"",
2830+
""
2831+
],
2832+
"type": "text/javascript"
2833+
}
2834+
}
2835+
],
2836+
"request": {
2837+
"method": "POST",
2838+
"header": [],
2839+
"body": {
2840+
"mode": "raw",
2841+
"raw": "{\n\t\"reason\": \"bot\"\n}",
2842+
"options": {
2843+
"raw": {
2844+
"language": "json"
2845+
}
2846+
}
2847+
},
2848+
"url": {
2849+
"raw": "{{host}}/profile/report/{{user_email}}",
2850+
"host": [
2851+
"{{host}}"
2852+
],
2853+
"path": [
2854+
"profile",
2855+
"report",
2856+
"{{user_email}}"
2857+
]
2858+
}
2859+
},
2860+
"response": []
28102861
}
28112862
],
28122863
"protocolProfileBehavior": {},
@@ -3015,109 +3066,109 @@
30153066
],
30163067
"variable": [
30173068
{
3018-
"id": "0aa4bf10-ee3d-4f4a-b758-be39c538b297",
3069+
"id": "d1eaccac-408b-4cce-9488-9ecc655a0af7",
30193070
"key": "host",
30203071
"value": "http://127.0.0.1:5000",
30213072
"type": "string"
30223073
},
30233074
{
3024-
"id": "4829552b-b71d-446f-9cf8-e4991a601c47",
3075+
"id": "a8a6a2fc-7b93-49e5-85c3-29a0e8380388",
30253076
"key": "user_id",
30263077
"value": "",
30273078
"type": "string"
30283079
},
30293080
{
3030-
"id": "510d6996-225a-47e0-9a1f-59e5d8850459",
3081+
"id": "ccde4af0-1f5c-4d5e-99e3-bf815dbd446c",
30313082
"key": "user_email",
30323083
"value": "foo@example.org",
30333084
"type": "string"
30343085
},
30353086
{
3036-
"id": "817af169-5253-490d-8cb4-4c9c6552a32f",
3087+
"id": "cdfd8c84-76fa-4bb8-b832-5ab254aabc1e",
30373088
"key": "user_username",
30383089
"value": "foo",
30393090
"type": "string"
30403091
},
30413092
{
3042-
"id": "a7b685c8-afc8-4beb-85a7-ef9148e43003",
3093+
"id": "1b12c9b7-ab43-408c-b698-04985777713d",
30433094
"key": "user_password",
30443095
"value": "admin",
30453096
"type": "string"
30463097
},
30473098
{
3048-
"id": "dbf73ec4-2360-4d06-a7a8-ed800176a5f6",
3099+
"id": "8f998682-b1d6-4edc-abde-a5b245c17d53",
30493100
"key": "user_firstname",
30503101
"value": "Foo",
30513102
"type": "string"
30523103
},
30533104
{
3054-
"id": "6c74dc40-dccc-4778-8f5d-66893810a0ab",
3105+
"id": "219af8cb-d79d-4258-94cd-f2f8089a91ba",
30553106
"key": "user_lastname",
30563107
"value": "Bar",
30573108
"type": "string"
30583109
},
30593110
{
3060-
"id": "344d24a4-8705-4cc5-b459-a0d4e77960e0",
3111+
"id": "f62858c5-d0ba-4ff2-a61a-842c390852be",
30613112
"key": "debug_token",
30623113
"value": "xX69jules69Xx",
30633114
"type": "string"
30643115
},
30653116
{
3066-
"id": "6573eb46-4b86-475a-8dea-6487a32124b3",
3117+
"id": "61ebc570-2f3d-4e0c-b59a-53b2e143bae1",
30673118
"key": "user_access_token",
30683119
"value": "",
30693120
"type": "string"
30703121
},
30713122
{
3072-
"id": "fcb3c2f2-50b9-496f-8863-3a9e7927c083",
3123+
"id": "bb8645b5-ef60-473e-b1dd-528efaa2780e",
30733124
"key": "user_refresh_token",
30743125
"value": "",
30753126
"type": "string"
30763127
},
30773128
{
3078-
"id": "e53f8bf1-4e49-47fe-af11-ff48243709ca",
3129+
"id": "c41b0879-23c7-4275-bf7f-0cae15ca7b37",
30793130
"key": "expired_token",
30803131
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTAyNDIyNjQsIm5iZiI6MTU5MDI0MjI2NCwianRpIjoiNTM0ZGI5NzQtOWE4Ni00MGViLWE1NDEtMDg3N2ZmNzQ3NDVhIiwiZXhwIjoxNTkwMjQyMzI0LCJpZGVudGl0eSI6eyJpZCI6NTEyLCJlbWFpbCI6ImZvb0BleGFtcGxlLm9yZyIsInVzZXJuYW1lIjoiYmFyIiwiaXNfb25saW5lIjp0cnVlLCJkYXRlX2xhc3RzZWVuIjoiU2F0LCAyMyBNYXkgMjAyMCAxMzo1Nzo0NCBHTVQifSwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.NTp2P0WNkXDwzuzrcNIQdeAfizQ57HQgkzBLSvY1yHU",
30813132
"type": "string"
30823133
},
30833134
{
3084-
"id": "97f04f56-8788-4a96-b4bf-b7df76d61a85",
3135+
"id": "37fd47b5-d383-455a-bcec-afe02cdf9978",
30853136
"key": "user_orientation",
30863137
"value": "heterosexual",
30873138
"type": "string"
30883139
},
30893140
{
3090-
"id": "9d3ae8c3-9e9d-410c-8f3e-9981aa794ffe",
3141+
"id": "9a219eea-c8cc-487c-8a2d-72772aa3b162",
30913142
"key": "user_bio",
30923143
"value": "Lorem Ipsum is the single greatest threat. We are not - we are not keeping up with other websites. Lorem Ipsum best not make any more threats to your website. It will be met with fire and fury like the world has never seen. Does everybody know that pig named Lorem Ipsum? An ‘extremely credible source’ has called my office and told me that Barack Obama’s placeholder text is a fraud.",
30933144
"type": "string"
30943145
},
30953146
{
3096-
"id": "286a8b4b-4896-4052-9954-5268fa7ec5d2",
3147+
"id": "c249e68b-d32b-4444-bfcd-ea30a1c9e1d2",
30973148
"key": "user_gender",
30983149
"value": "male",
30993150
"type": "string"
31003151
},
31013152
{
3102-
"id": "8af47f4b-543e-4854-9f5e-4d233c3b1fa8",
3153+
"id": "eb7495d2-6317-4bef-9836-622b826c5187",
31033154
"key": "user_birthdate",
31043155
"value": "1590674628",
31053156
"type": "string"
31063157
},
31073158
{
3108-
"id": "268b8033-29e7-43cd-8656-320cb618c349",
3159+
"id": "47a85136-14be-42f6-8dc3-6c1f2664c471",
31093160
"key": "user_lat",
31103161
"value": "44.8404",
31113162
"type": "string"
31123163
},
31133164
{
3114-
"id": "055ded59-04f0-49b0-b0ef-5e197597e234",
3165+
"id": "bcec627d-14c0-4750-bf7f-dd2b3a04bed1",
31153166
"key": "user_lng",
31163167
"value": "-0.5805",
31173168
"type": "string"
31183169
},
31193170
{
3120-
"id": "6067682f-bb9d-43fa-b35a-f9d6e924596e",
3171+
"id": "122f39f0-e595-4300-a44c-48a40b2a8e1c",
31213172
"key": "user_ip",
31223173
"value": "77.205.46.181",
31233174
"type": "string"

0 commit comments

Comments
 (0)