atk-common 1.4.0__py3-none-any.whl → 1.5.0__py3-none-any.whl

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/__init__.py CHANGED
@@ -2,10 +2,11 @@
2
2
  from atk_common.datetime_utils import date_time_utc, get_utc_date_time
3
3
  from atk_common.env_utils import get_env_value
4
4
  from atk_common.error_utils import get_message, get_error_entity, handle_error, get_response_error, get_error_type
5
- from atk_common.http_utils import is_status_code_ok
5
+ from atk_common.http_utils import is_status_code_ok, get_test_response
6
6
  from atk_common.log_utils import add_log_item, add_log_item_http
7
7
  from atk_common.rabbitmq_consumer import RabbitMQConsumer
8
8
  from atk_common.response_utils import create_save_resp
9
+ from atk_common.docker_utils import get_image_version, get_current_container_info
9
10
 
10
11
  __all__ = [
11
12
  'date_time_utc',
@@ -17,8 +18,11 @@ __all__ = [
17
18
  'get_response_error',
18
19
  'get_error_type',
19
20
  'is_status_code_ok',
21
+ 'get_test_response',
20
22
  'add_log_item',
21
23
  'add_log_item_http',
22
24
  'RabbitMQConsumer',
23
- 'create_save_resp'
25
+ 'create_save_resp',
26
+ 'get_image_version',
27
+ 'get_current_container_info'
24
28
  ]
atk_common/http_utils.py CHANGED
@@ -21,4 +21,4 @@ def get_test_response(default_value=None):
21
21
  else:
22
22
  data['imageVersion'] = get_image_version(data['imageName'])
23
23
  data['timestamp'] = get_utc_date_time()
24
- return json.dumps(data)
24
+ return data
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atk_common
3
- Version: 1.4.0
3
+ Version: 1.5.0
4
4
  Summary: ATK common methods
5
5
  Home-page: https://github.com/pypa/atk_common
6
6
  Author: Roger
@@ -1,9 +1,9 @@
1
- atk_common/__init__.py,sha256=EceDa352WFHTdC_LxYANXf_TS9pGzK3MCx87bwAKTvg,811
1
+ atk_common/__init__.py,sha256=u4ue9lkuw1ImDdWClEB1z6k_8eHjfm-1wvJipZV5JnM,1000
2
2
  atk_common/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
3
3
  atk_common/docker_utils.py,sha256=BuulyBYuUoNS-iV4ZsknRifx5L2KWcKrrHDRqg6zqaY,2194
4
4
  atk_common/env_utils.py,sha256=66v-S0vlkJNaun6ay1XcOGRtYJb4Ce4odJsWxuaHsQc,373
5
5
  atk_common/error_utils.py,sha256=5OiL5nMBEkDc193m2cVMD2Bs-fwRvPeSlI7PwnqB0o4,1533
6
- atk_common/http_utils.py,sha256=AzWuSkiH086JNsyAw1smOP6bNGyyeL4KkkxLYyNadOQ,936
6
+ atk_common/http_utils.py,sha256=t2XmuDMBjUAH071qwarZ6hcTBzpO_4a9x10E8MU2EMc,924
7
7
  atk_common/log_utils.py,sha256=DGGwXjD5jvpMZJNW1QBoJRdDaTY1e1Z69j0LSOOzsWA,419
8
8
  atk_common/rabbitmq_consumer.py,sha256=4MhuwZs47Jt1fX4sUxr1MKRe7o2QRbPe9_utXEsa8QE,1907
9
9
  atk_common/response_utils.py,sha256=ezqTSNdGwueFXzijKB7CKPWxZml39bqjAZOeIMWMntk,197
@@ -22,8 +22,8 @@ atk_package/enums/__init__.py,sha256=oW0aVnwewfH6sNu14jjZ5_uP4iRN4pRmGdTNC204rHo
22
22
  atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
23
23
  atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
24
24
  shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- atk_common-1.4.0.dist-info/METADATA,sha256=WDZvHM1C2qyv4CZcFatHogVf8xonI0FF1SFO6XNcuRc,1193
26
- atk_common-1.4.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
- atk_common-1.4.0.dist-info/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
28
- atk_common-1.4.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
29
- atk_common-1.4.0.dist-info/RECORD,,
25
+ atk_common-1.5.0.dist-info/METADATA,sha256=Qa-31_dqBulVz-F3gzWuvkalmUrfWjHo1PGsQhEFCRw,1193
26
+ atk_common-1.5.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
+ atk_common-1.5.0.dist-info/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
28
+ atk_common-1.5.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
29
+ atk_common-1.5.0.dist-info/RECORD,,