-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathmockFlowTest.feature
55 lines (50 loc) · 2.65 KB
/
mockFlowTest.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@gov
Feature: Mock Flow Test
Scenario: Test for minimal mock fund transfer account lookup flow
Given I have Fineract-Platform-TenantId as "payeefsp1"
When I call the create payer client endpoint
Then I call the create savings product endpoint
When I call the create savings account endpoint
Then I call the interop identifier endpoint
Then I approve the deposit with command "approve"
When I activate the account with command "activate"
Then I create an IdentityMapperDTO for Register Beneficiary with identifier from previous step
When I call the register beneficiary API with expected status of 202 and callback stub "/registerBeneficiaryApiTest"
Then I have tenant as "paymentbb1"
And I create a new clientCorrelationId
Given I can mock TransactionChannelRequestDTO for account lookup
And I create a new clientCorrelationId
When I call the outbound transfer endpoint with expected status 200
Then I should get non empty response
Given I can mock TransactionChannelRequestDTO
And I have tenant as "paymentbb1"
When I call the get txn API with expected status of 200 and txnId with PayeeDFSPId check
Then I should get non empty response
And I should have startedAt and completedAt in response
And I should have PayeeFspId as "pluto"
Scenario: MFT-001 Test for minimal mock fund transfer flow
Given I have tenant as "paymentBB2"
And I create a new clientCorrelationId
Given I can mock TransactionChannelRequestDTO
And I create a new clientCorrelationId
When I call the outbound transfer endpoint with expected status 200
Then I should get non empty response
Given I can mock TransactionChannelRequestDTO
And I have tenant as "paymentBB2"
When I call the get txn API with expected status of 200 and txnId
Then I should get non empty response
And I should have startedAt and completedAt in response
And I should have PayerFspId as not null
Scenario: MFT-002 Test for minimal mock fund transfer flow with batch transactions
Given I have tenant as "paymentBB2"
And I have the demo csv file "ph-ee-bulk-demo-7.csv"
And I create a new clientCorrelationId
And I have private key
And I generate signature
When I call the batch transactions endpoint with expected status of 202
And I am able to parse batch transactions response
And I fetch batch ID from batch transaction API's response
When I call the batch summary API with expected status of 200 with total 3 txns
Then I am able to parse batch summary response
And Status of transaction is "COMPLETED"
And I should have matching total txn count and successful txn count in response