Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9849 from jaryn/fix_cloudinit_openstack_test
Browse files Browse the repository at this point in the history
[1LP][WIPTEST] Fix test_cloud_init_provisioning for openstack-13
  • Loading branch information
mshriver authored Jan 29, 2020
2 parents 7c35e0b + deb9bf9 commit b03a65f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cfme/tests/cloud_infra_common/test_cloud_init_provisioning.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# These tests don't work at the moment, due to the security_groups multi select not working
# in selenium (the group is selected then immediately reset)
import pytest
from widgetastic.utils import partial_match

from cfme import test_requirements
from cfme.cloud.provider import CloudProvider
Expand Down Expand Up @@ -95,6 +96,8 @@ def test_provision_cloud_init(appliance, request, setup_provider, provider, prov
floating_ip = mgmt_system.get_first_floating_ip(pool=ip_pool)
provider.refresh_provider_relationships()
inst_args['environment'] = {'public_ip_address': floating_ip}
inst_arg_props = inst_args.setdefault('properties', {})
inst_arg_props['instance_type'] = partial_match(provisioning['ci-flavor-name'])
if provider.one_of(InfraProvider) and appliance.version > '5.9':
inst_args['customize']['customize_type'] = 'Specification'

Expand Down

0 comments on commit b03a65f

Please sign in to comment.