Commit 7ffecf2
committed
- Added dev feature flag through the middleware to control access to the /tasks/orphaned-tasks API.
- Implemented negative test cases for the /tasks/orphaned-tasks endpoint:
- Tested the scenario where the dev flag is not provided, expecting a 404 status code with a "Route not found" message.
- Tested the scenario where the database query fails, ensuring the API responds with a 500 status code and an appropriate error message.1 parent 3ae49c5 commit 7ffecf2
File tree
3 files changed
+25
-9
lines changed- controllers
- routes
- test/integration
3 files changed
+25
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
537 | | - | |
538 | | - | |
| 538 | + | |
| 539 | + | |
539 | 540 | | |
540 | 541 | | |
541 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
1654 | 1655 | | |
1655 | 1656 | | |
1656 | 1657 | | |
1657 | | - | |
| 1658 | + | |
1658 | 1659 | | |
1659 | 1660 | | |
1660 | 1661 | | |
| |||
1668 | 1669 | | |
1669 | 1670 | | |
1670 | 1671 | | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
1671 | 1678 | | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
1672 | 1682 | | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
1676 | 1690 | | |
1677 | 1691 | | |
1678 | 1692 | | |
0 commit comments