|
2807 | 2807 | } |
2808 | 2808 | }, |
2809 | 2809 | "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": [] |
2810 | 2861 | } |
2811 | 2862 | ], |
2812 | 2863 | "protocolProfileBehavior": {}, |
@@ -3015,109 +3066,109 @@ |
3015 | 3066 | ], |
3016 | 3067 | "variable": [ |
3017 | 3068 | { |
3018 | | - "id": "0aa4bf10-ee3d-4f4a-b758-be39c538b297", |
| 3069 | + "id": "d1eaccac-408b-4cce-9488-9ecc655a0af7", |
3019 | 3070 | "key": "host", |
3020 | 3071 | "value": "http://127.0.0.1:5000", |
3021 | 3072 | "type": "string" |
3022 | 3073 | }, |
3023 | 3074 | { |
3024 | | - "id": "4829552b-b71d-446f-9cf8-e4991a601c47", |
| 3075 | + "id": "a8a6a2fc-7b93-49e5-85c3-29a0e8380388", |
3025 | 3076 | "key": "user_id", |
3026 | 3077 | "value": "", |
3027 | 3078 | "type": "string" |
3028 | 3079 | }, |
3029 | 3080 | { |
3030 | | - "id": "510d6996-225a-47e0-9a1f-59e5d8850459", |
| 3081 | + "id": "ccde4af0-1f5c-4d5e-99e3-bf815dbd446c", |
3031 | 3082 | "key": "user_email", |
3032 | 3083 | "value": "foo@example.org", |
3033 | 3084 | "type": "string" |
3034 | 3085 | }, |
3035 | 3086 | { |
3036 | | - "id": "817af169-5253-490d-8cb4-4c9c6552a32f", |
| 3087 | + "id": "cdfd8c84-76fa-4bb8-b832-5ab254aabc1e", |
3037 | 3088 | "key": "user_username", |
3038 | 3089 | "value": "foo", |
3039 | 3090 | "type": "string" |
3040 | 3091 | }, |
3041 | 3092 | { |
3042 | | - "id": "a7b685c8-afc8-4beb-85a7-ef9148e43003", |
| 3093 | + "id": "1b12c9b7-ab43-408c-b698-04985777713d", |
3043 | 3094 | "key": "user_password", |
3044 | 3095 | "value": "admin", |
3045 | 3096 | "type": "string" |
3046 | 3097 | }, |
3047 | 3098 | { |
3048 | | - "id": "dbf73ec4-2360-4d06-a7a8-ed800176a5f6", |
| 3099 | + "id": "8f998682-b1d6-4edc-abde-a5b245c17d53", |
3049 | 3100 | "key": "user_firstname", |
3050 | 3101 | "value": "Foo", |
3051 | 3102 | "type": "string" |
3052 | 3103 | }, |
3053 | 3104 | { |
3054 | | - "id": "6c74dc40-dccc-4778-8f5d-66893810a0ab", |
| 3105 | + "id": "219af8cb-d79d-4258-94cd-f2f8089a91ba", |
3055 | 3106 | "key": "user_lastname", |
3056 | 3107 | "value": "Bar", |
3057 | 3108 | "type": "string" |
3058 | 3109 | }, |
3059 | 3110 | { |
3060 | | - "id": "344d24a4-8705-4cc5-b459-a0d4e77960e0", |
| 3111 | + "id": "f62858c5-d0ba-4ff2-a61a-842c390852be", |
3061 | 3112 | "key": "debug_token", |
3062 | 3113 | "value": "xX69jules69Xx", |
3063 | 3114 | "type": "string" |
3064 | 3115 | }, |
3065 | 3116 | { |
3066 | | - "id": "6573eb46-4b86-475a-8dea-6487a32124b3", |
| 3117 | + "id": "61ebc570-2f3d-4e0c-b59a-53b2e143bae1", |
3067 | 3118 | "key": "user_access_token", |
3068 | 3119 | "value": "", |
3069 | 3120 | "type": "string" |
3070 | 3121 | }, |
3071 | 3122 | { |
3072 | | - "id": "fcb3c2f2-50b9-496f-8863-3a9e7927c083", |
| 3123 | + "id": "bb8645b5-ef60-473e-b1dd-528efaa2780e", |
3073 | 3124 | "key": "user_refresh_token", |
3074 | 3125 | "value": "", |
3075 | 3126 | "type": "string" |
3076 | 3127 | }, |
3077 | 3128 | { |
3078 | | - "id": "e53f8bf1-4e49-47fe-af11-ff48243709ca", |
| 3129 | + "id": "c41b0879-23c7-4275-bf7f-0cae15ca7b37", |
3079 | 3130 | "key": "expired_token", |
3080 | 3131 | "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTAyNDIyNjQsIm5iZiI6MTU5MDI0MjI2NCwianRpIjoiNTM0ZGI5NzQtOWE4Ni00MGViLWE1NDEtMDg3N2ZmNzQ3NDVhIiwiZXhwIjoxNTkwMjQyMzI0LCJpZGVudGl0eSI6eyJpZCI6NTEyLCJlbWFpbCI6ImZvb0BleGFtcGxlLm9yZyIsInVzZXJuYW1lIjoiYmFyIiwiaXNfb25saW5lIjp0cnVlLCJkYXRlX2xhc3RzZWVuIjoiU2F0LCAyMyBNYXkgMjAyMCAxMzo1Nzo0NCBHTVQifSwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.NTp2P0WNkXDwzuzrcNIQdeAfizQ57HQgkzBLSvY1yHU", |
3081 | 3132 | "type": "string" |
3082 | 3133 | }, |
3083 | 3134 | { |
3084 | | - "id": "97f04f56-8788-4a96-b4bf-b7df76d61a85", |
| 3135 | + "id": "37fd47b5-d383-455a-bcec-afe02cdf9978", |
3085 | 3136 | "key": "user_orientation", |
3086 | 3137 | "value": "heterosexual", |
3087 | 3138 | "type": "string" |
3088 | 3139 | }, |
3089 | 3140 | { |
3090 | | - "id": "9d3ae8c3-9e9d-410c-8f3e-9981aa794ffe", |
| 3141 | + "id": "9a219eea-c8cc-487c-8a2d-72772aa3b162", |
3091 | 3142 | "key": "user_bio", |
3092 | 3143 | "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.", |
3093 | 3144 | "type": "string" |
3094 | 3145 | }, |
3095 | 3146 | { |
3096 | | - "id": "286a8b4b-4896-4052-9954-5268fa7ec5d2", |
| 3147 | + "id": "c249e68b-d32b-4444-bfcd-ea30a1c9e1d2", |
3097 | 3148 | "key": "user_gender", |
3098 | 3149 | "value": "male", |
3099 | 3150 | "type": "string" |
3100 | 3151 | }, |
3101 | 3152 | { |
3102 | | - "id": "8af47f4b-543e-4854-9f5e-4d233c3b1fa8", |
| 3153 | + "id": "eb7495d2-6317-4bef-9836-622b826c5187", |
3103 | 3154 | "key": "user_birthdate", |
3104 | 3155 | "value": "1590674628", |
3105 | 3156 | "type": "string" |
3106 | 3157 | }, |
3107 | 3158 | { |
3108 | | - "id": "268b8033-29e7-43cd-8656-320cb618c349", |
| 3159 | + "id": "47a85136-14be-42f6-8dc3-6c1f2664c471", |
3109 | 3160 | "key": "user_lat", |
3110 | 3161 | "value": "44.8404", |
3111 | 3162 | "type": "string" |
3112 | 3163 | }, |
3113 | 3164 | { |
3114 | | - "id": "055ded59-04f0-49b0-b0ef-5e197597e234", |
| 3165 | + "id": "bcec627d-14c0-4750-bf7f-dd2b3a04bed1", |
3115 | 3166 | "key": "user_lng", |
3116 | 3167 | "value": "-0.5805", |
3117 | 3168 | "type": "string" |
3118 | 3169 | }, |
3119 | 3170 | { |
3120 | | - "id": "6067682f-bb9d-43fa-b35a-f9d6e924596e", |
| 3171 | + "id": "122f39f0-e595-4300-a44c-48a40b2a8e1c", |
3121 | 3172 | "key": "user_ip", |
3122 | 3173 | "value": "77.205.46.181", |
3123 | 3174 | "type": "string" |
|
0 commit comments