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

[1LP][RFR] Fixing TC v2v_custom_attribute #10136

Merged
merged 1 commit into from
May 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 1 addition & 11 deletions cfme/tests/v2v/test_v2v_migrations_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import fauxfactory
import pytest
from widgetastic.exceptions import NoSuchElementException
from widgetastic.utils import partial_match

from cfme import test_requirements
from cfme.cloud.provider.openstack import OpenStackProvider
Expand Down Expand Up @@ -609,11 +608,6 @@ def test_v2v_custom_attribute(request, appliance, provider,
infrastructure_mapping_collection = appliance.collections.v2v_infra_mappings
mapping_data = mapping_data_vm_obj_single_datastore.infra_mapping_data

component = mapping_data["clusters"][0]
# Changing target project to other than default(admin to qe-auto)
component.targets = [partial_match(provider.data.clusters[1])]
map_cluster = component.targets[0]
# create mapping with 'qe-auto' project
mapping = infrastructure_mapping_collection.create(**mapping_data)
src_vm_obj = mapping_data_vm_obj_single_datastore.vm_list[0]

Expand Down Expand Up @@ -651,8 +645,4 @@ def _cleanup():
# Test1: Checking map's flavor with openstack server flavor
assert map_flavor == osp_vm.flavor.name
# Test2: Checking map's security group with openstack server security group
assert map_security_group == osp_vm.security_groups[0]

new_view = navigate_to(src_vm_obj, "Details")
osp_project = new_view.entities.summary("Relationships").get_text_of("Cloud Tenants")
assert map_cluster == osp_project
assert map_security_group == osp_vm.raw.security_groups[0]['name']