def unconfigured_appliances(appliance, pytestconfig): with sprout_appliances( appliance, preconfigured=False, count=3, config=pytestconfig, provider_type='rhevm', ) as apps: yield apps
def configured_appliance(appliance, pytestconfig): with sprout_appliances( appliance, preconfigured=True, count=1, config=pytestconfig, provider_type='rhevm', ) as apps: yield apps[0]
def configured_appliance(request, appliance, pytestconfig): with sprout_appliances( appliance, preconfigured=True, count=1, config=pytestconfig, provider_type='rhevm', ) as apps: yield apps[0] _collect_logs(request.config, apps)
def unconfigured_appliances(request, appliance, pytestconfig): with sprout_appliances( appliance, preconfigured=False, count=3, config=pytestconfig, provider_type='rhevm', ) as apps: yield apps _collect_logs(request.config, apps)
def temp_pod_appliance(appliance, provider, appliance_data, pytestconfig): with sprout_appliances(appliance, config=pytestconfig, preconfigured=False, provider_type='openshift', provider=provider.key, template_type='openshift_pod') as appliances: with appliances[0] as appliance: appliance.openshift_creds = appliance_data['openshift_creds'] appliance.is_pod = True stack.push(appliance) yield appliance stack.pop()
def temp_pod_appliance(appliance, provider, appliance_data, pytestconfig): with sprout_appliances(appliance, config=pytestconfig, preconfigured=False, provider_type='openshift', provider=provider.key, template_type='openshift_pod') as appliances: with appliances[0] as appliance: appliance.openshift_creds = appliance_data['openshift_creds'] appliance.is_pod = True stack.push(appliance) # framework will try work with default appliance if browser restarts w/o this # workaround holder = config.pluginmanager.get_plugin(PLUGIN_KEY) holder.held_appliance = appliance yield appliance stack.pop()
def temp_pod_appliance(appliance, provider, appliance_data, pytestconfig): with sprout_appliances( appliance, config=pytestconfig, preconfigured=False, provider_type='openshift', provider=provider.key, template_type='openshift_pod' ) as appliances: with appliances[0] as appliance: appliance.openshift_creds = appliance_data['openshift_creds'] appliance.is_pod = True stack.push(appliance) # framework will try work with default appliance if browser restarts w/o this # workaround holder = config.pluginmanager.get_plugin(PLUGIN_KEY) holder.held_appliance = appliance yield appliance stack.pop()