-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Libvirt CR API e2e test and some refactor (#12208)
Signed-off-by: Gaurav Talreja <[email protected]>
- Loading branch information
1 parent
597df75
commit 7b06777
Showing
5 changed files
with
119 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.