Adds first rudimentary test for account creation.
This commit is contained in:
parent
071cbcc6fb
commit
71e864695b
15
apps/cic-ussd/expect/account_tests.yml
Normal file
15
apps/cic-ussd/expect/account_tests.yml
Normal file
@ -0,0 +1,15 @@
|
||||
- config:
|
||||
- testset: "Test account creation sequence"
|
||||
|
||||
- test:
|
||||
- group: "Accounts"
|
||||
- name: "First dial in"
|
||||
- url: "/"
|
||||
- method: "POST"
|
||||
- body: '{"serviceCode": "*483*46#", "phoneNumber": "+2547876545", "sessionId": "AT_Idjhfuvelw64ffbweiy73nd5vnek000", "text": ""}'
|
||||
- headers: {'Content-Type': 'application/json'}
|
||||
- expected_status: [200]
|
||||
- validators:
|
||||
- compare: {"header": "content-type", "comparator": "str_eq", "expected":"text/plain"}
|
||||
- compare: {"header": "content-length", "comparator": "str_eq", "expected":"175"}
|
||||
- compare: {"raw_body":"", "comparator":"contains", expected: "END Your account is being created. You will receive an SMS when your account is ready.\nAkaunti yako ya Sarafu inatayarishwa. Utapokea ujumbe wa SMS akaunti yako ikiwa tayari.\n" }
|
Loading…
Reference in New Issue
Block a user