testit-cli 2.2.1.post522__tar.gz → 2.2.2.post522__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/PKG-INFO +1 -1
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/setup.py +1 -1
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/click_commands.py +10 -8
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/models/config.py +1 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/parser.py +5 -2
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/PKG-INFO +1 -1
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/LICENSE +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/README.md +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/setup.cfg +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/__init__.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/__main__.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/apiclient.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/autotests_filter.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/converter.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/dir_worker.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/file_worker.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/filter_factory.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/importer.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/logger.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/models/__init__.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/models/mode.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/models/status.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/models/testcase.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/models/testrun.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/service.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/service_factory.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli/validation.py +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/SOURCES.txt +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/dependency_links.txt +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/entry_points.txt +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/requires.txt +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/top_level.txt +0 -0
- {testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/tests/test_click.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2.post522
|
|
4
4
|
Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
|
|
5
5
|
Home-page: https://pypi.org/project/testit-cli/
|
|
6
6
|
Author: Integration team
|
|
@@ -73,9 +73,10 @@ class ExtraArgsForOption(click.Option):
|
|
|
73
73
|
@click.option("-a", "--attachments", multiple=True, type=list, help="Path to attachments for test run (multiple)", default=[], cls=ExtraArgsForOption)
|
|
74
74
|
@click.option("-d", "--debug", is_flag=True, help="Set debug logs")
|
|
75
75
|
@click.option("-dcv", "--disable-cert-validation", is_flag=True, help="Disables certificate validation")
|
|
76
|
-
|
|
76
|
+
@click.option("-iff", "--ignore-flaky-failure", is_flag=True, help="Ignore status flakyFailure in results")
|
|
77
|
+
def upload_results(url, token, configuration_id, testrun_id, separator, namespace, classname, results, debug, attachments, disable_cert_validation, ignore_flaky_failure):
|
|
77
78
|
"""Uploading results from different streams"""
|
|
78
|
-
config = Config(url, token, "", configuration_id, testrun_id, "", separator, namespace, classname, list(chain.from_iterable(results)), debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "")
|
|
79
|
+
config = Config(url, token, "", configuration_id, testrun_id, "", separator, namespace, classname, list(chain.from_iterable(results)), debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "", ignore_flaky_failure)
|
|
79
80
|
service = ServiceFactory().get(config)
|
|
80
81
|
|
|
81
82
|
service.upload_results()
|
|
@@ -95,12 +96,13 @@ def upload_results(url, token, configuration_id, testrun_id, separator, namespac
|
|
|
95
96
|
@click.option("-a", "--attachments", multiple=True, type=list, help="Path to attachments for test run (multiple)", default=[], cls=ExtraArgsForOption)
|
|
96
97
|
@click.option("-d", "--debug", is_flag=True, help="Set debug logs")
|
|
97
98
|
@click.option("-dcv", "--disable-cert-validation", is_flag=True, help="Disables certificate validation")
|
|
98
|
-
|
|
99
|
+
@click.option("-iff", "--ignore-flaky-failure", is_flag=True, help="Ignore status flakyFailure in results")
|
|
100
|
+
def import_results(url, token, project_id, configuration_id, testrun_id, testrun_name, separator, namespace, classname, results, debug, attachments, disable_cert_validation, ignore_flaky_failure):
|
|
99
101
|
"""Uploading the first test results"""
|
|
100
102
|
if testrun_id is not None and testrun_name is not None:
|
|
101
103
|
click.echo("Illegal usage: `{}` are mutually exclusive arguments.".format(', '.join(["--testrun-id", "--testrun-name"])), err=True)
|
|
102
104
|
|
|
103
|
-
config = Config(url, token, project_id, configuration_id, testrun_id, testrun_name, separator, namespace, classname, list(chain.from_iterable(results)), debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "")
|
|
105
|
+
config = Config(url, token, project_id, configuration_id, testrun_id, testrun_name, separator, namespace, classname, list(chain.from_iterable(results)), debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "", ignore_flaky_failure)
|
|
104
106
|
service = ServiceFactory().get(config)
|
|
105
107
|
|
|
106
108
|
service.import_results()
|
|
@@ -123,7 +125,7 @@ def testrun():
|
|
|
123
125
|
@click.option("-dcv", "--disable-cert-validation", is_flag=True, help="Disables certificate validation")
|
|
124
126
|
def create_test_run(url, token, project_id, testrun_name, output, debug, attachments, disable_cert_validation):
|
|
125
127
|
"""Creating a new test run"""
|
|
126
|
-
config = Config(url, token, project_id, "", "", testrun_name, "", "", "", [], debug, output, list(chain.from_iterable(attachments)), disable_cert_validation, "")
|
|
128
|
+
config = Config(url, token, project_id, "", "", testrun_name, "", "", "", [], debug, output, list(chain.from_iterable(attachments)), disable_cert_validation, "", False)
|
|
127
129
|
service = ServiceFactory().get(config)
|
|
128
130
|
|
|
129
131
|
service.create_test_run()
|
|
@@ -138,7 +140,7 @@ def create_test_run(url, token, project_id, testrun_name, output, debug, attachm
|
|
|
138
140
|
@click.option("-dcv", "--disable-cert-validation", is_flag=True, help="Disables certificate validation")
|
|
139
141
|
def complete_test_run(url, token, testrun_id, debug, attachments, disable_cert_validation):
|
|
140
142
|
"""Completing the test run"""
|
|
141
|
-
config = Config(url, token, "", "", testrun_id, "", "", "", "", [], debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "")
|
|
143
|
+
config = Config(url, token, "", "", testrun_id, "", "", "", "", [], debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "", False)
|
|
142
144
|
service = ServiceFactory().get(config)
|
|
143
145
|
|
|
144
146
|
service.finished_test_run()
|
|
@@ -153,7 +155,7 @@ def complete_test_run(url, token, testrun_id, debug, attachments, disable_cert_v
|
|
|
153
155
|
@click.option("-dcv", "--disable-cert-validation", is_flag=True, help="Disables certificate validation")
|
|
154
156
|
def upload_attachments_for_test_run(url, token, testrun_id, debug, attachments, disable_cert_validation):
|
|
155
157
|
"""Uploading attachments for the test run"""
|
|
156
|
-
config = Config(url, token, "", "", testrun_id, "", "", "", "", [], debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "")
|
|
158
|
+
config = Config(url, token, "", "", testrun_id, "", "", "", "", [], debug, "", list(chain.from_iterable(attachments)), disable_cert_validation, "", False)
|
|
157
159
|
service = ServiceFactory().get(config)
|
|
158
160
|
|
|
159
161
|
service.upload_attachments_for_test_run()
|
|
@@ -177,7 +179,7 @@ GOLANG_FRAMEWORKS = ['golang']
|
|
|
177
179
|
@click.option("-dcv", "--disable-cert-validation", is_flag=True, help="Disables certificate validation")
|
|
178
180
|
def create_filter_for_framework(url, token, configuration_id, testrun_id, framework, debug, output, disable_cert_validation):
|
|
179
181
|
"""Creating filter by autotests for test frameworks"""
|
|
180
|
-
config = Config(url, token, "", configuration_id, testrun_id, "", "", "", "", [], debug, output, [], disable_cert_validation, framework)
|
|
182
|
+
config = Config(url, token, "", configuration_id, testrun_id, "", "", "", "", [], debug, output, [], disable_cert_validation, framework, False)
|
|
181
183
|
service = ServiceFactory().get(config)
|
|
182
184
|
|
|
183
185
|
service.create_filter_for_test_framework()
|
|
@@ -8,12 +8,13 @@ from .file_worker import FileWorker
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Parser:
|
|
11
|
+
__FLAKY_FAILURE_NODE_NAME = "flakyFailure"
|
|
11
12
|
__FAILURE_NODE_NAMES = [
|
|
12
13
|
"error",
|
|
13
14
|
"failure",
|
|
14
15
|
"rerunFailure",
|
|
15
16
|
"rerunError",
|
|
16
|
-
|
|
17
|
+
__FLAKY_FAILURE_NODE_NAME,
|
|
17
18
|
"flakyError",
|
|
18
19
|
"system-err"]
|
|
19
20
|
__MESSAGE_ATTRIBUTE_NAME = "message"
|
|
@@ -27,6 +28,7 @@ class Parser:
|
|
|
27
28
|
self.__separator = config.separator
|
|
28
29
|
self.__namespace = config.namespace
|
|
29
30
|
self.__classname = config.classname
|
|
31
|
+
self.__ignore_flaky_failure = config.ignore_flaky_failure
|
|
30
32
|
|
|
31
33
|
def read_file(self): # noqa: C901
|
|
32
34
|
results = []
|
|
@@ -68,7 +70,8 @@ class Parser:
|
|
|
68
70
|
testcase.set_status(Status.SKIPPED)
|
|
69
71
|
|
|
70
72
|
continue
|
|
71
|
-
elif child.nodeName in self.__FAILURE_NODE_NAMES
|
|
73
|
+
elif child.nodeName in self.__FAILURE_NODE_NAMES and \
|
|
74
|
+
not (child.nodeName == self.__FLAKY_FAILURE_NODE_NAME and self.__ignore_flaky_failure):
|
|
72
75
|
testcase.set_status(Status.FAILED)
|
|
73
76
|
|
|
74
77
|
testcase.set_trace(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: testit-cli
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.2.post522
|
|
4
4
|
Summary: This tool is the command line wrapper of Test IT allowing you to upload the test results in real time to Test IT
|
|
5
5
|
Home-page: https://pypi.org/project/testit-cli/
|
|
6
6
|
Author: Integration team
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{testit_cli-2.2.1.post522 → testit_cli-2.2.2.post522}/src/testit_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|