Skip to content

Commit

Permalink
Add Libvirt CR API e2e test and some refactor (#12208)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 authored Aug 25, 2023
1 parent 597df75 commit 7b06777
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 360 deletions.
13 changes: 6 additions & 7 deletions pytest_fixtures/component/provision_libvirt.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Compute resource - Libvirt entities
import pytest
from nailgun import entities


@pytest.fixture(scope="module")
def module_cr_libvirt(module_org, module_location):
return entities.LibvirtComputeResource(
@pytest.fixture(scope='module')
def module_cr_libvirt(module_target_sat, module_org, module_location):
return module_target_sat.api.LibvirtComputeResource(
organization=[module_org], location=[module_location]
).create()


@pytest.fixture(scope="module")
def module_libvirt_image(module_cr_libvirt):
return entities.Image(compute_resource=module_cr_libvirt).create()
@pytest.fixture(scope='module')
def module_libvirt_image(module_target_sat, module_cr_libvirt):
return module_target_sat.api.Image(compute_resource=module_cr_libvirt).create()
1 change: 0 additions & 1 deletion robottelo/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class Colored(Box):
'ec2': 'EC2',
'vmware': 'VMware',
'openstack': 'RHEL OpenStack Platform',
'rackspace': 'Rackspace',
'google': 'Google',
'azurerm': 'Azure Resource Manager',
}
Expand Down
Loading

0 comments on commit 7b06777

Please sign in to comment.