-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PHEE-669] Tc for Account Status and Account Name APIs (#280)
- Loading branch information
Showing
6 changed files
with
115 additions
and
32 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
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
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
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
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,37 @@ | ||
Feature: Account Status and Account Name Check api | ||
|
||
@amsIntegration | ||
Scenario: Savings account Status Test | ||
Given I have Fineract-Platform-TenantId as "payerfsp1" | ||
When I create a set of debit and credit party | ||
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 debit interop identifier endpoint with MSISDN | ||
Given I have tenant as "payerfsp" | ||
Then I call the account status api | ||
And I can assert "submitted" status in response | ||
Then I approve the deposit with command "approve" | ||
Given I have tenant as "payerfsp" | ||
Then I call the account status api | ||
And I can assert "approved" status in response | ||
When I activate the account with command "activate" | ||
Then I call the deposit account endpoint with command "deposit" for amount 11 | ||
Given I have tenant as "payerfsp" | ||
Then I call the account status api | ||
And I can assert "active" status in response | ||
|
||
@amsIntegration | ||
Scenario: Savings account Name Test | ||
Given I have Fineract-Platform-TenantId as "payerfsp1" | ||
When I create a set of debit and credit party | ||
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 debit interop identifier endpoint with MSISDN | ||
Then I approve the deposit with command "approve" | ||
When I activate the account with command "activate" | ||
Then I call the deposit account endpoint with command "deposit" for amount 100 | ||
Given I have tenant as "payerfsp" | ||
Then I call the account name api | ||
Then I can assert name in response |
6 changes: 3 additions & 3 deletions
6
src/test/java/resources/batch_demo_csv/batchTransactionGsma.csv
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
id,request_id,payment_mode,payer_identifier_type,payer_identifier,payee_identifier_type,payee_identifier,amount,currency,note | ||
0,f41f4f3a-479f-44d3-b254-1f6574b11e09,gsma,msisdn,2224,msisdn,2032,10,USD,Test Payee Payment | ||
1,caf6c982-7182-4d4d-9931-75da625cec66,gsma,msisdn,2225,msisdn,2033,5,USD,Test Payee Payment | ||
2,7e79d1b1-d000-43f4-a13f-451dd4c51457,gsma,msisdn,2226,msisdn,2034,1,USD,Test Payee Payment | ||
0,1fe8af66-9a34-4b92-bbd5-1a116b635bb5,gsma,msisdn,4004,msisdn,3815,10,USD,Test Payee Payment | ||
1,dbbe52aa-20a0-4eb9-80a0-ad6df8068e40,gsma,msisdn,4005,msisdn,3816,5,USD,Test Payee Payment | ||
2,021955bc-8a96-45d3-bec0-69e365d5369c,gsma,msisdn,4006,msisdn,3817,1,USD,Test Payee Payment |