The following tests are undertaken after the client application has logged on with access to view/modify the data mentioned in the tests. CAST API access must be enabled.
Clone User Request
1. Send operation_request with clone_user request. Provide valid source_user_id, new_user_username and new_user_contact_information with email and address.
2. Receive operation_result with operation_status = 1 (SUCCESS) and clone_user_result with new_user_id.
3. Send information_request with user_info_request with cloned user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and correct user.
Create User Request
1. Send operation_request with create_user request with valid user. Provide user_name, customer_id, subscriber_type = 1 [NON_PRO] and domain = 2 [CQG_TRADE_ROUTING].
2. Receive operation_result with operation_status = 1 (SUCCESS) and create_user_result with id of just created user.
3. Send information_request with user_info_request with just created user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and correct user.
Update User Request
1. Send operation_request with update_user request and provide user to update: id, subscriber_type = 1 [PRO].
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with user_info_request with valid user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and correct user.
Remove User Request
1. Send operation_request with remove_user request and provide user id to remove.
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with user_info_request with valid user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and user with removed = true.
Modify User Entitlement Service – add services
1. Send operation_request with modify_user_entitlement_service request, provide valid user_id and entitlement_service_to_set. Use Entitlement Service List Request to get available services to set.
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with user_entitlement_service_request with valid user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and list of updated user_entitlement_service.
Modify User Entitlement Service – remove services
1. Send operation_request with modify_user_entitlement_service request, provide valid user_id and entitlement_service_id_to_remove.
2. Receive OperationResult with operation_status = 1 (SUCCESS).
3. Send information_request with user_entitlement_service_request with valid user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and list of updated user_entitlement_service.
Restore User
1. Send operation_request with restore_user request with valid user id to restore.
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with user_info_request with valid user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and user with removed = false.
Update Login Exchange MemberId List – add and remove
1. Send information_request with lookup_property_list_request with property_type= 203 [EXCHANGE].
2. Receive information_result with operation_status = 1 (SUCCESS) and lookup_property_list_result with lookup_property list.
3. Send operation_request with update_login_exchange_member_id_list with valid login_id and member_ids_to_set = [ {login_id, exchange_key, member_id} ]. Use lookup_property_list_result on 2 step for exchange_key.
4. Receive operation_result with operation_status = 1 (SUCCESS).
5. Send information_request with login_exchange_member_id_list_request with login_id.
6. Receive information_result with operation_status = 1 (SUCCESS) and login_exchange_member_id_list_result with login_member_ids list.
7. Send operation_request with update_login_exchange_member_id_list with login_id and member_ids_to_remove=[ {first: login_id, second: exchange_key} ]
8. Receive operation_result with operation_status = 1 (SUCCESS).
9. Send information_request with login_exchange_member_id_list_request with login_id.
10. Receive information_result with operation_status = 1 (SUCCESS) and login_exchange_member_id_list_result with no login_member_ids.
Update Login Settings
1. Send operation_request with update_login_settings with login_settings and provide: login_id, password_never_expires: true.
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with login_settings_request with valid login_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and login_settings_result with updated login_settings.
Activate Login
1. Send operation_request with activate_login request with valid login_id that is deactivated.
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with user_info_request with user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and updated user with is_active=true.
Deactivate Login
1. Send operation_request with deactivate_login request with valid login_id that is active.
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with user_info_request with user_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and updated user with is_active=false.
Generate Service Security Token
1. Send operation_request with generate_service_security_token with valid login_id and operation = 1 [Set static password without providing old static password].
2. Receive operation_result with operation_status = 1 (SUCCESS) and generate_service_security_token_result with security_token and url.
Erase Current Credentials
1. Send operation_request with erase_current_credentials with valid login_id and credential_types=1 [Static password].
2. Receive operation_result with operation_status = 1 (SUCCESS).
Update Login Billing Custom Data
1. Send operation_request with update_login_billing_custom_data with valid login_id and login_billing_custom_data: account_id, billing_custom_data [Max count = 3].
2. Receive operation_result with operation_status = 1 (SUCCESS).
3. Send information_request with login_billing_custom_data_request with login_id.
4. Receive information_result with operation_status = 1 (SUCCESS) and login_billing_custom_data_result with updated login_billing_custom_data list.