Skip to content

Commit

Permalink
PYIC-7797: turning on processCandidateIdentity feature flag for audit…
Browse files Browse the repository at this point in the history
… events api tests
  • Loading branch information
thebauSoftwire committed Jan 15, 2025
1 parent 9136101 commit 870abd6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
28 changes: 18 additions & 10 deletions api-tests/features/audit-events.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Feature: Audit Events
Scenario: New identity - p2 app journey
Given I start a new 'medium-confidence' journey
Given I activate the 'processCandidateIdentity' feature set
And I start a new 'medium-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'appTriage' event
Then I get a 'dcmaw' CRI response
Expand All @@ -24,6 +25,7 @@ Feature: Audit Events
| dcmaw | kenneth-driving-permit-valid |
| address | kenneth-current |
| fraud | kenneth-score-2 |
And I activate the 'processCandidateIdentity' feature set
When I start a new 'medium-confidence' journey
Then I get a 'page-ipv-reuse' page response
When I submit a 'next' event
Expand All @@ -33,7 +35,8 @@ Feature: Audit Events
And audit events for 'reuse-journey' are recorded [local only]

Scenario: New identity - via F2F journey
Given I start a new 'medium-confidence' journey
Given I activate the 'processCandidateIdentity' feature set
And I start a new 'medium-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'end' event
Then I get a 'page-ipv-identity-postoffice-start' page response
Expand All @@ -59,7 +62,8 @@ Feature: Audit Events
And audit events for 'new-identity-f2f-journey' are recorded [local only]

Scenario: Delete pending F2F
Given I start a new 'medium-confidence' journey
Given I activate the 'processCandidateIdentity' feature set
And I start a new 'medium-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'end' event
Then I get a 'page-ipv-identity-postoffice-start' page response
Expand All @@ -76,7 +80,7 @@ Feature: Audit Events
| evidence_requested | {"scoringPolicy":"gpg45","strengthScore":3} |
Then I get a 'page-face-to-face-handoff' page response

Given I activate the 'pendingF2FResetEnabled' feature set
Given I activate the 'pendingF2FResetEnabled,processCandidateIdentity' feature set
When I start a new 'medium-confidence' journey
Then I get a 'page-ipv-pending' page response with context 'f2f-delete-details'
When I submit a 'next' event
Expand All @@ -88,7 +92,8 @@ Feature: Audit Events
And audit events for 'delete-pending-f2f-journey' are recorded [local only]

Scenario: Alternate doc mitigation
Given I start a new 'medium-confidence' journey
Given I activate the 'processCandidateIdentity' feature set
And I start a new 'medium-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'appTriage' event
Then I get a 'dcmaw' CRI response
Expand All @@ -108,7 +113,8 @@ Feature: Audit Events
| dcmaw | kenneth-driving-permit-valid |
| address | kenneth-current |
| fraud | kenneth-score-2 |
When I start a new 'medium-confidence' journey with reprove identity
Given I activate the 'processCandidateIdentity' feature set
And I start a new 'medium-confidence' journey with reprove identity
Then I get a 'reprove-identity-start' page response
When I submit a 'next' event
Then I get a 'page-ipv-identity-document-start' page response
Expand All @@ -129,7 +135,7 @@ Feature: Audit Events
And audit events for 'reprove-identity-journey' are recorded [local only]

Scenario: No photo ID
Given I activate the 'p1Journeys' feature set
Given I activate the 'p1Journeys,processCandidateIdentity' feature set
When I start a new 'low-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'end' event
Expand All @@ -144,6 +150,7 @@ Feature: Audit Events
| dcmaw | kenneth-driving-permit-valid |
| address | kenneth-current |
| fraud | kenneth-score-2 |
And I activate the 'processCandidateIdentity' feature set
When I start a new 'medium-confidence' journey
Then I get a 'page-ipv-reuse' page response
When I submit a 'update-details' event
Expand Down Expand Up @@ -179,15 +186,16 @@ Feature: Audit Events
And audit events for 'update-name-and-address-journey' are recorded [local only]

Scenario: Inherited identity journey
Given I start a new 'medium-confidence-pcl200-pcl250' journey with inherited identity 'alice-vot-pcl200-no-evidence'
Given I activate the 'processCandidateIdentity' feature set
And I start a new 'medium-confidence-pcl200-pcl250' journey with inherited identity 'alice-vot-pcl200-no-evidence'
Then I get an OAuth response
When I use the OAuth response to get my identity
Then I get a 'PCL200' identity
And audit events for 'inherited-identity-journey' are recorded [local only]

Scenario: International address journey
Given I start a new 'medium-confidence' journey
And I activate the 'internationalAddress' feature sets
And I activate the 'internationalAddress,processCandidateIdentity' feature sets
And I start a new 'medium-confidence' journey
Then I get a 'live-in-uk' page response
When I submit a 'international' event
Expand All @@ -197,7 +205,7 @@ Feature: Audit Events
And audit events for 'international-address-journey' are recorded [local only]

Scenario: Strategic app journey
Given I activate the 'strategicApp' feature set
Given I activate the 'strategicApp,processCandidateIdentity' feature set
When I start a new 'medium-confidence' journey
Then I get a 'page-ipv-identity-document-start' page response
When I submit an 'appTriage' event
Expand Down
2 changes: 1 addition & 1 deletion local-running/core.local.params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ core:
sqsAsync: true
kidJarHeaderEnabled: true
drivingLicenceAuthCheck: false
processCandidateIdentity: true
processCandidateIdentity: false
features:
processCandidateIdentity:
featureFlags:
Expand Down

0 comments on commit 870abd6

Please sign in to comment.