-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parametrization testing with CLOUDTP
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<testsuites> | ||
<!--Generated for testrun 5_8_0_17--> | ||
<properties> | ||
<property name="polarion-testrun-id" value="5_8_0_17"/> | ||
<property name="polarion-dry-run" value="False"/> | ||
<property name="polarion-project-id" value="CLOUDTP"/> | ||
<property name="polarion-response-test" value="test"/> | ||
<property name="polarion-testrun-status-id" value="inprogress"/> | ||
<property name="polarion-lookup-method" value="name"/> | ||
</properties> | ||
<testsuite name="Import for CLOUDTP - 5_8_0_17 testrun" errors="0" failures="0" skipped="0" time="2459.3562" tests="3"> | ||
<testcase name="TestInstanceRESTAPI.test_start" time="627.839309"> | ||
<properties> | ||
<property name="polarion-testcase-id" value="TestInstanceRESTAPI.test_start"/> | ||
<property name="polarion-testcase-comment" value="Source: jenkins/downstream-58z-extcloud-tests-master/10"/> | ||
<property name="polarion-parameter-provider" value="azure"/> | ||
<property name="polarion-parameter-from_detail" value="True"/> | ||
</properties> | ||
</testcase> | ||
<testcase name="TestInstanceRESTAPI.test_stop" time="733.560498"> | ||
<properties> | ||
<property name="polarion-testcase-id" value="TestInstanceRESTAPI.test_stop"/> | ||
<property name="polarion-testcase-comment" value="Source: jenkins/downstream-58z-extcloud-tests-master/10"/> | ||
<property name="polarion-parameter-provider" value="gce_central"/> | ||
<property name="polarion-parameter-from_detail" value="False"/> | ||
</properties> | ||
</testcase> | ||
<testcase name="test_quadicon_terminate_cancel" time="1097.956355"> | ||
<properties> | ||
<property name="polarion-testcase-id" value="test_quadicon_terminate_cancel"/> | ||
<property name="polarion-testcase-comment" value="Source: jenkins/downstream-58z-extcloud-tests-master/10"/> | ||
<property name="polarion-parameter-provider" value="ec2-west"/> | ||
</properties> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# encoding: utf-8 | ||
# pylint: disable=missing-docstring,no-self-use,too-few-public-methods,redefined-outer-name | ||
|
||
from __future__ import unicode_literals | ||
|
||
import io | ||
import os | ||
|
||
import pytest | ||
from tests import conf | ||
|
||
from dump2polarion.importer import do_import | ||
from dump2polarion.xunit_exporter import XunitExport | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def records_names(): | ||
input_file = os.path.join(conf.DATA_PATH, 'ostriz.json') | ||
return do_import(input_file) | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
def config_cloudtp(config_prop): | ||
config_prop['xunit_import_properties']['polarion-project-id'] = 'CLOUDTP' | ||
config_prop['cfme_parametrize'] = True | ||
return config_prop | ||
|
||
|
||
class TestParamE2E(object): | ||
def test_e2e_names_transform(self, config_cloudtp, records_names): | ||
exporter = XunitExport('5_8_0_17', records_names, config_cloudtp) | ||
complete = exporter.export() | ||
fname = 'complete_parametrization.xml' | ||
with io.open(os.path.join(conf.DATA_PATH, fname), encoding='utf-8') as input_xml: | ||
parsed = input_xml.read() | ||
assert complete == parsed |