dvla-application_helper 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.drone.yml +481 -0
- data/.env.template +4 -0
- data/.rspec +3 -0
- data/.rubocop.yml +21 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/README.md +674 -0
- data/Rakefile +31 -0
- data/config/settings/drone-dev.yml +41 -0
- data/config/settings/drone-ext.yml +35 -0
- data/config/settings/drone-link.yml +35 -0
- data/config/settings/drone-perf.yml +35 -0
- data/config/settings/local-dev.yml +40 -0
- data/config/settings/local-ext.yml +35 -0
- data/config/settings/local-link.yml +35 -0
- data/config/settings/local-perf.yml +35 -0
- data/config/settings.yml +29 -0
- data/config/yarp.yml +6 -0
- data/functional-tests/Rakefile +74 -0
- data/functional-tests/chutney.yml +110 -0
- data/functional-tests/features/codl.feature +170 -0
- data/functional-tests/features/codl_image_review_states.feature +140 -0
- data/functional-tests/features/csudl.feature +54 -0
- data/functional-tests/features/csudl_image_review_states.feature +20 -0
- data/functional-tests/features/step_definitions/app_domain_steps.rb +213 -0
- data/functional-tests/features/step_definitions/application_creation_steps.rb +115 -0
- data/functional-tests/features/step_definitions/image_steps.rb +144 -0
- data/functional-tests/features/step_definitions/state_machine_steps.rb +43 -0
- data/functional-tests/features/support/data/artefacts.rb +27 -0
- data/functional-tests/features/support/data/image_helpers.rb +20 -0
- data/functional-tests/features/support/data/schema_helpers.rb +3 -0
- data/functional-tests/features/support/data/string_manipulation.rb +9 -0
- data/functional-tests/features/support/env.rb +25 -0
- data/functional-tests/features/support/hooks.rb +56 -0
- data/functional-tests/features/support/yarp_integration/yarp_helpers.rb +23 -0
- data/functional-tests/features/uodl_image_review_states.feature +244 -0
- data/functional-tests/features/uodl_non_processable.feature +441 -0
- data/functional-tests/features/uodl_processable.feature +416 -0
- data/lib/dvla/application_helper/builders/V1/application_builder.rb +298 -0
- data/lib/dvla/application_helper/builders/V1/codl_application_builder.rb +205 -0
- data/lib/dvla/application_helper/builders/V1/csudl_application_builder.rb +329 -0
- data/lib/dvla/application_helper/builders/V2/base_uodl_v2_application_builder.rb +357 -0
- data/lib/dvla/application_helper/builders/V2/cop_v2_application_builder.rb +59 -0
- data/lib/dvla/application_helper/builders/V2/dup_v2_application_builder.rb +84 -0
- data/lib/dvla/application_helper/builders/V2/exc_v2_application_builder.rb +55 -0
- data/lib/dvla/application_helper/builders/V2/rep_v2_application_builder.rb +84 -0
- data/lib/dvla/application_helper/builders/V2/tyr_v2_application_builder.rb +62 -0
- data/lib/dvla/application_helper/builders/V2/uodl_v2_application_builder.rb +278 -0
- data/lib/dvla/application_helper/builders/V3/base_uodl_v3_application_builder.rb +342 -0
- data/lib/dvla/application_helper/builders/V3/cop_v3_application_builder.rb +56 -0
- data/lib/dvla/application_helper/builders/V3/dup_v3_application_builder.rb +78 -0
- data/lib/dvla/application_helper/builders/V3/exc_v3_application_builder.rb +56 -0
- data/lib/dvla/application_helper/builders/V3/rep_v3_application_builder.rb +81 -0
- data/lib/dvla/application_helper/builders/V3/tyr_v3_application_builder.rb +59 -0
- data/lib/dvla/application_helper/builders/dup_rep_builder_mixin.rb +71 -0
- data/lib/dvla/application_helper/builders/photo_builder_mixin.rb +49 -0
- data/lib/dvla/application_helper/builders/photo_signature_builder_mixin.rb +68 -0
- data/lib/dvla/application_helper/configuration.rb +37 -0
- data/lib/dvla/application_helper/constants.rb +21 -0
- data/lib/dvla/application_helper/enums/review_state.rb +30 -0
- data/lib/dvla/application_helper/enums/unable_to_prove_licence_possession_reasons.rb +8 -0
- data/lib/dvla/application_helper/factories/address.rb +21 -0
- data/lib/dvla/application_helper/factories/application_details.rb +353 -0
- data/lib/dvla/application_helper/factories/casework.rb +7 -0
- data/lib/dvla/application_helper/factories/csudl_photo_signature_image.rb +156 -0
- data/lib/dvla/application_helper/factories/csudl_photo_signature_images.rb +85 -0
- data/lib/dvla/application_helper/factories/organ_donor.rb +32 -0
- data/lib/dvla/application_helper/factories/person.rb +73 -0
- data/lib/dvla/application_helper/factories/photo_image.rb +147 -0
- data/lib/dvla/application_helper/factories/photo_images.rb +183 -0
- data/lib/dvla/application_helper/factories/photo_signature_image.rb +158 -0
- data/lib/dvla/application_helper/factories/photo_signature_images.rb +64 -0
- data/lib/dvla/application_helper/fixtures/photo/comparison_image.jpeg +0 -0
- data/lib/dvla/application_helper/fixtures/photo/passport_image.jpg +0 -0
- data/lib/dvla/application_helper/fixtures/photo/photocard_back.jpg +0 -0
- data/lib/dvla/application_helper/fixtures/photo/photocard_front.jpg +0 -0
- data/lib/dvla/application_helper/fixtures/photo/rejected_user_uploaded_image.jpeg +0 -0
- data/lib/dvla/application_helper/fixtures/photo/user_uploaded_image.jpg +0 -0
- data/lib/dvla/application_helper/fixtures/signature/csudl_signature_image.tiff +0 -0
- data/lib/dvla/application_helper/fixtures/signature/passport_image.jpg +0 -0
- data/lib/dvla/application_helper/fixtures/signature/rejected_user_uploaded_image.jpg +0 -0
- data/lib/dvla/application_helper/fixtures/signature/user_uploaded_image.jpg +0 -0
- data/lib/dvla/application_helper/processors/application_status.rb +45 -0
- data/lib/dvla/application_helper/processors/application_task.rb +301 -0
- data/lib/dvla/application_helper/services/application_diary.rb +123 -0
- data/lib/dvla/application_helper/services/application_domain.rb +239 -0
- data/lib/dvla/application_helper/services/application_process_engine.rb +120 -0
- data/lib/dvla/application_helper/services/check_aws_credentials.rb +24 -0
- data/lib/dvla/application_helper/services/driving_licence_channel_api.rb +67 -0
- data/lib/dvla/application_helper/services/image_service.rb +116 -0
- data/lib/dvla/application_helper/services/image_utility.rb +82 -0
- data/lib/dvla/application_helper/services/state_machine_helpers.rb +146 -0
- data/lib/dvla/application_helper/version.rb +5 -0
- data/lib/dvla/application_helper.rb +92 -0
- data/renovate.json +4 -0
- data/scripts/application-login.sh +56 -0
- data/scripts/drone-aws-login.sh +18 -0
- data/scripts/seed_application.rb +268 -0
- data/sonar-project.properties +4 -0
- metadata +343 -0
@@ -0,0 +1,244 @@
|
|
1
|
+
Feature: UODL Image Review States
|
2
|
+
|
3
|
+
As a Test engineer
|
4
|
+
I want to ensure that UODLv1 and UODLv2 image review states update correctly
|
5
|
+
So that they can be used to functionally test each of our components
|
6
|
+
|
7
|
+
# These tests have been seperated from main UODL feature to help speed up the pipeline
|
8
|
+
|
9
|
+
Scenario Outline: AC-16a Create NON processable app with 'with_review_state' and add it into domain and ensure images review update correctly
|
10
|
+
Given I want a specific Photo review state of "<review state>" to be set
|
11
|
+
When I create a "non-processable" "<Transaction Type>" application with "with_review_state" flag
|
12
|
+
Then the application exists within the database
|
13
|
+
And the application contains the seeded Photo review state of "<review state>"
|
14
|
+
Examples:
|
15
|
+
| Transaction Type | review state |
|
16
|
+
| UODL V2 TYR | CLERK_IN_PROGRESS |
|
17
|
+
| UODL V2 COP | CLERK_REJECTED |
|
18
|
+
| UODL V2 TYR | CLERK_REFER_TO_SUPERVISOR_STANDARDS |
|
19
|
+
| UODL V2 COP | CLERK_REFER_TO_SUPERVISOR_COMPARE |
|
20
|
+
| UODL V2 TYR | CLERK_APPROVED |
|
21
|
+
| UODL V2 COP | SUPERVISOR_REJECTED |
|
22
|
+
| UODL V2 TYR | SUPERVISOR_REFER_TO_FRAUD |
|
23
|
+
| UODL V2 COP | SUPERVISOR_APPROVED |
|
24
|
+
| UODL V2 TYR | FRAUD_BEGIN_INVESTIGATION |
|
25
|
+
| UODL V2 COP | FRAUD_APPROVED |
|
26
|
+
| UODL V2 TYR | FRAUD_REJECTED |
|
27
|
+
| UODL V2 COP | FRAUD_REVIEW_REJECTION_WITH_REFUND |
|
28
|
+
| UODL V2 TYR | FRAUD_REVIEW_REJECTION_WITHOUT_REFUND |
|
29
|
+
| UODL V2 COP | FRAUD_REVIEW_APPROVED |
|
30
|
+
| UODL V3 TYR | CLERK_IN_PROGRESS |
|
31
|
+
| UODL V3 COP | CLERK_REJECTED |
|
32
|
+
| UODL V3 TYR | CLERK_REFER_TO_SUPERVISOR_STANDARDS |
|
33
|
+
| UODL V3 COP | CLERK_REFER_TO_SUPERVISOR_COMPARE |
|
34
|
+
| UODL V3 TYR | CLERK_APPROVED |
|
35
|
+
| UODL V3 COP | SUPERVISOR_REJECTED |
|
36
|
+
| UODL V3 TYR | SUPERVISOR_REFER_TO_FRAUD |
|
37
|
+
| UODL V3 COP | SUPERVISOR_APPROVED |
|
38
|
+
| UODL V3 TYR | FRAUD_BEGIN_INVESTIGATION |
|
39
|
+
| UODL V3 COP | FRAUD_APPROVED |
|
40
|
+
| UODL V3 TYR | FRAUD_REJECTED |
|
41
|
+
| UODL V3 COP | FRAUD_REVIEW_REJECTION_WITH_REFUND |
|
42
|
+
| UODL V3 TYR | FRAUD_REVIEW_REJECTION_WITHOUT_REFUND |
|
43
|
+
| UODL V3 COP | FRAUD_REVIEW_APPROVED |
|
44
|
+
|
45
|
+
Scenario Outline: AC-16b Create processable app with 'with_review_state' and add it into domain and ensure images review update correctly
|
46
|
+
Given I want a specific Photo review state of "<review state>" to be set
|
47
|
+
And I create a "processable" "<Transaction Type>" application with "with_review_state,unique_images" flag
|
48
|
+
And I allow the application actions time to be updated
|
49
|
+
When the application exists within the database
|
50
|
+
Then the application contains the seeded Photo review state of "<review state>"
|
51
|
+
And I allow the state machine time to be started
|
52
|
+
And the application process engine fulfilment execution has a status of "RUNNING"
|
53
|
+
And the state machine is waiting on the PreparationHook
|
54
|
+
Examples:
|
55
|
+
| Transaction Type | review state |
|
56
|
+
| UODL V2 TYR | CLERK_IN_PROGRESS |
|
57
|
+
| UODL V2 COP | CLERK_REJECTED |
|
58
|
+
| UODL V2 TYR | CLERK_REFER_TO_SUPERVISOR_STANDARDS |
|
59
|
+
| UODL V2 TYR | CLERK_REFER_TO_SUPERVISOR_COMPARE |
|
60
|
+
| UODL V2 COP | SUPERVISOR_REJECTED |
|
61
|
+
| UODL V2 TYR | SUPERVISOR_REFER_TO_FRAUD |
|
62
|
+
| UODL V2 COP | FRAUD_BEGIN_INVESTIGATION |
|
63
|
+
| UODL V2 TYR | FRAUD_REJECTED |
|
64
|
+
# | UODL V3 COP | CLERK_IN_PROGRESS |
|
65
|
+
# | UODL V3 TYR | CLERK_REJECTED |
|
66
|
+
# | UODL V3 COP | CLERK_REFER_TO_SUPERVISOR_STANDARDS |
|
67
|
+
# | UODL V3 TYR | CLERK_REFER_TO_SUPERVISOR_COMPARE |
|
68
|
+
# | UODL V3 COP | SUPERVISOR_REJECTED |
|
69
|
+
# | UODL V3 TYR | SUPERVISOR_REFER_TO_FRAUD |
|
70
|
+
# | UODL V3 COP | FRAUD_BEGIN_INVESTIGATION |
|
71
|
+
# | UODL V3 TYR | FRAUD_REJECTED |
|
72
|
+
|
73
|
+
|
74
|
+
Scenario Outline: AC-16c Create processable app with 'with_review_state' and add it into domain and ensure images review update correctly and app succeeds
|
75
|
+
Given I want a specific Photo review state of "<review state>" to be set
|
76
|
+
And I create a "processable" "<Transaction Type>" application with "with_review_state,unique_images" flag
|
77
|
+
And I allow the application actions time to be updated
|
78
|
+
When the application exists within the database
|
79
|
+
Then the application contains the seeded Photo review state of "<review state>"
|
80
|
+
And I allow the state machine time to be started
|
81
|
+
And the application process engine fulfilment execution has a status of "SUCCEEDED"
|
82
|
+
Examples:
|
83
|
+
| Transaction Type | review state |
|
84
|
+
| UODL V2 TYR | CLERK_APPROVED |
|
85
|
+
| UODL V2 COP | SUPERVISOR_APPROVED |
|
86
|
+
| UODL V2 TYR | FRAUD_APPROVED |
|
87
|
+
| UODL V2 COP | FRAUD_REVIEW_APPROVED |
|
88
|
+
| UODL V2 TYR | FRAUD_REVIEW_REJECTION_WITH_REFUND |
|
89
|
+
| UODL V2 COP | FRAUD_REVIEW_REJECTION_WITHOUT_REFUND |
|
90
|
+
# | UODL V3 TYR | CLERK_APPROVED |
|
91
|
+
# | UODL V3 COP | SUPERVISOR_APPROVED |
|
92
|
+
# | UODL V3 TYR | FRAUD_APPROVED |
|
93
|
+
# | UODL V3 COP | FRAUD_REVIEW_APPROVED |
|
94
|
+
# | UODL V3 TYR | FRAUD_REVIEW_REJECTION_WITH_REFUND |
|
95
|
+
# | UODL V3 COP | FRAUD_REVIEW_REJECTION_WITHOUT_REFUND |
|
96
|
+
|
97
|
+
|
98
|
+
Scenario Outline: AC-16d Create NON processable EXC app with 'with_photo_review_state' and add it into domain and ensure images review update correctly
|
99
|
+
Given I want a specific Photo review state of "<review state>" to be set
|
100
|
+
When I create a "non-processable" "<Transaction Type>" application with "with_photo_review_state" flag
|
101
|
+
Then the application exists within the database
|
102
|
+
And the application contains the seeded Photo review state of "<review state>"
|
103
|
+
Examples:
|
104
|
+
| review state | Transaction Type |
|
105
|
+
| CLERK_IN_PROGRESS | UODL V2 EXC |
|
106
|
+
| CLERK_REJECTED | UODL V2 EXC |
|
107
|
+
| SUPERVISOR_REFER_TO_FRAUD | UODL V2 EXC |
|
108
|
+
| FRAUD_BEGIN_INVESTIGATION | UODL V2 EXC |
|
109
|
+
| FRAUD_APPROVED | UODL V2 EXC |
|
110
|
+
| FRAUD_REJECTED | UODL V2 EXC |
|
111
|
+
| FRAUD_REVIEW_REJECTION_WITHOUT_REFUND | UODL V2 EXC |
|
112
|
+
| CLERK_IN_PROGRESS | UODL V3 EXC |
|
113
|
+
| CLERK_REJECTED | UODL V3 EXC |
|
114
|
+
| SUPERVISOR_REFER_TO_FRAUD | UODL V3 EXC |
|
115
|
+
| FRAUD_BEGIN_INVESTIGATION | UODL V3 EXC |
|
116
|
+
| FRAUD_APPROVED | UODL V3 EXC |
|
117
|
+
| FRAUD_REJECTED | UODL V3 EXC |
|
118
|
+
| FRAUD_REVIEW_REJECTION_WITHOUT_REFUND | UODL V3 EXC |
|
119
|
+
|
120
|
+
|
121
|
+
@DL-14672
|
122
|
+
Scenario Outline: AC-16e Create processable EXC app with 'with_photo_review_state' and add it into domain and ensure images review update correctly for rejected states
|
123
|
+
Given I want a specific Photo review state of "<review state>" to be set
|
124
|
+
And I want a specific Signature review state of "CLERK_APPROVED" to be set
|
125
|
+
And I create a "processable" "<Transaction Type>" application with "with_photo_review_state,with_signature_review_state,unique_images" flag
|
126
|
+
And I allow the application actions time to be updated
|
127
|
+
When the application exists within the database
|
128
|
+
Then the application contains the seeded Photo review state of "<review state>"
|
129
|
+
And I allow the state machine time to be started
|
130
|
+
And the application process engine fulfilment execution has a status of "RUNNING"
|
131
|
+
And the state machine is waiting on the PreparationHook
|
132
|
+
Examples:
|
133
|
+
| review state | Transaction Type |
|
134
|
+
| CLERK_IN_PROGRESS | UODL V2 EXC |
|
135
|
+
| SUPERVISOR_REJECTED | UODL V2 EXC |
|
136
|
+
| SUPERVISOR_REFER_TO_FRAUD | UODL V2 EXC |
|
137
|
+
| FRAUD_BEGIN_INVESTIGATION | UODL V2 EXC |
|
138
|
+
# | CLERK_IN_PROGRESS | UODL V3 EXC |
|
139
|
+
# | SUPERVISOR_REJECTED | UODL V3 EXC |
|
140
|
+
# | SUPERVISOR_REFER_TO_FRAUD | UODL V3 EXC |
|
141
|
+
# | FRAUD_BEGIN_INVESTIGATION | UODL V3 EXC |
|
142
|
+
|
143
|
+
|
144
|
+
@DL-14672
|
145
|
+
Scenario Outline: AC-16f Create processable EXC app with 'with_photo_review_state' and add it into domain and ensure images review update correctly and app succeeds
|
146
|
+
Given I want a specific Photo review state of "<review state>" to be set
|
147
|
+
And I want a specific Signature review state of "CLERK_APPROVED" to be set
|
148
|
+
And I create a "processable" "<Transaction Type>" application with "with_photo_review_state,with_signature_review_state,unique_images" flag
|
149
|
+
And I allow the application actions time to be updated
|
150
|
+
When the application exists within the database
|
151
|
+
Then the application contains the seeded Photo review state of "<review state>"
|
152
|
+
And I allow the state machine time to be started
|
153
|
+
And the application process engine fulfilment execution has a status of "SUCCEEDED"
|
154
|
+
Examples:
|
155
|
+
| review state | Transaction Type |
|
156
|
+
| SUPERVISOR_APPROVED | UODL V2 EXC |
|
157
|
+
| FRAUD_APPROVED | UODL V2 EXC |
|
158
|
+
| FRAUD_REVIEW_REJECTION_WITH_REFUND | UODL V2 EXC |
|
159
|
+
# | SUPERVISOR_APPROVED | UODL V3 EXC |
|
160
|
+
# | FRAUD_APPROVED | UODL V3 EXC |
|
161
|
+
# | FRAUD_REVIEW_REJECTION_WITH_REFUND | UODL V3 EXC |
|
162
|
+
|
163
|
+
|
164
|
+
Scenario Outline: AC-16g Create NON processable EXC app with 'with_signature_review_state' and add it into domain and ensure images review update correctly
|
165
|
+
Given I want a specific Signature review state of "CLERK_APPROVED" to be set
|
166
|
+
When I create a "non-processable" "<Transaction Type>" application with "with_signature_review_state" flag
|
167
|
+
Then the application exists within the database
|
168
|
+
And the application contains the seeded Signature review state of "CLERK_APPROVED"
|
169
|
+
Examples:
|
170
|
+
| Transaction Type |
|
171
|
+
| UODL V2 EXC |
|
172
|
+
| UODL V3 EXC |
|
173
|
+
|
174
|
+
@DL-14672
|
175
|
+
Scenario Outline: AC-16h Create processable EXC app with 'with_signature_review_state' and add it into domain and ensure images review update correctly for rejected states
|
176
|
+
Given I want a specific Signature review state of "CLERK_REJECTED" to be set
|
177
|
+
And I want a specific Photo review state of "CLERK_APPROVED" to be set
|
178
|
+
And I create a "processable" "<Transaction Type>" application with "with_signature_review_state,with_photo_review_state,unique_images" flag
|
179
|
+
And I allow the application actions time to be updated
|
180
|
+
When the application exists within the database
|
181
|
+
Then the application contains the seeded Signature review state of "CLERK_REJECTED"
|
182
|
+
And I allow the state machine time to be started
|
183
|
+
And the application process engine fulfilment execution has a status of "RUNNING"
|
184
|
+
And the state machine is waiting on the PreparationHook
|
185
|
+
Examples:
|
186
|
+
| Transaction Type |
|
187
|
+
| UODL V2 EXC |
|
188
|
+
# | UODL V3 EXC |
|
189
|
+
|
190
|
+
@DL-14672
|
191
|
+
Scenario Outline: AC-16i Create processable EXC app with 'with_signature_review_state' and add it into domain and ensure images review update correctly and app succeeds
|
192
|
+
Given I want a specific Signature review state of "CLERK_APPROVED" to be set
|
193
|
+
And I want a specific Photo review state of "CLERK_APPROVED" to be set
|
194
|
+
And I create a "processable" "<Transaction Type>" application with "with_signature_review_state,with_photo_review_state,unique_images" flag
|
195
|
+
And I allow the application actions time to be updated
|
196
|
+
When the application exists within the database
|
197
|
+
Then the application contains the seeded Signature review state of "CLERK_APPROVED"
|
198
|
+
And I allow the state machine time to be started
|
199
|
+
And the application process engine fulfilment execution has a status of "SUCCEEDED"
|
200
|
+
Examples:
|
201
|
+
| Transaction Type |
|
202
|
+
| UODL V2 EXC |
|
203
|
+
# | UODL V3 EXC |
|
204
|
+
|
205
|
+
Scenario Outline: AC-16j Create NON processable Paper REP and DUP app with review state for photo and signature and add it into domain and ensure images review update correctly
|
206
|
+
Given I want a specific Photo review state of "<photo_state>" to be set
|
207
|
+
And I want a specific Signature review state of "<signature_state>" to be set
|
208
|
+
When I create a "non-processable" "<Transaction Type>" application with "eligible_paper_to_plastic,<image_flags>" flag
|
209
|
+
Then the application exists within the database
|
210
|
+
And the application contains the seeded Photo review state of "<photo_state>"
|
211
|
+
And the application contains the seeded Signature review state of "<signature_state>"
|
212
|
+
Examples:
|
213
|
+
| Transaction Type | image_flags | photo_state | signature_state |
|
214
|
+
| UODL V2 REP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REFER_TO_FRAUD | CLERK_APPROVED |
|
215
|
+
| UODL V2 REP | with_photo_review_state,with_signature_review_state | CLERK_APPROVED | CLERK_REJECTED |
|
216
|
+
| UODL V2 DUP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REFER_TO_FRAUD | CLERK_APPROVED |
|
217
|
+
| UODL V2 DUP | with_photo_review_state,with_signature_review_state | CLERK_APPROVED | CLERK_REJECTED |
|
218
|
+
| UODL V3 REP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REFER_TO_FRAUD | CLERK_APPROVED |
|
219
|
+
| UODL V3 REP | with_photo_review_state,with_signature_review_state | CLERK_APPROVED | CLERK_REJECTED |
|
220
|
+
| UODL V3 DUP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REFER_TO_FRAUD | CLERK_APPROVED |
|
221
|
+
| UODL V3 DUP | with_photo_review_state,with_signature_review_state | CLERK_APPROVED | CLERK_REJECTED |
|
222
|
+
|
223
|
+
@wip # TODO to re-enable in DL-15128
|
224
|
+
Scenario Outline: AC-16k Create processable Paper REP and DUP app with review state for photo and signature and add it into domain and ensure images review update correctly for rejected states
|
225
|
+
Given I want a specific Photo review state of "<photo_state>" to be set
|
226
|
+
And I want a specific Signature review state of "<signature_state>" to be set
|
227
|
+
And I create a "processable" "<Transaction Type>" application with "eligible_paper_to_plastic,unique_images,<image_flags>" flag
|
228
|
+
And I allow the application actions time to be updated
|
229
|
+
When the application exists within the database
|
230
|
+
Then the application contains the seeded Photo review state of "<photo_state>"
|
231
|
+
Then the application contains the seeded Signature review state of "<signature_state>"
|
232
|
+
And I allow the state machine time to be started
|
233
|
+
And the application process engine fulfilment execution has a status of "<execution_status>"
|
234
|
+
Examples:
|
235
|
+
| Transaction Type | image_flags | photo_state | signature_state | execution_status |
|
236
|
+
| UODL V2 REP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REJECTED | CLERK_APPROVED | RUNNING |
|
237
|
+
| UODL V2 REP | with_photo_review_state,with_signature_review_state | SUPERVISOR_APPROVED | CLERK_APPROVED | SUCCEEDED |
|
238
|
+
| UODL V2 DUP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REJECTED | CLERK_APPROVED | RUNNING |
|
239
|
+
| UODL V2 DUP | with_photo_review_state,with_signature_review_state | SUPERVISOR_APPROVED | CLERK_APPROVED | SUCCEEDED |
|
240
|
+
# | UODL V3 REP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REJECTED | CLERK_APPROVED | RUNNING |
|
241
|
+
# | UODL V3 REP | with_photo_review_state,with_signature_review_state | SUPERVISOR_APPROVED | CLERK_APPROVED | SUCCEEDED |
|
242
|
+
# | UODL V3 DUP | with_photo_review_state,with_signature_review_state | SUPERVISOR_REJECTED | CLERK_APPROVED | RUNNING |
|
243
|
+
# | UODL V3 DUP | with_photo_review_state,with_signature_review_state | SUPERVISOR_APPROVED | CLERK_APPROVED | SUCCEEDED |
|
244
|
+
|