test_name:Test the creation of accounts through the cic_user_ussd_server entrypoint.
marks:
- usefixtures:
- gift_value
- server_url
- token_symbol
- generate_session_id
- first_account_phone_number
- second_account_phone_number
- first_account_pin_number
- second_account_pin_number
- first_account_family_name
- second_account_family_name
- first_account_given_name
- second_account_given_name
- first_account_location
- second_account_location
- first_account_product
- second_account_product
- first_metadata_entry_session_id
- second_metadata_entry_session_id
- first
stages:
- name:Initiate account creation process [first account].
request:
url:"{server_url}"
data:
serviceCode:"*483*46#"
sessionId:"{generate_session_id}"
phoneNumber:"{first_account_phone_number}"
text:""
headers:
content-type:"application/x-www-form-urlencoded"
method:POST
response:
status_code:
- 200
headers:
Content-Length:'175'
Content-Type:"text/plain"
verify_response_with:
function:ext.validator:validate_response
extra_kwargs:
expected_response:"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"
- name:Initiate account creation process [second account].
request:
url:"{server_url}"
data:
serviceCode:"*483*46#"
sessionId:"{generate_session_id}"
phoneNumber:"{second_account_phone_number}"
text:""
headers:
content-type:"application/x-www-form-urlencoded"
method:POST
response:
status_code:
- 200
headers:
Content-Length:'175'
Content-Type:"text/plain"
verify_response_with:
function:ext.validator:validate_response
extra_kwargs:
expected_response:"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"