def before_each_scenario(feature): world.env_requests = EnvironmentRequest( world.config[PAAS][KEYSTONE_URL], world.config[PAAS][PAASMANAGER_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.config[PAAS][SDC_URL]) # Check that the initial list of environments is empty before launching the tests world.env_requests.get_environments() environment_request.check_get_environments_response(world.response, 200, 0)
def before_each_scenario(feature): world.env_requests = EnvironmentRequest(world.config[PAAS][KEYSTONE_URL], world.config[PAAS][PAASMANAGER_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.config[PAAS][SDC_URL]) # Check that the initial list of environments is empty before launching the tests world.env_requests.get_environments() environment_request.check_get_environments_response(world.response, 200, 0)
def before_each_scenario(feature): world.env_requests = EnvironmentRequest( world.config[PAAS][KEYSTONE_URL], world.config[PAAS][PAASMANAGER_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.config[PAAS][SDC_URL]) # Check that the initial list of environments is empty before launching the tests world.env_requests.get_environments() environment_request.check_get_environments_response(world.response, 200, 0) # Init feature vars world.product_and_release_list = list() # Create product in SDC to be used by this feature terrain_steps.init_products_in_sdc()
def before_each_scenario(feature): world.env_requests = EnvironmentRequest(world.config[PAAS][KEYSTONE_URL], world.config[PAAS][PAASMANAGER_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.config[PAAS][SDC_URL]) # Check that the initial list of environments is empty before launching the tests world.env_requests.get_environments() environment_request.check_get_environments_response(world.response, 200, 0) # Init feature vars world.product_and_release_list = list() # Create product in SDC to be used by this feature terrain_steps.init_products_in_sdc()
def i_receive_a_response_of_type_with_no_content(step, response_type): status_code = http.status_codes[response_type] environment_request.check_get_environments_response( world.response, status_code, 0)
def i_receive_a_response_of_type_with_items(step, response_type, items_number): status_code = http.status_codes[response_type] environment_request.check_get_environments_response( world.response, status_code, int(items_number))
def i_receive_a_response_of_type_with_no_content(step, response_type): status_code = http.status_codes[response_type] environment_request.check_get_environments_response(world.response, status_code, 0)
def i_receive_a_response_of_type_with_items(step, response_type, items_number): status_code = http.status_codes[response_type] environment_request.check_get_environments_response(world.response, status_code, int(items_number))