spl2-testing-framework 1.8.1__tar.gz → 1.8.3__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.
Files changed (35) hide show
  1. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/PKG-INFO +1 -1
  2. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/pyproject.toml +1 -1
  3. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/results.py +8 -3
  4. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/LICENSE +0 -0
  5. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/README.md +0 -0
  6. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/__init__.py +0 -0
  7. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/conftest.py +0 -0
  8. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/launch_remotely_spl2.py +0 -0
  9. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/logger_manager.py +0 -0
  10. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/pytest.ini.sample +0 -0
  11. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/single_spl2_file_runner.py +0 -0
  12. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/spl2_test_config.json +0 -0
  13. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/spl2_utils/assertions.spl2 +0 -0
  14. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/spl2_utils/logs_to_metrics.spl2 +0 -0
  15. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/test_runner.py +0 -0
  16. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/__init__.py +0 -0
  17. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/create_diff_sheet.py +0 -0
  18. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/jobs/__init__.py +0 -0
  19. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/jobs/cli_job.py +0 -0
  20. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/jobs/cloud_job.py +0 -0
  21. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/jobs/job.py +0 -0
  22. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/jobs/splunk_job.py +0 -0
  23. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/jobs/test_cloud_job.py +0 -0
  24. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/performance.py +0 -0
  25. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/search_clients/__init__.py +0 -0
  26. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/search_clients/cli_search_client.py +0 -0
  27. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/search_clients/cloud_search_client.py +0 -0
  28. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/search_clients/search_client.py +0 -0
  29. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/search_clients/splunk_search_client.py +0 -0
  30. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/spl2test_runner.py +0 -0
  31. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/splunk_integration/__init__.py +0 -0
  32. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/splunk_integration/splunk_handler.py +0 -0
  33. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/test_discovery.py +0 -0
  34. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/test_types.py +0 -0
  35. {spl2_testing_framework-1.8.1 → spl2_testing_framework-1.8.3}/spl2_testing_framework/tools/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spl2-testing-framework
3
- Version: 1.8.1
3
+ Version: 1.8.3
4
4
  Summary: SPL2 Testing Framework
5
5
  Home-page: https://github.com/splunk/spl2-testing-framework
6
6
  Keywords: SPL2 testing framework
@@ -15,7 +15,7 @@
15
15
 
16
16
  [tool.poetry]
17
17
  name = "spl2-testing-framework"
18
- version = "1.8.1"
18
+ version = "1.8.3"
19
19
  description = "SPL2 Testing Framework"
20
20
  authors = ["mgazda-splunk <mgazda@splunk.com>"]
21
21
  readme = "README.md"
@@ -71,11 +71,16 @@ class Results(UserDict):
71
71
  if isinstance(data, dict):
72
72
  for key, value in data.items():
73
73
  data[key] = Results._cast_types(value)
74
- if key == "_time":
74
+ if key == "_time" and data[key] != "":
75
75
  data[key] = Results._convert_timestamp(data[key])
76
- if isinstance(data, (int, float)):
76
+ if isinstance(data, bool):
77
+ data = str(data).lower()
78
+ elif isinstance(data, (int, float)):
77
79
  data = str(data)
78
80
 
81
+ if isinstance(data, str) and data in ("True", "False"):
82
+ data = data.lower()
83
+
79
84
  return data
80
85
 
81
86
  @staticmethod
@@ -97,7 +102,7 @@ class Results(UserDict):
97
102
  but CLI doesn't, we need to remove it from comparison.
98
103
  """
99
104
 
100
- if self.data.get("_has_time", "1") == "0":
105
+ if self.data.get("_has_time", "1") == "0" or self.data.get("_time") == "":
101
106
  self.data.pop("_has_time", None)
102
107
  self.data.pop("_time", None)
103
108
  else: