Clean up refactors.
This commit is contained in:
parent
d82d9979a5
commit
0017247363
84
apps/cic-ussd/tests/fixtures/integration.py
vendored
84
apps/cic-ussd/tests/fixtures/integration.py
vendored
@ -115,12 +115,12 @@ def second_account_verify_balance_session_id() -> str:
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_account_management_session_id() -> str:
|
||||
def first_profile_management_session_id() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_account_management_session_id() -> str:
|
||||
def second_profile_management_session_id() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@ -164,6 +164,56 @@ def second_account_change_product() -> str:
|
||||
return fake.color_name()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_profile_management_session_id_1() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_profile_management_session_id_1() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_profile_management_session_id_2() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_profile_management_session_id_2() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_profile_management_session_id_3() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_profile_management_session_id_3() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_profile_management_session_id_4() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_profile_management_session_id_4() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_account_management_session_id() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_account_management_session_id() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_account_management_session_id_1() -> str:
|
||||
return session_id()
|
||||
@ -174,36 +224,6 @@ def second_account_management_session_id_1() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_account_management_session_id_2() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_account_management_session_id_2() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_account_management_session_id_3() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_account_management_session_id_3() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def first_account_management_session_id_4() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def second_account_management_session_id_4() -> str:
|
||||
return session_id()
|
||||
|
||||
|
||||
@pytest.fixture(scope='session')
|
||||
def gift_value(load_config):
|
||||
return load_config.get('TEST_GIFT_VALUE')
|
||||
|
@ -1,4 +1,4 @@
|
||||
test_name: Create an account through the cic_user_ussd_server entrypoint.
|
||||
test_name: Test the creation of accounts through the cic_user_ussd_server entrypoint.
|
||||
marks:
|
||||
- usefixtures:
|
||||
- gift_value
|
@ -1,4 +1,4 @@
|
||||
test_name: Test that account management functionality is intact.
|
||||
test_name: Test editing account profile data.
|
||||
marks:
|
||||
- usefixtures:
|
||||
- server_url
|
||||
@ -15,8 +15,8 @@ marks:
|
||||
- second_account_location
|
||||
- first_account_product
|
||||
- second_account_product
|
||||
- first_account_management_session_id
|
||||
- second_account_management_session_id
|
||||
- first_profile_management_session_id
|
||||
- second_profile_management_session_id
|
||||
- first_account_change_family_name
|
||||
- second_account_change_family_name
|
||||
- first_account_change_given_name
|
||||
@ -25,23 +25,23 @@ marks:
|
||||
- second_account_change_location
|
||||
- first_account_change_product
|
||||
- second_account_change_product
|
||||
- first_account_management_session_id_1
|
||||
- second_account_management_session_id_1
|
||||
- first_account_management_session_id_2
|
||||
- second_account_management_session_id_2
|
||||
- first_account_management_session_id_3
|
||||
- second_account_management_session_id_3
|
||||
- first_account_management_session_id_4
|
||||
- second_account_management_session_id_4
|
||||
- last
|
||||
- first_profile_management_session_id_1
|
||||
- second_profile_management_session_id_1
|
||||
- first_profile_management_session_id_2
|
||||
- second_profile_management_session_id_2
|
||||
- first_profile_management_session_id_3
|
||||
- second_profile_management_session_id_3
|
||||
- first_profile_management_session_id_4
|
||||
- second_profile_management_session_id_4
|
||||
- third
|
||||
|
||||
stages:
|
||||
- name: Account management start menu [first account]
|
||||
- name: Profile management start menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -58,12 +58,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||
|
||||
- name: Account management start menu [second account]
|
||||
- name: Profile management start menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -85,7 +85,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -102,12 +102,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My account\n1. My profile\n2. Change language\n3. Check balance\n4. Check statement\n5. Change PIN\n0. Back"
|
||||
|
||||
- name: Account management [second account]
|
||||
- name: Account management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -124,12 +124,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
|
||||
|
||||
- name: Profile management [first account]
|
||||
- name: Profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -146,12 +146,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Profile management [second account]
|
||||
- name: Profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -173,7 +173,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5"
|
||||
headers:
|
||||
@ -195,7 +195,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5"
|
||||
headers:
|
||||
@ -217,7 +217,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{first_account_pin_number}"
|
||||
headers:
|
||||
@ -238,7 +238,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}"
|
||||
headers:
|
||||
@ -254,12 +254,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Wasifu wako una maelezo yafuatayo:\n Jina: {second_account_given_name} {second_account_family_name}\n Jinsia: Mwanamke\n Eneo: {second_account_location}\n Unauza: {second_account_product}\n0. Nyuma"
|
||||
|
||||
- name: Second profile management [first account]
|
||||
- name: Second profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{first_account_pin_number}*0"
|
||||
headers:
|
||||
@ -276,12 +276,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Second profile management [second account]
|
||||
- name: Second profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0"
|
||||
headers:
|
||||
@ -303,7 +303,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1"
|
||||
headers:
|
||||
@ -325,7 +325,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1"
|
||||
headers:
|
||||
@ -347,7 +347,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1*{first_account_change_given_name}"
|
||||
headers:
|
||||
@ -369,7 +369,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1*{second_account_change_given_name}"
|
||||
headers:
|
||||
@ -391,7 +391,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1*{first_account_change_given_name}*{first_account_change_family_name}"
|
||||
headers:
|
||||
@ -413,7 +413,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1*{second_account_change_given_name}*{second_account_change_family_name}"
|
||||
headers:
|
||||
@ -435,7 +435,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id}"
|
||||
sessionId: "{first_profile_management_session_id}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1*{first_account_change_given_name}*{first_account_change_family_name}*{first_account_pin_number}"
|
||||
headers:
|
||||
@ -457,7 +457,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id}"
|
||||
sessionId: "{second_profile_management_session_id}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*1*{second_account_change_given_name}*{second_account_change_family_name}*{second_account_pin_number}"
|
||||
headers:
|
||||
@ -474,12 +474,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "END Asante kwa kutumia huduma."
|
||||
|
||||
- name: Second start menu [first account]
|
||||
- name: Second profile management start menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_1}"
|
||||
sessionId: "{first_profile_management_session_id_1}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -496,12 +496,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||
|
||||
- name: Second start menu [second account]
|
||||
- name: Second profile management start menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_1}"
|
||||
sessionId: "{second_profile_management_session_id_1}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -523,7 +523,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_1}"
|
||||
sessionId: "{first_profile_management_session_id_1}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -545,7 +545,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_1}"
|
||||
sessionId: "{second_profile_management_session_id_1}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -562,12 +562,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
|
||||
|
||||
- name: Second profile management [first account]
|
||||
- name: Second profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_1}"
|
||||
sessionId: "{first_profile_management_session_id_1}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -584,12 +584,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Second profile management [second account]
|
||||
- name: Second profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_1}"
|
||||
sessionId: "{second_profile_management_session_id_1}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -611,7 +611,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_1}"
|
||||
sessionId: "{first_profile_management_session_id_1}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*2"
|
||||
headers:
|
||||
@ -633,7 +633,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_1}"
|
||||
sessionId: "{second_profile_management_session_id_1}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*2"
|
||||
headers:
|
||||
@ -655,7 +655,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_1}"
|
||||
sessionId: "{first_profile_management_session_id_1}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*2*2"
|
||||
headers:
|
||||
@ -677,7 +677,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_1}"
|
||||
sessionId: "{second_profile_management_session_id_1}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*2*1"
|
||||
headers:
|
||||
@ -699,7 +699,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_1}"
|
||||
sessionId: "{first_profile_management_session_id_1}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*2*2*{first_account_pin_number}"
|
||||
headers:
|
||||
@ -721,7 +721,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_1}"
|
||||
sessionId: "{second_profile_management_session_id_1}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*2*1*{second_account_pin_number}"
|
||||
headers:
|
||||
@ -738,12 +738,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "END Asante kwa kutumia huduma."
|
||||
|
||||
- name: Third start menu [first account]
|
||||
- name: Third profile management start menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_2}"
|
||||
sessionId: "{first_profile_management_session_id_2}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -760,12 +760,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||
|
||||
- name: Third start menu [second account]
|
||||
- name: Third profile management start menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_2}"
|
||||
sessionId: "{second_profile_management_session_id_2}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -787,7 +787,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_2}"
|
||||
sessionId: "{first_profile_management_session_id_2}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -809,7 +809,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_2}"
|
||||
sessionId: "{second_profile_management_session_id_2}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -826,12 +826,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
|
||||
|
||||
- name: Third profile management [first account]
|
||||
- name: Third profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_2}"
|
||||
sessionId: "{first_profile_management_session_id_2}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -848,12 +848,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Third profile management [second account]
|
||||
- name: Third profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_2}"
|
||||
sessionId: "{second_profile_management_session_id_2}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -875,7 +875,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_2}"
|
||||
sessionId: "{first_profile_management_session_id_2}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*3"
|
||||
headers:
|
||||
@ -897,7 +897,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_2}"
|
||||
sessionId: "{second_profile_management_session_id_2}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*3"
|
||||
headers:
|
||||
@ -919,7 +919,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_2}"
|
||||
sessionId: "{first_profile_management_session_id_2}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*3*{first_account_change_location}"
|
||||
headers:
|
||||
@ -941,7 +941,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_2}"
|
||||
sessionId: "{second_profile_management_session_id_2}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*3*{second_account_change_location}"
|
||||
headers:
|
||||
@ -963,7 +963,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_2}"
|
||||
sessionId: "{first_profile_management_session_id_2}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*3*{first_account_change_location}*{first_account_pin_number}"
|
||||
headers:
|
||||
@ -985,7 +985,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_2}"
|
||||
sessionId: "{second_profile_management_session_id_2}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*3*{second_account_change_location}*{second_account_pin_number}"
|
||||
headers:
|
||||
@ -1002,12 +1002,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "END Asante kwa kutumia huduma."
|
||||
|
||||
- name: Fourth start menu [first account]
|
||||
- name: Fourth profile management start menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_3}"
|
||||
sessionId: "{first_profile_management_session_id_3}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -1024,12 +1024,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||
|
||||
- name: Fourth start menu [second account]
|
||||
- name: Fourth profile management start menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_3}"
|
||||
sessionId: "{second_profile_management_session_id_3}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -1051,7 +1051,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_3}"
|
||||
sessionId: "{first_profile_management_session_id_3}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -1068,12 +1068,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My account\n1. My profile\n2. Change language\n3. Check balance\n4. Check statement\n5. Change PIN\n0. Back"
|
||||
|
||||
- name: Fourth account management [second account]
|
||||
- name: Fourth account management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_3}"
|
||||
sessionId: "{second_profile_management_session_id_3}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -1090,12 +1090,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
|
||||
|
||||
- name: Fourth profile management [first account]
|
||||
- name: Fourth profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_3}"
|
||||
sessionId: "{first_profile_management_session_id_3}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -1112,12 +1112,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Fourth profile management [second account]
|
||||
- name: Fourth profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_3}"
|
||||
sessionId: "{second_profile_management_session_id_3}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -1139,7 +1139,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_3}"
|
||||
sessionId: "{first_profile_management_session_id_3}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*4"
|
||||
headers:
|
||||
@ -1161,7 +1161,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_3}"
|
||||
sessionId: "{second_profile_management_session_id_3}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*4"
|
||||
headers:
|
||||
@ -1183,7 +1183,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_3}"
|
||||
sessionId: "{first_profile_management_session_id_3}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*4*{first_account_change_product}"
|
||||
headers:
|
||||
@ -1205,7 +1205,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_3}"
|
||||
sessionId: "{second_profile_management_session_id_3}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*4*{second_account_change_product}"
|
||||
headers:
|
||||
@ -1227,7 +1227,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_3}"
|
||||
sessionId: "{first_profile_management_session_id_3}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*4*{first_account_change_product}*{first_account_pin_number}"
|
||||
headers:
|
||||
@ -1249,7 +1249,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_3}"
|
||||
sessionId: "{second_profile_management_session_id_3}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*4*{second_account_change_product}*{second_account_pin_number}"
|
||||
headers:
|
||||
@ -1266,12 +1266,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "END Asante kwa kutumia huduma."
|
||||
|
||||
- name: Fifth start menu [first account]
|
||||
- name: Fifth profile managment start menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_4}"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -1288,12 +1288,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||
|
||||
- name: Fifth start menu [second account]
|
||||
- name: Fifth profile managment start menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_4}"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: ""
|
||||
headers:
|
||||
@ -1315,7 +1315,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_4}"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -1332,12 +1332,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My account\n1. My profile\n2. Change language\n3. Check balance\n4. Check statement\n5. Change PIN\n0. Back"
|
||||
|
||||
- name: Fifth account management [second account]
|
||||
- name: Fifth account management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_4}"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2"
|
||||
headers:
|
||||
@ -1354,12 +1354,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON Akaunti yangu\n1. Wasifu wangu\n2. Chagua lugha utakayotumia\n3. Angalia salio\n4. Angalia taarifa ya matumizi\n5. Badilisha nambari ya siri\n0. Nyuma"
|
||||
|
||||
- name: Fifth profile management [first account]
|
||||
- name: Fifth profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_4}"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -1376,12 +1376,12 @@ stages:
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Fifth profile management [second account]
|
||||
- name: Fifth profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_4}"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1"
|
||||
headers:
|
||||
@ -1403,7 +1403,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_4}"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5"
|
||||
headers:
|
||||
@ -1425,7 +1425,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_4}"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5"
|
||||
headers:
|
||||
@ -1447,7 +1447,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_account_management_session_id_4}"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{first_account_pin_number}"
|
||||
headers:
|
||||
@ -1468,7 +1468,7 @@ stages:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_account_management_session_id_4}"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}"
|
||||
headers:
|
||||
@ -1482,4 +1482,92 @@ stages:
|
||||
verify_response_with:
|
||||
function: ext.validator:validate_response
|
||||
extra_kwargs:
|
||||
expected_response: "CON Wasifu wako una maelezo yafuatayo:\n Jina: {second_account_change_given_name} {second_account_change_family_name}\n Jinsia: Mwanaume\n Eneo: {second_account_change_location}\n Unauza: {second_account_change_product}\n0. Nyuma"
|
||||
expected_response: "CON Wasifu wako una maelezo yafuatayo:\n Jina: {second_account_change_given_name} {second_account_change_family_name}\n Jinsia: Mwanaume\n Eneo: {second_account_change_location}\n Unauza: {second_account_change_product}\n0. Nyuma"
|
||||
|
||||
- name: Return to profile management menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{first_account_pin_number}*0"
|
||||
headers:
|
||||
content-type: "application/x-www-form-urlencoded"
|
||||
method: POST
|
||||
response:
|
||||
status_code:
|
||||
- 200
|
||||
headers:
|
||||
Content-Length: '103'
|
||||
Content-Type: "text/plain"
|
||||
verify_response_with:
|
||||
function: ext.validator:validate_response
|
||||
extra_kwargs:
|
||||
expected_response: "CON My profile\n1. Edit name\n2. Edit gender\n3. Edit location\n4. Edit products\n5. View my profile\n0. Back"
|
||||
|
||||
- name: Return to profile management menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0"
|
||||
headers:
|
||||
content-type: "application/x-www-form-urlencoded"
|
||||
method: POST
|
||||
response:
|
||||
status_code:
|
||||
- 200
|
||||
headers:
|
||||
Content-Length: '104'
|
||||
Content-Type: "text/plain"
|
||||
verify_response_with:
|
||||
function: ext.validator:validate_response
|
||||
extra_kwargs:
|
||||
expected_response: "CON Wasifu wangu\n1. Weka jina\n2. Weka jinsia\n3. Weka eneo\n4. Weka bidhaa\n5. Angalia wasifu wako\n0. Nyuma"
|
||||
|
||||
- name: Resume start menu [first account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{first_profile_management_session_id_4}"
|
||||
phoneNumber: "{first_account_phone_number}"
|
||||
text: "2*1*5*{first_account_pin_number}*0*0"
|
||||
headers:
|
||||
content-type: "application/x-www-form-urlencoded"
|
||||
method: POST
|
||||
response:
|
||||
status_code:
|
||||
- 200
|
||||
headers:
|
||||
Content-Length: '51'
|
||||
Content-Type: "text/plain"
|
||||
verify_response_with:
|
||||
function: ext.validator:validate_response
|
||||
extra_kwargs:
|
||||
expected_response: "CON Balance 58.00 {token_symbol}\n1. Send\n2. My Account\n3. Help"
|
||||
|
||||
- name: Resume start menu [second account]
|
||||
request:
|
||||
url: "{server_url}"
|
||||
data:
|
||||
serviceCode: "*483*46#"
|
||||
sessionId: "{second_profile_management_session_id_4}"
|
||||
phoneNumber: "{second_account_phone_number}"
|
||||
text: "2*1*5*{second_account_pin_number}*0*0"
|
||||
headers:
|
||||
content-type: "application/x-www-form-urlencoded"
|
||||
method: POST
|
||||
response:
|
||||
status_code:
|
||||
- 200
|
||||
headers:
|
||||
Content-Length: '56'
|
||||
Content-Type: "text/plain"
|
||||
verify_response_with:
|
||||
function: ext.validator:validate_response
|
||||
extra_kwargs:
|
||||
expected_response: "CON Salio 42.00 {token_symbol}\n1. Tuma\n2. Akaunti yangu\n3. Usaidizi"
|
@ -143,7 +143,7 @@ sw:
|
||||
salio: %{operational_balance} %{token_symbol}
|
||||
ushuru: %{tax} %{token_symbol}
|
||||
tuzo: %{bonus} %{token_symbol}
|
||||
0. Back
|
||||
0. Nyuma
|
||||
first_transaction_set: |-
|
||||
CON %{first_transaction_set}
|
||||
1. Mbele
|
||||
|
Loading…
Reference in New Issue
Block a user