|
5833 | 5833 | { |
5834 | 5834 | "name": "Search", |
5835 | 5835 | "item": [ |
| 5836 | + { |
| 5837 | + "name": "Add geoloc", |
| 5838 | + "event": [ |
| 5839 | + { |
| 5840 | + "listen": "test", |
| 5841 | + "script": { |
| 5842 | + "id": "0b84dc46-a103-4d7c-b77a-3cdcc39108e6", |
| 5843 | + "exec": [ |
| 5844 | + "var response = JSON.parse(responseBody);", |
| 5845 | + "", |
| 5846 | + "", |
| 5847 | + "pm.test(\"Status code is 200\", function () {", |
| 5848 | + " pm.response.to.have.status(200);", |
| 5849 | + "});", |
| 5850 | + "", |
| 5851 | + "", |
| 5852 | + "tests[\"success is true\"] = response.success == true", |
| 5853 | + "tests[\"Message is correct\"] = response.message == \"New location sucessfully saved.\"" |
| 5854 | + ], |
| 5855 | + "type": "text/javascript" |
| 5856 | + } |
| 5857 | + } |
| 5858 | + ], |
| 5859 | + "request": { |
| 5860 | + "method": "PUT", |
| 5861 | + "header": [], |
| 5862 | + "body": { |
| 5863 | + "mode": "raw", |
| 5864 | + "raw": "{\n\t\"ip\": \"{{user_ip}}\",\n\t\"lat\": {{user_lat}},\n\t\"lng\": {{user_lng}}\n}", |
| 5865 | + "options": { |
| 5866 | + "raw": { |
| 5867 | + "language": "json" |
| 5868 | + } |
| 5869 | + } |
| 5870 | + }, |
| 5871 | + "url": { |
| 5872 | + "raw": "{{host}}/profile/edit/geolocation", |
| 5873 | + "host": [ |
| 5874 | + "{{host}}" |
| 5875 | + ], |
| 5876 | + "path": [ |
| 5877 | + "profile", |
| 5878 | + "edit", |
| 5879 | + "geolocation" |
| 5880 | + ] |
| 5881 | + } |
| 5882 | + }, |
| 5883 | + "response": [] |
| 5884 | + }, |
5836 | 5885 | { |
5837 | 5886 | "name": "Search no params", |
5838 | 5887 | "event": [ |
|
6619 | 6668 | ], |
6620 | 6669 | "variable": [ |
6621 | 6670 | { |
6622 | | - "id": "39435658-24b3-4dea-8409-43d427799e85", |
| 6671 | + "id": "330460a2-d36e-43e7-83de-ba6f3be1a9f9", |
6623 | 6672 | "key": "host", |
6624 | 6673 | "value": "http://127.0.0.1:5000" |
6625 | 6674 | }, |
6626 | 6675 | { |
6627 | | - "id": "30ed52ca-0534-4af5-bb41-d5651b0813ab", |
| 6676 | + "id": "f193749a-6542-4910-8e83-3d02f28fb1c8", |
6628 | 6677 | "key": "user_id", |
6629 | 6678 | "value": "" |
6630 | 6679 | }, |
6631 | 6680 | { |
6632 | | - "id": "1a0561b3-7a1c-4f17-b5e9-def3177a19fa", |
| 6681 | + "id": "f6b4abdf-1bb1-41ad-adb4-de2ef8dab807", |
6633 | 6682 | "key": "user_email", |
6634 | 6683 | "value": "foo@example.org" |
6635 | 6684 | }, |
6636 | 6685 | { |
6637 | | - "id": "35381065-16e0-400c-9b89-7c6d2a45545f", |
| 6686 | + "id": "f9ef5658-7366-4752-8ecf-7c03b88b6fba", |
6638 | 6687 | "key": "user_username", |
6639 | 6688 | "value": "foo" |
6640 | 6689 | }, |
6641 | 6690 | { |
6642 | | - "id": "8f8520cd-d830-4759-832a-3c7d6cc851e9", |
| 6691 | + "id": "2b79679d-59c3-4c04-a281-564a4a713007", |
6643 | 6692 | "key": "user_password", |
6644 | 6693 | "value": "admin" |
6645 | 6694 | }, |
6646 | 6695 | { |
6647 | | - "id": "5ab632fb-ed0a-49c1-b37d-99cc36b05c1e", |
| 6696 | + "id": "a04fe360-2c26-4e56-acf5-b40f8accab58", |
6648 | 6697 | "key": "user_firstname", |
6649 | 6698 | "value": "Foo" |
6650 | 6699 | }, |
6651 | 6700 | { |
6652 | | - "id": "83b37a4e-e63d-4038-802d-44b427fcc69e", |
| 6701 | + "id": "000323c9-cc69-4093-9417-d0c0c9bb9b35", |
6653 | 6702 | "key": "user_lastname", |
6654 | 6703 | "value": "Bar" |
6655 | 6704 | }, |
6656 | 6705 | { |
6657 | | - "id": "9ba04542-d7f3-47d3-9fde-87978b6eb656", |
| 6706 | + "id": "d828ec70-3e65-4188-93cc-041d5f74b94d", |
6658 | 6707 | "key": "debug_token", |
6659 | 6708 | "value": "xX69jules69Xx" |
6660 | 6709 | }, |
6661 | 6710 | { |
6662 | | - "id": "4e04c791-a558-4965-a627-a209c11c104b", |
| 6711 | + "id": "56424c7b-6523-4484-9abc-a1947a6a5050", |
6663 | 6712 | "key": "user_access_token", |
6664 | 6713 | "value": "" |
6665 | 6714 | }, |
6666 | 6715 | { |
6667 | | - "id": "988302f5-679d-4501-a24f-3eafbdfbd0f8", |
| 6716 | + "id": "868c85d8-9841-4e10-8202-05a492974fe4", |
6668 | 6717 | "key": "user_refresh_token", |
6669 | 6718 | "value": "" |
6670 | 6719 | }, |
6671 | 6720 | { |
6672 | | - "id": "a344fb26-9b08-4f1a-b3c9-f7a789cb91e5", |
| 6721 | + "id": "eaaa7e33-3bea-4004-8f5d-f64bc742e3c4", |
6673 | 6722 | "key": "expired_token", |
6674 | 6723 | "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTAyNDIyNjQsIm5iZiI6MTU5MDI0MjI2NCwianRpIjoiNTM0ZGI5NzQtOWE4Ni00MGViLWE1NDEtMDg3N2ZmNzQ3NDVhIiwiZXhwIjoxNTkwMjQyMzI0LCJpZGVudGl0eSI6eyJpZCI6NTEyLCJlbWFpbCI6ImZvb0BleGFtcGxlLm9yZyIsInVzZXJuYW1lIjoiYmFyIiwiaXNfb25saW5lIjp0cnVlLCJkYXRlX2xhc3RzZWVuIjoiU2F0LCAyMyBNYXkgMjAyMCAxMzo1Nzo0NCBHTVQifSwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.NTp2P0WNkXDwzuzrcNIQdeAfizQ57HQgkzBLSvY1yHU" |
6675 | 6724 | }, |
6676 | 6725 | { |
6677 | | - "id": "c05cc5c1-cd7c-4372-826a-72c8b97cf633", |
| 6726 | + "id": "8cadf84f-41fb-4716-8341-3491577a68b6", |
6678 | 6727 | "key": "user_orientation", |
6679 | 6728 | "value": "heterosexual" |
6680 | 6729 | }, |
6681 | 6730 | { |
6682 | | - "id": "ae5f761b-5d2f-4132-bc5b-2779399ae3e8", |
| 6731 | + "id": "7ea612ef-c9c4-4461-9f02-4b9015f41220", |
6683 | 6732 | "key": "user_bio", |
6684 | 6733 | "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." |
6685 | 6734 | }, |
6686 | 6735 | { |
6687 | | - "id": "20599b82-c444-425d-862e-569a614340c3", |
| 6736 | + "id": "927b1143-1bdb-49e3-b550-aa61352e205d", |
6688 | 6737 | "key": "user_gender", |
6689 | 6738 | "value": "male" |
6690 | 6739 | }, |
6691 | 6740 | { |
6692 | | - "id": "3dd55563-04f1-4843-b6e4-f5f3283ce430", |
| 6741 | + "id": "78d05b3f-1c3d-4ce7-bee5-5096e77f7a96", |
6693 | 6742 | "key": "user_birthdate", |
6694 | 6743 | "value": "06/04/1998" |
6695 | 6744 | }, |
6696 | 6745 | { |
6697 | | - "id": "3c6e63f0-bb59-450a-97fd-2b8190155995", |
| 6746 | + "id": "68781bda-183a-4c92-8101-bdbe2fad979f", |
6698 | 6747 | "key": "user_lat", |
6699 | 6748 | "value": "44.8404" |
6700 | 6749 | }, |
6701 | 6750 | { |
6702 | | - "id": "87022369-4495-4acb-8032-60d876d6a194", |
| 6751 | + "id": "94ba9bc0-47ad-455f-97c6-89e55c1f7fd8", |
6703 | 6752 | "key": "user_lng", |
6704 | 6753 | "value": "-0.5805" |
6705 | 6754 | }, |
6706 | 6755 | { |
6707 | | - "id": "cff84987-6118-4b0c-b452-3760802e303a", |
| 6756 | + "id": "660fa986-f724-44a4-bd88-c81ec1f6ed73", |
6708 | 6757 | "key": "user_ip", |
6709 | 6758 | "value": "77.205.46.181" |
6710 | 6759 | } |
|
0 commit comments