spl2-testing-framework 1.8.0__tar.gz → 1.8.1__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.0 → spl2_testing_framework-1.8.1}/PKG-INFO +1 -1
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/pyproject.toml +1 -1
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/spl2test_runner.py +14 -1
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/LICENSE +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/README.md +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/__init__.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/conftest.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/launch_remotely_spl2.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/logger_manager.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/pytest.ini.sample +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/single_spl2_file_runner.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/spl2_test_config.json +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/spl2_utils/assertions.spl2 +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/spl2_utils/logs_to_metrics.spl2 +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/test_runner.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/__init__.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/create_diff_sheet.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/jobs/__init__.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/jobs/cli_job.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/jobs/cloud_job.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/jobs/job.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/jobs/splunk_job.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/jobs/test_cloud_job.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/performance.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/results.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/search_clients/__init__.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/search_clients/cli_search_client.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/search_clients/cloud_search_client.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/search_clients/search_client.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/search_clients/splunk_search_client.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/splunk_integration/__init__.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/splunk_integration/splunk_handler.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/test_discovery.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/test_types.py +0 -0
- {spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/utils.py +0 -0
|
@@ -319,7 +319,20 @@ class SPL2TestRunner:
|
|
|
319
319
|
f"got {len(destination_rows)} destination row(s) but "
|
|
320
320
|
f"{len(box_test.output)} expected output(s); zip would hide a mismatch."
|
|
321
321
|
)
|
|
322
|
-
|
|
322
|
+
|
|
323
|
+
def _raw_sort_key(row):
|
|
324
|
+
raw = row.data.get("_raw") if hasattr(row, "data") else row.get("_raw")
|
|
325
|
+
if isinstance(raw, str):
|
|
326
|
+
try:
|
|
327
|
+
raw = json.loads(raw)
|
|
328
|
+
except (ValueError, TypeError):
|
|
329
|
+
pass
|
|
330
|
+
return json.dumps(raw, sort_keys=True, default=str)
|
|
331
|
+
|
|
332
|
+
for event, expected in zip(
|
|
333
|
+
sorted(destination_rows, key=_raw_sort_key),
|
|
334
|
+
sorted(box_test.output, key=_raw_sort_key),
|
|
335
|
+
):
|
|
323
336
|
processed_event = self._splunk_process_event(
|
|
324
337
|
box_test, self._row_as_dict(event)
|
|
325
338
|
)
|
|
File without changes
|
|
File without changes
|
{spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/__init__.py
RENAMED
|
File without changes
|
{spl2_testing_framework-1.8.0 → spl2_testing_framework-1.8.1}/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.0 → spl2_testing_framework-1.8.1}/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.0 → spl2_testing_framework-1.8.1}/spl2_testing_framework/tools/utils.py
RENAMED
|
File without changes
|