def after_each_feature(feature): """ Hook: Before each feature. It will instance all request managers used in the feature and will initialize vars""" world.keystone_request = KeystoneRequest(world.config[PAAS][KEYSTONE_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC]) world.glance_request = GlanceRequest(world.config[PAAS][GLANCE_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.auth_token) world.nova_request = NovaRequest(world.config[PAAS][NOVA_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.auth_token) 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]) world.inst_requests = EnvironmentInstanceRequest( 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]) world.region_list = None
def before_each_feature(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]) world.inst_requests = EnvironmentInstanceRequest(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]) world.product_sdc_request = ProductSdcRequest(world.config[PAAS][KEYSTONE_URL], world.config[PAAS][SDC_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC]) world.nova_request = NovaRequest(world.config[PAAS][NOVA_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.auth_token) # Init vars world.product_and_release_list = list() world.product_installator = 'chef'
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]) world.inst_requests = EnvironmentInstanceRequest( 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]) world.product_sdc_request = ProductSdcRequest( world.config[PAAS][KEYSTONE_URL], world.config[PAAS][SDC_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC]) world.nova_request = NovaRequest(world.config[PAAS][NOVA_URL], world.config[PAAS][TENANT], world.config[PAAS][USER], world.config[PAAS][PASSWORD], world.config[PAAS][VDC], world.auth_token) # Init vars world.product_and_release_list = list() world.product_installator = 'chef' # 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])
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]) # 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)
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()