-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upd: Add acceptance criteria for decentralised-dataexchange/bb-consen…
…t-api#614 Signed-off-by: George J Padayatti <[email protected]>
- Loading branch information
1 parent
5ae97a6
commit 44230f4
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@govstack | ||
@critical | ||
@allure.issue:https://github.com/decentralised-dataexchange/bb-consent-api/issues/614 | ||
@allure.label.author:George | ||
@allure.label.as_id:614 | ||
Feature: Update consent record | ||
Changes to align with GovStack specifications. | ||
- Update consent record endpoint should support both the request body given below: | ||
``` | ||
(current request body) | ||
{ | ||
"optIn": false | ||
} | ||
``` | ||
and | ||
``` | ||
(new request body) | ||
{ | ||
"consentRecord": { | ||
"optIn": false | ||
} | ||
} | ||
``` | ||
|
||
- Query params `dataAgreementId` and `individualId` are not supported in update consent record endpoint | ||
|
||
@positive | ||
Scenario: Update consent record with current request body and without query params | ||
When I update consent record with id "<consentRecordId>", request body `{"optIn":false}` and without query params | ||
Then It returns a consent record and revision. Check if consent record contains optIn as false | ||
|
||
Examples: | ||
| consentRecordId | | ||
| 1 | | ||
|
||
@positive | ||
Scenario: Update consent record with new request body and without query params | ||
When I update consent record with id "<consentRecordId>", request body `{"consentRecord":{"optIn":true}}` and without query params | ||
Then It returns a consent record and revision. Check if consent record contains optIn as true | ||
|
||
Examples: | ||
| consentRecordId | | ||
| 1 | | ||
|
||
|