|
12675 | 12675 | "pm.test('Status code is 400', function () {\r",
|
12676 | 12676 | " pm.response.to.have.status(400);\r",
|
12677 | 12677 | " const response = pm.response.json()\r",
|
12678 |
| - " pm.expect(response.message).to.eq(\"Cannot set \\\"isFirstWeek\\\" without \\\"startDate\\\"\")\r", |
| 12678 | + " pm.expect(response.message).to.eq(\"Cannot filter by \\\"isLastWeek\\\" without \\\"startDate\\\"\")\r", |
12679 | 12679 | "});"
|
12680 | 12680 | ],
|
12681 | 12681 | "type": "text/javascript"
|
|
12727 | 12727 | "pm.test('Status code is 400', function () {\r",
|
12728 | 12728 | " pm.response.to.have.status(400);\r",
|
12729 | 12729 | " const response = pm.response.json()\r",
|
12730 |
| - " pm.expect(response.message).to.eq(\"Cannot set both \\\"isFirstWeek\\\" and \\\"isLastWeek\\\" to \\\"true\\\"\")\r", |
| 12730 | + " pm.expect(response.message).to.eq(\"Cannot filter by \\\"isFirstWeek\\\" without \\\"startDate\\\"\")\r", |
| 12731 | + "});" |
| 12732 | + ], |
| 12733 | + "type": "text/javascript" |
| 12734 | + } |
| 12735 | + } |
| 12736 | + ], |
| 12737 | + "request": { |
| 12738 | + "method": "GET", |
| 12739 | + "header": [ |
| 12740 | + { |
| 12741 | + "key": "Authorization", |
| 12742 | + "type": "text", |
| 12743 | + "value": "Bearer {{token_bookingManager}}" |
| 12744 | + } |
| 12745 | + ], |
| 12746 | + "url": { |
| 12747 | + "raw": "{{URL}}/resourceBookings?fields=id,startDate,endDate,billingAccountId,workPeriods&billingAccountId=80000071&workPeriods.isFirstWeek=true", |
| 12748 | + "host": [ |
| 12749 | + "{{URL}}" |
| 12750 | + ], |
| 12751 | + "path": [ |
| 12752 | + "resourceBookings" |
| 12753 | + ], |
| 12754 | + "query": [ |
| 12755 | + { |
| 12756 | + "key": "fields", |
| 12757 | + "value": "id,startDate,endDate,billingAccountId,workPeriods" |
| 12758 | + }, |
| 12759 | + { |
| 12760 | + "key": "billingAccountId", |
| 12761 | + "value": "80000071" |
| 12762 | + }, |
| 12763 | + { |
| 12764 | + "key": "workPeriods.isFirstWeek", |
| 12765 | + "value": "true" |
| 12766 | + } |
| 12767 | + ] |
| 12768 | + } |
| 12769 | + }, |
| 12770 | + "response": [] |
| 12771 | + }, |
| 12772 | + { |
| 12773 | + "name": "search resource bookings with parameters 17", |
| 12774 | + "event": [ |
| 12775 | + { |
| 12776 | + "listen": "test", |
| 12777 | + "script": { |
| 12778 | + "exec": [ |
| 12779 | + "pm.test('Status code is 400', function () {\r", |
| 12780 | + " pm.response.to.have.status(400);\r", |
| 12781 | + " const response = pm.response.json()\r", |
| 12782 | + " pm.expect(response.message).to.eq(\"Cannot filter by both \\\"isFirstWeek\\\" and \\\"isLastWeek\\\" set to \\\"true\\\"\")\r", |
12731 | 12783 | "});"
|
12732 | 12784 | ],
|
12733 | 12785 | "type": "text/javascript"
|
|
0 commit comments