spl2-testing-framework 1.8.4__tar.gz → 1.8.5__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.
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/PKG-INFO +1 -1
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/pyproject.toml +1 -1
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/results.py +16 -3
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/LICENSE +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/README.md +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/__init__.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/conftest.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/launch_remotely_spl2.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/logger_manager.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/pytest.ini.sample +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/single_spl2_file_runner.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/spl2_test_config.json +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/spl2_utils/assertions.spl2 +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/spl2_utils/logs_to_metrics.spl2 +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/splunk_setup.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/test_runner.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/__init__.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/create_diff_sheet.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/jobs/__init__.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/jobs/cli_job.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/jobs/cloud_job.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/jobs/job.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/jobs/splunk_job.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/jobs/test_cloud_job.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/performance.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/search_clients/__init__.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/search_clients/cli_search_client.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/search_clients/cloud_search_client.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/search_clients/search_client.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/search_clients/splunk_search_client.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/spl2test_runner.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/splunk_integration/__init__.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/splunk_integration/splunk_handler.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/test_discovery.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/test_types.py +0 -0
- {spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/utils.py +0 -0
|
@@ -15,10 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
import ast
|
|
17
17
|
import json
|
|
18
|
+
import re
|
|
18
19
|
from collections import UserDict
|
|
19
20
|
from datetime import datetime, timezone
|
|
20
21
|
from typing import Any
|
|
21
22
|
|
|
23
|
+
_WHOLE_FLOAT_STR_RE = re.compile(r"^(-?\d+)\.0+$")
|
|
24
|
+
|
|
22
25
|
|
|
23
26
|
class Results(UserDict):
|
|
24
27
|
_ignore_empty_strings = False
|
|
@@ -76,10 +79,20 @@ class Results(UserDict):
|
|
|
76
79
|
if isinstance(data, bool):
|
|
77
80
|
data = str(data).lower()
|
|
78
81
|
elif isinstance(data, (int, float)):
|
|
79
|
-
data =
|
|
82
|
+
data = (
|
|
83
|
+
str(int(data))
|
|
84
|
+
if isinstance(data, float) and data == int(data)
|
|
85
|
+
else str(data)
|
|
86
|
+
)
|
|
80
87
|
|
|
81
|
-
if isinstance(data, str)
|
|
82
|
-
data
|
|
88
|
+
if isinstance(data, str):
|
|
89
|
+
if data in ("True", "False"):
|
|
90
|
+
data = data.lower()
|
|
91
|
+
# Normalize "7.0", "7.00", "7.00000" → "7" for whole-number float strings returned by Splunk.
|
|
92
|
+
else:
|
|
93
|
+
m = _WHOLE_FLOAT_STR_RE.match(data)
|
|
94
|
+
if m:
|
|
95
|
+
data = m.group(1)
|
|
83
96
|
|
|
84
97
|
return data
|
|
85
98
|
|
|
File without changes
|
|
File without changes
|
{spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/__init__.py
RENAMED
|
File without changes
|
{spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/splunk_setup.py
RENAMED
|
File without changes
|
{spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/test_runner.py
RENAMED
|
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
|
{spl2_testing_framework-1.8.4 → spl2_testing_framework-1.8.5}/spl2_testing_framework/tools/utils.py
RENAMED
|
File without changes
|