atk-common 1.8.0__tar.gz → 1.9.0__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.
- {atk_common-1.8.0 → atk_common-1.9.0}/PKG-INFO +1 -1
- {atk_common-1.8.0 → atk_common-1.9.0}/setup.py +1 -1
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/http_utils.py +11 -1
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common.egg-info/PKG-INFO +1 -1
- {atk_common-1.8.0 → atk_common-1.9.0}/tests/test_http_utils.py +1 -1
- {atk_common-1.8.0 → atk_common-1.9.0}/README.md +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/license.txt +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/pyproject.toml +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/setup.cfg +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/__init__.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/datetime_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/docker_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/enums/__init__.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/enums/command_status_enum.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/enums/speed_control_status_enum.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/env_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/error_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/log_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/rabbitmq_consumer.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common/response_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common.egg-info/SOURCES.txt +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common.egg-info/dependency_links.txt +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common.egg-info/requires.txt +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/atk_common.egg-info/top_level.txt +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/src/shared_python_atk_enforcement/__init__.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/tests/test_docker_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/tests/test_error_utils.py +0 -0
- {atk_common-1.8.0 → atk_common-1.9.0}/tests/test_log_utils.py +0 -0
@@ -36,7 +36,7 @@ setup(
|
|
36
36
|
# For a discussion on single-sourcing the version across setup.py and the
|
37
37
|
# project code, see
|
38
38
|
# https://packaging.python.org/guides/single-sourcing-package-version/
|
39
|
-
version="1.
|
39
|
+
version="1.9.0", # Required
|
40
40
|
# This is a one-line description or tagline of what your project does. This
|
41
41
|
# corresponds to the "Summary" metadata field:
|
42
42
|
# https://packaging.python.org/specifications/core-metadata/#summary
|
@@ -20,4 +20,14 @@ def get_test_response():
|
|
20
20
|
data['containerName'] = None
|
21
21
|
data['containerPorts'] = None
|
22
22
|
data['timestamp'] = get_utc_date_time()
|
23
|
-
return data
|
23
|
+
return data
|
24
|
+
|
25
|
+
def get_test_response(docker_container_data, component):
|
26
|
+
data = {}
|
27
|
+
data['utcDateTime'] = get_utc_date_time()
|
28
|
+
if docker_container_data is None:
|
29
|
+
data['containerData'] = None
|
30
|
+
data['component'] = component
|
31
|
+
else:
|
32
|
+
data['containerData'] = docker_container_data
|
33
|
+
return data
|
@@ -5,7 +5,7 @@ from atk_common.http_utils import get_test_response
|
|
5
5
|
class TestHttpUtils(unittest.TestCase):
|
6
6
|
|
7
7
|
def test_get_test_response_none(self):
|
8
|
-
resp_json = get_test_response()
|
8
|
+
resp_json = get_test_response(None, 'bo-config-db-api')
|
9
9
|
self.assertIsNotNone(resp_json)
|
10
10
|
|
11
11
|
if __name__ == "__main__":
|
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
|
File without changes
|