|
| 1 | +Feature : Get Pending Request |
| 2 | + |
| 3 | + Scenario: Retrieving Pending Membership and Group Creation Requests |
| 4 | + Given request to view pending requests |
| 5 | + And there are pending access requests from modules |
| 6 | + When the `get_pending_requests` method is called |
| 7 | + Then the method should retrieve all pending membership and group creation requests |
| 8 | + And return the retrieved requests in the context variable |
| 9 | + |
| 10 | + Scenario: Retrieving Pending Access Requests from Modules |
| 11 | + Given request to view pending requests |
| 12 | + And there are pending access requests from modules |
| 13 | + When the `get_pending_requests` method is called |
| 14 | + Then the method should retrieve all pending access requests from modules |
| 15 | + And return the retrieved requests in the context variable |
| 16 | + |
| 17 | + Scenario: Retrieving All Pending Requests |
| 18 | + Given request to view all pending requests |
| 19 | + When the `get_pending_requests` method is called |
| 20 | + Then the method should retrieve all pending membership and group creation requests |
| 21 | + And all pending access requests from modules |
| 22 | + And return the retrieved requests in the context variable |
| 23 | + |
| 24 | + Scenario: Error Handling |
| 25 | + Given request to view pending requests |
| 26 | + And an error occurs while retrieving the requests |
| 27 | + When the `get_pending_requests` method is called |
| 28 | + Then the method should handle the error |
| 29 | + And return an error response |
| 30 | + |
0 commit comments