Skip to content

Commit

Permalink
Upd: Add acceptance criteria for decentralised-dataexchange/bb-consen…
Browse files Browse the repository at this point in the history
…t-api#614

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Jan 10, 2024
1 parent 5ae97a6 commit 44230f4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions gherkin/features/issue_614/issue_614.feature
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 |


0 comments on commit 44230f4

Please sign in to comment.