def test_base(svc_port, t_stage): if not base_config.settings.BASE_TEST or t_stage != 0: return try: # USER REGISTER TEST base_tests.test_list.base_user_register_test(svc_port) # LOGIN TESTS base_tests.test_list.base_user_login_test(svc_port) # LOGOUT TESTS base_tests.test_list.base_user_logout_test(svc_port) # FORGOT PASSWORD TESTS base_tests.test_list.base_user_forgot_password_test(svc_port) # HASHI SAVE TESTS base_tests.test_list.base_hash_save_test(svc_port) # HASH RETRIEVE TESTS base_tests.test_list.base_hash_retrieve_test(svc_port) # CHANGE PASSWORD TESTS base_tests.test_list.base_user_change_password_test(svc_port) # CHECK USER TESTS base_tests.test_list.base_user_check_test(svc_port) # CHANGE USERNAME TEST base_tests.test_list.base_user_change_username_test(svc_port) # CHANGING USERNAME TEST base_tests.test_list.base_user_changing_username_test(svc_port) # SAVE MAIL TEST base_tests.test_list.base_save_message_test(svc_port) # SET OPTIONS TEST base_tests.test_list.base_set_option_test(svc_port) # GET OPTIONS TEST base_tests.test_list.base_get_option_test(svc_port) # DELETE OPTIONS TEST base_tests.test_list.base_del_option_test(svc_port) # SHOW API SPECIFICATION TEST base_tests.test_list.show_api_spec_test(svc_port) except Exception as e: log_failed('Error in test: {}'.format(e), '', None) sys.exit(1)
def test_app(app_tests_list, svc_port, t_stage, t_db, db_u, db_p): last_stage = t_stage if app_tests_list: for itest in app_tests_list: current_stage = itest[1] if last_stage < current_stage: _prepare_stage_dump(t_db, db_u, db_p, last_stage) try: itest[0](svc_port) except Exception as e: log_failed('Error in test: {}'.format(e), '', None) sys.exit(1) last_stage = current_stage
def test_app(app_tests_list, svc_port, t_stage, t_db, db_u, db_p): last_stage = t_stage if app_tests_list: for itest in app_tests_list: log_info('', 'Executing test {}'.format(itest), '') current_stage = itest[1] if last_stage < current_stage: _prepare_stage_dump(t_db, db_u, db_p, last_stage) try: itest[0](svc_port) except Exception as e: log_failed('Error in test: {}'.format(e), '', None) sys.exit(1) last_stage = current_stage