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 #8277 from niyazRedhat/servce-fix
Browse files Browse the repository at this point in the history
[RFR] Fixed service direct url and copy request
  • Loading branch information
mshriver committed Dec 17, 2018
2 parents 7112c69 + d3a18e8 commit ad2d8c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cfme/tests/services/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
pytestmark = [
pytest.mark.meta(server_roles="-automate"), # To prevent the provisioning itself.
test_requirements.service,
pytest.mark.provider(classes=[InfraProvider], selector=ONE),
pytest.mark.provider(classes=[InfraProvider], scope="module", selector=ONE),
pytest.mark.usefixtures('setup_provider')
]

Expand Down Expand Up @@ -54,7 +54,7 @@ def generated_request(appliance, provider, provisioning, template_name, vm_name)
vm = appliance.collections.infra_vms.instantiate(name=vm_name,
provider=provider,
template_name=template_name)
view = navigate_to(vm, 'Provision')
view = navigate_to(vm.parent, 'Provision')

provisioning_data = {
'request': {
Expand Down Expand Up @@ -125,7 +125,8 @@ def test_copy_request(request, generated_request, vm_name, template_name):
assignee: None
initialEstimate: None
"""
modifications = {'catalog': {'vm_name': vm_name}}
new_vm_name = '{}-xx'.format(vm_name)
modifications = {'catalog': {'vm_name': new_vm_name}}
new_request = generated_request.copy_request(values=modifications)
request.addfinalizer(new_request.remove_request)
assert navigate_to(new_request, 'Details')

0 comments on commit ad2d8c3

Please sign in to comment.