|
4497 | 4497 | }, |
4498 | 4498 | "response": [] |
4499 | 4499 | }, |
| 4500 | + { |
| 4501 | + "name": "Get unseen messages", |
| 4502 | + "event": [ |
| 4503 | + { |
| 4504 | + "listen": "test", |
| 4505 | + "script": { |
| 4506 | + "id": "f76e158d-1a7b-4047-8703-5788204d3e08", |
| 4507 | + "exec": [ |
| 4508 | + "var response = JSON.parse(responseBody);", |
| 4509 | + "", |
| 4510 | + "", |
| 4511 | + "pm.test(\"Status code is 200\", function () {", |
| 4512 | + " pm.response.to.have.status(200);", |
| 4513 | + "});", |
| 4514 | + "", |
| 4515 | + "tests[\"Message is correct\"] = response.new_messages.length == 1", |
| 4516 | + "tests[\"New message content is correct\"] = response.new_messages[0].content == \"My Reply\"", |
| 4517 | + "tests[\"New message is_seen\"] = response.new_messages[0].is_seen == 0", |
| 4518 | + "tests[\"New message seen timestamp is null\"] = response.new_messages[0].seen_timestamp == null" |
| 4519 | + ], |
| 4520 | + "type": "text/javascript" |
| 4521 | + } |
| 4522 | + } |
| 4523 | + ], |
| 4524 | + "request": { |
| 4525 | + "method": "GET", |
| 4526 | + "header": [], |
| 4527 | + "url": { |
| 4528 | + "raw": "{{host}}/messages/unseen", |
| 4529 | + "host": [ |
| 4530 | + "{{host}}" |
| 4531 | + ], |
| 4532 | + "path": [ |
| 4533 | + "messages", |
| 4534 | + "unseen" |
| 4535 | + ] |
| 4536 | + } |
| 4537 | + }, |
| 4538 | + "response": [] |
| 4539 | + }, |
4500 | 4540 | { |
4501 | 4541 | "name": "See unknown user messages", |
4502 | 4542 | "event": [ |
|
4633 | 4673 | } |
4634 | 4674 | }, |
4635 | 4675 | "response": [] |
| 4676 | + }, |
| 4677 | + { |
| 4678 | + "name": "Get unseen messages no new message", |
| 4679 | + "event": [ |
| 4680 | + { |
| 4681 | + "listen": "test", |
| 4682 | + "script": { |
| 4683 | + "id": "dc64c405-ead8-405c-9f31-841290add73a", |
| 4684 | + "exec": [ |
| 4685 | + "var response = JSON.parse(responseBody);", |
| 4686 | + "", |
| 4687 | + "", |
| 4688 | + "pm.test(\"Status code is 200\", function () {", |
| 4689 | + " pm.response.to.have.status(200);", |
| 4690 | + "});", |
| 4691 | + "", |
| 4692 | + "tests[\"Message is correct\"] = response.message == \"No new messages.\"" |
| 4693 | + ], |
| 4694 | + "type": "text/javascript" |
| 4695 | + } |
| 4696 | + } |
| 4697 | + ], |
| 4698 | + "request": { |
| 4699 | + "method": "GET", |
| 4700 | + "header": [], |
| 4701 | + "url": { |
| 4702 | + "raw": "{{host}}/messages/unseen", |
| 4703 | + "host": [ |
| 4704 | + "{{host}}" |
| 4705 | + ], |
| 4706 | + "path": [ |
| 4707 | + "messages", |
| 4708 | + "unseen" |
| 4709 | + ] |
| 4710 | + } |
| 4711 | + }, |
| 4712 | + "response": [] |
4636 | 4713 | } |
4637 | 4714 | ], |
4638 | 4715 | "protocolProfileBehavior": {} |
|
4795 | 4872 | ], |
4796 | 4873 | "variable": [ |
4797 | 4874 | { |
4798 | | - "id": "51a87d51-b3a6-4cde-9b11-1fe5ad7be7af", |
| 4875 | + "id": "d56a13d7-6874-4212-952f-32539a07db40", |
4799 | 4876 | "key": "host", |
4800 | 4877 | "value": "http://127.0.0.1:5000" |
4801 | 4878 | }, |
4802 | 4879 | { |
4803 | | - "id": "7cbb58d1-cad3-4e00-915f-53a6c467d991", |
| 4880 | + "id": "623be53f-61b5-4d24-8f90-74ddcf0ce4b9", |
4804 | 4881 | "key": "user_id", |
4805 | 4882 | "value": "" |
4806 | 4883 | }, |
4807 | 4884 | { |
4808 | | - "id": "693836fa-3848-4780-81c7-ad60a40700ae", |
| 4885 | + "id": "14a84e70-a42c-4bda-8986-caf5edd0b131", |
4809 | 4886 | "key": "user_email", |
4810 | 4887 | "value": "foo@example.org" |
4811 | 4888 | }, |
4812 | 4889 | { |
4813 | | - "id": "02053d62-a0a9-40bb-8e6f-43d86eb1fa17", |
| 4890 | + "id": "bd3f19c8-5e62-40f7-b441-a091762a447a", |
4814 | 4891 | "key": "user_username", |
4815 | 4892 | "value": "foo" |
4816 | 4893 | }, |
4817 | 4894 | { |
4818 | | - "id": "760554e4-b902-431a-b29b-03679009434c", |
| 4895 | + "id": "e9404b3c-30e4-41e4-802a-17f0b898aa47", |
4819 | 4896 | "key": "user_password", |
4820 | 4897 | "value": "admin" |
4821 | 4898 | }, |
4822 | 4899 | { |
4823 | | - "id": "8d73261c-6557-4939-9718-c5f3ed186ea8", |
| 4900 | + "id": "3f209e31-a678-406e-9ad7-ae23cfa83ab8", |
4824 | 4901 | "key": "user_firstname", |
4825 | 4902 | "value": "Foo" |
4826 | 4903 | }, |
4827 | 4904 | { |
4828 | | - "id": "f7fa880d-6264-44f7-a8ce-c470ff077a83", |
| 4905 | + "id": "b2f1c85a-bd1b-49bf-b8e0-0e4328ed95f2", |
4829 | 4906 | "key": "user_lastname", |
4830 | 4907 | "value": "Bar" |
4831 | 4908 | }, |
4832 | 4909 | { |
4833 | | - "id": "28f7acd5-c6b0-4e82-a04c-17371197787b", |
| 4910 | + "id": "df95c185-4257-4d69-8f80-4e51b6ea84aa", |
4834 | 4911 | "key": "debug_token", |
4835 | 4912 | "value": "xX69jules69Xx" |
4836 | 4913 | }, |
4837 | 4914 | { |
4838 | | - "id": "ad555769-0803-4b30-a7a2-fdb9d582fd4d", |
| 4915 | + "id": "baac5b67-e6f8-4b44-8d03-9c1de6dba09f", |
4839 | 4916 | "key": "user_access_token", |
4840 | 4917 | "value": "" |
4841 | 4918 | }, |
4842 | 4919 | { |
4843 | | - "id": "bd3194a6-e6b3-4f1d-a3f5-bf41341dc093", |
| 4920 | + "id": "40cf296c-1333-42e1-970f-13e03d60d1eb", |
4844 | 4921 | "key": "user_refresh_token", |
4845 | 4922 | "value": "" |
4846 | 4923 | }, |
4847 | 4924 | { |
4848 | | - "id": "f35b0ce7-b46a-41ac-8c79-efa76178786e", |
| 4925 | + "id": "ed652ff2-2c51-413c-9465-9e181d80f0e5", |
4849 | 4926 | "key": "expired_token", |
4850 | 4927 | "value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1OTAyNDIyNjQsIm5iZiI6MTU5MDI0MjI2NCwianRpIjoiNTM0ZGI5NzQtOWE4Ni00MGViLWE1NDEtMDg3N2ZmNzQ3NDVhIiwiZXhwIjoxNTkwMjQyMzI0LCJpZGVudGl0eSI6eyJpZCI6NTEyLCJlbWFpbCI6ImZvb0BleGFtcGxlLm9yZyIsInVzZXJuYW1lIjoiYmFyIiwiaXNfb25saW5lIjp0cnVlLCJkYXRlX2xhc3RzZWVuIjoiU2F0LCAyMyBNYXkgMjAyMCAxMzo1Nzo0NCBHTVQifSwiZnJlc2giOnRydWUsInR5cGUiOiJhY2Nlc3MifQ.NTp2P0WNkXDwzuzrcNIQdeAfizQ57HQgkzBLSvY1yHU" |
4851 | 4928 | }, |
4852 | 4929 | { |
4853 | | - "id": "e22e2d2f-a517-4b9b-890f-9393c8656aed", |
| 4930 | + "id": "87d63756-b49d-430e-a5fd-25fc048be13d", |
4854 | 4931 | "key": "user_orientation", |
4855 | 4932 | "value": "heterosexual" |
4856 | 4933 | }, |
4857 | 4934 | { |
4858 | | - "id": "2a8b6700-24d1-4ca6-b29c-d022b8a5fb8c", |
| 4935 | + "id": "ff3a467c-902b-4129-9bf5-adf5d701b732", |
4859 | 4936 | "key": "user_bio", |
4860 | 4937 | "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." |
4861 | 4938 | }, |
4862 | 4939 | { |
4863 | | - "id": "597a56c2-2530-4900-ae36-b3e10175d936", |
| 4940 | + "id": "c80b16e5-fc1e-4d2c-b2e3-6cf8340bf274", |
4864 | 4941 | "key": "user_gender", |
4865 | 4942 | "value": "male" |
4866 | 4943 | }, |
4867 | 4944 | { |
4868 | | - "id": "3c09e8cb-9e4a-4274-90fe-354196c4c64a", |
| 4945 | + "id": "49132f7c-7b3c-40c3-b11f-fdea73fd2acb", |
4869 | 4946 | "key": "user_birthdate", |
4870 | 4947 | "value": "06/04/1998" |
4871 | 4948 | }, |
4872 | 4949 | { |
4873 | | - "id": "73a843d0-a43e-4829-92b4-099a8f86ae74", |
| 4950 | + "id": "ad9d9ed7-2330-427e-937b-9a93e0504e4a", |
4874 | 4951 | "key": "user_lat", |
4875 | 4952 | "value": "44.8404" |
4876 | 4953 | }, |
4877 | 4954 | { |
4878 | | - "id": "3ad8f109-e36f-43dd-9f60-077a4fbe06b8", |
| 4955 | + "id": "1f2570ff-5cab-466f-b221-97a79a631165", |
4879 | 4956 | "key": "user_lng", |
4880 | 4957 | "value": "-0.5805" |
4881 | 4958 | }, |
4882 | 4959 | { |
4883 | | - "id": "0a23376b-a2a7-4d5c-8cd4-ba2dcbdfbe58", |
| 4960 | + "id": "8436114f-4417-4821-8168-8cabee7c69ee", |
4884 | 4961 | "key": "user_ip", |
4885 | 4962 | "value": "77.205.46.181" |
4886 | 4963 | } |
|
0 commit comments