|
2656 | 2656 | " pm.response.to.have.status(200);", |
2657 | 2657 | "});", |
2658 | 2658 | "", |
2659 | | - "tests[\"Is geohash correct\"] = response.geohash == \"ezzw82vu4u1r\"" |
| 2659 | + "tests[\"Is geohash correct\"] = response.geohash == \"spb8kg12wgw3\"" |
2660 | 2660 | ], |
2661 | 2661 | "type": "text/javascript" |
2662 | 2662 | } |
|
5437 | 5437 | ], |
5438 | 5438 | "protocolProfileBehavior": {} |
5439 | 5439 | }, |
| 5440 | + { |
| 5441 | + "name": "Recommendations", |
| 5442 | + "item": [ |
| 5443 | + { |
| 5444 | + "name": "Start recommendation calculations", |
| 5445 | + "event": [ |
| 5446 | + { |
| 5447 | + "listen": "test", |
| 5448 | + "script": { |
| 5449 | + "id": "c9b3da99-1f4b-4600-b5d6-4206123e4eb4", |
| 5450 | + "exec": [ |
| 5451 | + "var response = JSON.parse(responseBody);", |
| 5452 | + "", |
| 5453 | + "", |
| 5454 | + "pm.test(\"Status code is 200\", function () {", |
| 5455 | + " pm.response.to.have.status(200);", |
| 5456 | + "});", |
| 5457 | + "" |
| 5458 | + ], |
| 5459 | + "type": "text/javascript" |
| 5460 | + } |
| 5461 | + } |
| 5462 | + ], |
| 5463 | + "request": { |
| 5464 | + "method": "POST", |
| 5465 | + "header": [ |
| 5466 | + { |
| 5467 | + "key": "debug-auth-token", |
| 5468 | + "value": "{{debug_token}}", |
| 5469 | + "type": "text" |
| 5470 | + } |
| 5471 | + ], |
| 5472 | + "url": { |
| 5473 | + "raw": "{{host}}/debug/recommendations/start", |
| 5474 | + "host": [ |
| 5475 | + "{{host}}" |
| 5476 | + ], |
| 5477 | + "path": [ |
| 5478 | + "debug", |
| 5479 | + "recommendations", |
| 5480 | + "start" |
| 5481 | + ] |
| 5482 | + } |
| 5483 | + }, |
| 5484 | + "response": [] |
| 5485 | + }, |
| 5486 | + { |
| 5487 | + "name": "Get user recommendations", |
| 5488 | + "event": [ |
| 5489 | + { |
| 5490 | + "listen": "test", |
| 5491 | + "script": { |
| 5492 | + "id": "1e7dfd1f-a36c-448b-9ce3-acbc0af0a537", |
| 5493 | + "exec": [ |
| 5494 | + "pm.test(\"Status code is 200\", function () {", |
| 5495 | + " pm.response.to.have.status(200);", |
| 5496 | + "});", |
| 5497 | + "", |
| 5498 | + "pm.test(\"Recommendations aren't null\", function () {", |
| 5499 | + " var jsonData = pm.response.json();", |
| 5500 | + " pm.expect(jsonData.recommendations).to.not.eql(null);", |
| 5501 | + "});", |
| 5502 | + "" |
| 5503 | + ], |
| 5504 | + "type": "text/javascript" |
| 5505 | + } |
| 5506 | + } |
| 5507 | + ], |
| 5508 | + "request": { |
| 5509 | + "method": "GET", |
| 5510 | + "header": [], |
| 5511 | + "url": { |
| 5512 | + "raw": "{{host}}/recommendations", |
| 5513 | + "host": [ |
| 5514 | + "{{host}}" |
| 5515 | + ], |
| 5516 | + "path": [ |
| 5517 | + "recommendations" |
| 5518 | + ] |
| 5519 | + } |
| 5520 | + }, |
| 5521 | + "response": [] |
| 5522 | + } |
| 5523 | + ], |
| 5524 | + "protocolProfileBehavior": {} |
| 5525 | + }, |
5440 | 5526 | { |
5441 | 5527 | "name": "Reset", |
5442 | 5528 | "item": [ |
|
5532 | 5618 | } |
5533 | 5619 | }, |
5534 | 5620 | "response": [] |
| 5621 | + }, |
| 5622 | + { |
| 5623 | + "name": "Reset redis", |
| 5624 | + "event": [ |
| 5625 | + { |
| 5626 | + "listen": "test", |
| 5627 | + "script": { |
| 5628 | + "id": "bb64517b-6835-4be3-9662-3ceede1a6316", |
| 5629 | + "exec": [ |
| 5630 | + "pm.test(\"Status code is 200\", function () {", |
| 5631 | + " pm.response.to.have.status(204);", |
| 5632 | + "});", |
| 5633 | + "" |
| 5634 | + ], |
| 5635 | + "type": "text/javascript" |
| 5636 | + } |
| 5637 | + } |
| 5638 | + ], |
| 5639 | + "request": { |
| 5640 | + "auth": { |
| 5641 | + "type": "noauth" |
| 5642 | + }, |
| 5643 | + "method": "DELETE", |
| 5644 | + "header": [ |
| 5645 | + { |
| 5646 | + "key": "debug-auth-token", |
| 5647 | + "type": "text", |
| 5648 | + "value": "{{debug_token}}" |
| 5649 | + } |
| 5650 | + ], |
| 5651 | + "url": { |
| 5652 | + "raw": "{{host}}/debug/redis", |
| 5653 | + "host": [ |
| 5654 | + "{{host}}" |
| 5655 | + ], |
| 5656 | + "path": [ |
| 5657 | + "debug", |
| 5658 | + "redis" |
| 5659 | + ] |
| 5660 | + } |
| 5661 | + }, |
| 5662 | + "response": [] |
5535 | 5663 | } |
5536 | 5664 | ], |
5537 | 5665 | "protocolProfileBehavior": {} |
|
5595 | 5723 | ], |
5596 | 5724 | "variable": [ |
5597 | 5725 | { |
5598 | | - "id": "461c4e89-379c-4ecc-ab3d-e9a9ac5df859", |
| 5726 | + "id": "ae3c1742-39ab-4715-8465-cb39b5c29c05", |
5599 | 5727 | "key": "host", |
5600 | 5728 | "value": "http://127.0.0.1:5000" |
5601 | 5729 | }, |
5602 | 5730 | { |
5603 | | - "id": "b70cbb5c-c6d1-4a86-8001-5b11d2a86ebc", |
| 5731 | + "id": "e7d35862-55e7-4448-88f0-e8bc244b05b0", |
5604 | 5732 | "key": "user_id", |
5605 | 5733 | "value": "" |
5606 | 5734 | }, |
5607 | 5735 | { |
5608 | | - "id": "0b2b9986-ac92-4be7-9971-8c6cff053764", |
| 5736 | + "id": "e98b5a69-255c-49c1-8fa1-003c42ace8ac", |
5609 | 5737 | "key": "user_email", |
5610 | 5738 | "value": "foo@example.org" |
5611 | 5739 | }, |
5612 | 5740 | { |
5613 | | - "id": "a582fcb5-db29-4339-8734-d4c842f859a4", |
| 5741 | + "id": "affc13a3-4e03-4aa3-bd3b-0c2d3e90e037", |
5614 | 5742 | "key": "user_username", |
5615 | 5743 | "value": "foo" |
5616 | 5744 | }, |
5617 | 5745 | { |
5618 | | - "id": "c90dc190-68cc-42dd-b3f7-79b25c8097bd", |
| 5746 | + "id": "9ca9cb60-b44c-4b96-a537-a83070ae0615", |
5619 | 5747 | "key": "user_password", |
5620 | 5748 | "value": "admin" |
5621 | 5749 | }, |
5622 | 5750 | { |
5623 | | - "id": "c94d4c0a-5eb8-40aa-bfda-81b1af3edf17", |
| 5751 | + "id": "026847e3-4dc0-4939-a4f4-0678ed0c8125", |
5624 | 5752 | "key": "user_firstname", |
5625 | 5753 | "value": "Foo" |
5626 | 5754 | }, |
5627 | 5755 | { |
5628 | | - "id": "afde1579-3438-45dd-b7fc-063b6baa7d07", |
| 5756 | + "id": "695b6e88-1415-48b8-a12b-0b9662ade9e7", |
5629 | 5757 | "key": "user_lastname", |
5630 | 5758 | "value": "Bar" |
5631 | 5759 | }, |
5632 | 5760 | { |
5633 | | - "id": "418dab0a-b2b3-4a6a-82c3-50f1ae99d548", |
| 5761 | + "id": "7207a34c-d57b-40f2-b889-4c92033b283b", |
5634 | 5762 | "key": "debug_token", |
5635 | 5763 | "value": "xX69jules69Xx" |
5636 | 5764 | }, |
5637 | 5765 | { |
5638 | | - "id": "ce3f5bd7-c5d7-4d36-8b69-58fbb34c99cc", |
| 5766 | + "id": "1f4d2d09-e806-4790-8a9e-84bf7f0462a2", |
5639 | 5767 | "key": "user_access_token", |
5640 | 5768 | "value": "" |
5641 | 5769 | }, |
5642 | 5770 | { |
5643 | | - "id": "00529b58-2d48-49ef-b100-5717853dad2b", |
| 5771 | + "id": "b5761a25-0920-417f-9179-8c5be97097ac", |
5644 | 5772 | "key": "user_refresh_token", |
5645 | 5773 | "value": "" |
5646 | 5774 | }, |
5647 | 5775 | { |
5648 | | - "id": "2b58f894-ab87-46e9-a36f-e333381e9eb2", |
| 5776 | + "id": "2564fe00-7a58-4ce2-a10f-36692c2611f0", |
5649 | 5777 | "key": "expired_token", |
5650 | 5778 | "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTAyNDIyNjQsIm5iZiI6MTU5MDI0MjI2NCwianRpIjoiNTM0ZGI5NzQtOWE4Ni00MGViLWE1NDEtMDg3N2ZmNzQ3NDVhIiwiZXhwIjoxNTkwMjQyMzI0LCJpZGVudGl0eSI6eyJpZCI6NTEyLCJlbWFpbCI6ImZvb0BleGFtcGxlLm9yZyIsInVzZXJuYW1lIjoiYmFyIiwiaXNfb25saW5lIjp0cnVlLCJkYXRlX2xhc3RzZWVuIjoiU2F0LCAyMyBNYXkgMjAyMCAxMzo1Nzo0NCBHTVQifSwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.NTp2P0WNkXDwzuzrcNIQdeAfizQ57HQgkzBLSvY1yHU" |
5651 | 5779 | }, |
5652 | 5780 | { |
5653 | | - "id": "7712423f-6e0e-4634-aee6-e6dde0b5a424", |
| 5781 | + "id": "2f511bbd-529c-4955-860c-67d059eac1c8", |
5654 | 5782 | "key": "user_orientation", |
5655 | 5783 | "value": "heterosexual" |
5656 | 5784 | }, |
5657 | 5785 | { |
5658 | | - "id": "b77f31fc-c749-418b-acfd-4387628b9d57", |
| 5786 | + "id": "ca85a202-0c8b-4d10-8262-63dd3cd86beb", |
5659 | 5787 | "key": "user_bio", |
5660 | 5788 | "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." |
5661 | 5789 | }, |
5662 | 5790 | { |
5663 | | - "id": "ae2a77eb-02ee-4439-a20b-023432b7ea16", |
| 5791 | + "id": "4a4205b9-65d4-4303-bf80-0954310b2a8d", |
5664 | 5792 | "key": "user_gender", |
5665 | 5793 | "value": "male" |
5666 | 5794 | }, |
5667 | 5795 | { |
5668 | | - "id": "273e5cdc-2313-4b17-a26c-f5f0a3207f30", |
| 5796 | + "id": "c8cf0f92-c24e-4ced-b567-d3eef6ce7789", |
5669 | 5797 | "key": "user_birthdate", |
5670 | 5798 | "value": "06/04/1998" |
5671 | 5799 | }, |
5672 | 5800 | { |
5673 | | - "id": "9942a431-5645-43b4-9e85-497d3b85be3e", |
| 5801 | + "id": "406075a2-5965-4491-9aa6-c879e3ac304e", |
5674 | 5802 | "key": "user_lat", |
5675 | 5803 | "value": "44.8404" |
5676 | 5804 | }, |
5677 | 5805 | { |
5678 | | - "id": "ead5923f-2d1b-4753-9df3-7ddd9b8e721a", |
| 5806 | + "id": "703dc3ff-eab2-4b17-b522-7a0a7bc6f894", |
5679 | 5807 | "key": "user_lng", |
5680 | 5808 | "value": "-0.5805" |
5681 | 5809 | }, |
5682 | 5810 | { |
5683 | | - "id": "4a54ddd0-4170-429b-9123-1b7aa11ba636", |
| 5811 | + "id": "a90d387f-4d5b-4832-9136-3d226844c30b", |
5684 | 5812 | "key": "user_ip", |
5685 | 5813 | "value": "77.205.46.181" |
5686 | 5814 | } |
|
0 commit comments