-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ANCHOR-487] Skip failing tests that needs anchor config (#124)
* skip the failing tests that needs anchor config * add config example to readme
- Loading branch information
Showing
3 changed files
with
110 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ Options: | |
[array] [required] | ||
-v, --verbose Display the each request and response used in each failed | ||
test. [boolean] [default: false] | ||
--sep-config Path to a JSON file containing SEP-specific configuration | ||
options. See below for config examples. [string] | ||
``` | ||
|
||
``` | ||
|
@@ -59,3 +61,90 @@ const config: Config = { | |
} | ||
})() | ||
``` | ||
|
||
### SEP config example | ||
|
||
```json | ||
{ | ||
"12": { | ||
"customers": { | ||
"toBeCreated": { | ||
"first_name": "John", | ||
"last_name": "Doe", | ||
"email_address": "[email protected]", | ||
"bank_number": "123", | ||
"bank_account_number": "456", | ||
"bank_account_type": "checking" | ||
}, | ||
"sendingClient": { | ||
"first_name": "Allie", | ||
"last_name": "Grater", | ||
"email_address": "[email protected]" | ||
}, | ||
"receivingClient": { | ||
"first_name": "Lee", | ||
"last_name": "Sun", | ||
"email_address": "[email protected]", | ||
"clabe_number": "1234", | ||
"bank_number": "abcd", | ||
"bank_account_number": "1234", | ||
"bank_account_type": "checking" | ||
}, | ||
"toBeDeleted": { | ||
"first_name": "Jane", | ||
"last_name": "Doe", | ||
"email_address": "[email protected]" | ||
} | ||
}, | ||
"createCustomer": "toBeCreated", | ||
"deleteCustomer": "toBeDeleted", | ||
"sameAccountDifferentMemos": ["sendingClient", "receivingClient"] | ||
}, | ||
/* | ||
* SEP-24 config is optional for enabling partial tests in transaction. | ||
* Please provide valid input if you plan to do so. | ||
*/ | ||
"24": { | ||
"account": { | ||
"publicKey": "<your_public_key>", | ||
"secretKey": "<your_secret_key>" | ||
}, | ||
"depositPendingTransaction": { | ||
"id": "<id>", | ||
"status": "any pending_ status" | ||
}, | ||
"depositCompletedTransaction": { | ||
"id": "<id>", | ||
"status": "completed", | ||
"stellar_transaction_id": "<valid_completed_deposit_transaction_id>" | ||
}, | ||
"withdrawPendingUserTransferStartTransaction": { | ||
"id": "<id>", | ||
"status": "pending_user_transfer_start", | ||
"amount_in": "222.00", | ||
"amount_in_asset": "", | ||
"withdraw_anchor_account": "", | ||
"withdraw_memo": "<id>", | ||
"withdraw_memo_type": "text" | ||
}, | ||
"withdrawCompletedTransaction": { | ||
"id": "<id>", | ||
"status": "completed", | ||
"stellar_transaction_id": "<valid_completed_withdraw_transaction_id>" | ||
} | ||
}, | ||
"31": { | ||
"sendingAnchorClientSecret": "<secret>", | ||
"sendingClientName": "sendingClient", | ||
"receivingClientName": "receivingClient", | ||
"transactionFields": { | ||
"receiver_account_number": "123", | ||
"receiver_routing_number": "456", | ||
"type": "SWIFT" | ||
} | ||
}, | ||
"38": { | ||
"contexts": ["sep31"] | ||
} | ||
} | ||
``` |
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