opentf-toolkit-nightly 0.58.0.dev1168__py3-none-any.whl → 0.58.0.dev1171__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.
- opentf/commons/pubsub.py +8 -3
- {opentf_toolkit_nightly-0.58.0.dev1168.dist-info → opentf_toolkit_nightly-0.58.0.dev1171.dist-info}/METADATA +1 -1
- {opentf_toolkit_nightly-0.58.0.dev1168.dist-info → opentf_toolkit_nightly-0.58.0.dev1171.dist-info}/RECORD +6 -6
- {opentf_toolkit_nightly-0.58.0.dev1168.dist-info → opentf_toolkit_nightly-0.58.0.dev1171.dist-info}/WHEEL +1 -1
- {opentf_toolkit_nightly-0.58.0.dev1168.dist-info → opentf_toolkit_nightly-0.58.0.dev1171.dist-info}/LICENSE +0 -0
- {opentf_toolkit_nightly-0.58.0.dev1168.dist-info → opentf_toolkit_nightly-0.58.0.dev1171.dist-info}/top_level.txt +0 -0
opentf/commons/pubsub.py
CHANGED
|
@@ -19,7 +19,7 @@ from typing import Any, Dict, List, Optional
|
|
|
19
19
|
import sys
|
|
20
20
|
import threading
|
|
21
21
|
|
|
22
|
-
from datetime import datetime
|
|
22
|
+
from datetime import datetime, timezone
|
|
23
23
|
from queue import Queue
|
|
24
24
|
from time import sleep
|
|
25
25
|
|
|
@@ -88,7 +88,10 @@ def make_subscription(
|
|
|
88
88
|
|
|
89
89
|
subscription = make_event(
|
|
90
90
|
SUBSCRIPTION,
|
|
91
|
-
metadata={
|
|
91
|
+
metadata={
|
|
92
|
+
'name': name,
|
|
93
|
+
'creationTimestamp': datetime.now(timezone.utc).isoformat(),
|
|
94
|
+
},
|
|
92
95
|
spec=spec,
|
|
93
96
|
)
|
|
94
97
|
|
|
@@ -235,7 +238,9 @@ def publish(publication: Any, context: Dict[str, Any]) -> Response:
|
|
|
235
238
|
A `requests.Response` object.
|
|
236
239
|
"""
|
|
237
240
|
if isinstance(publication, dict) and 'metadata' in publication:
|
|
238
|
-
publication['metadata']['creationTimestamp'] = datetime.now(
|
|
241
|
+
publication['metadata']['creationTimestamp'] = datetime.now(
|
|
242
|
+
timezone.utc
|
|
243
|
+
).isoformat()
|
|
239
244
|
return _do(post, '/publications', context['eventbus'], json=publication)
|
|
240
245
|
|
|
241
246
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: opentf-toolkit-nightly
|
|
3
|
-
Version: 0.58.0.
|
|
3
|
+
Version: 0.58.0.dev1171
|
|
4
4
|
Summary: OpenTestFactory Orchestrator Toolkit
|
|
5
5
|
Home-page: https://gitlab.com/henixdevelopment/open-source/opentestfactory/python-toolkit
|
|
6
6
|
Author: Martin Lafaix
|
|
@@ -3,7 +3,7 @@ opentf/commons/auth.py,sha256=bM2Z3kxm2Wku1lKXaRAIg37LHvXWAXIZIqjplDfN2P8,15899
|
|
|
3
3
|
opentf/commons/config.py,sha256=dyus4K5Zdmcftc3Y9Z1YRkzA1KwiRLHoeAlg2_A49QM,7876
|
|
4
4
|
opentf/commons/datasources.py,sha256=GSbjrYnZQup2B3r7T7l3C_o6R2jS13nQiu6dRitoenk,26194
|
|
5
5
|
opentf/commons/expressions.py,sha256=jM_YKXVOFhvOE2aE2IuacuvxhIsOYTFs2oQkpcbWR6g,19645
|
|
6
|
-
opentf/commons/pubsub.py,sha256=
|
|
6
|
+
opentf/commons/pubsub.py,sha256=M0bvajR9raUP-xe5mfRjdrweZyHQw1_Qsy56gS-Sck4,7676
|
|
7
7
|
opentf/commons/schemas.py,sha256=cjyPXRhRIPQauCdy9zGRaOkqdVcklz47JnljTTLNpq8,4254
|
|
8
8
|
opentf/commons/selectors.py,sha256=DEpLgRAr5HXSpSYI4liXP2hLUTvOSexFa9Vfa1xIQTk,7134
|
|
9
9
|
opentf/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -57,8 +57,8 @@ opentf/scripts/startup.py,sha256=sggwEpMx7PTaSgYzs-2uCF5YZzpsncMyTlfF_G60CrE,215
|
|
|
57
57
|
opentf/toolkit/__init__.py,sha256=mYeJPZ92ulbTBItqEsZgF4nnuRh6G19QPY3Jxc92ifc,23028
|
|
58
58
|
opentf/toolkit/channels.py,sha256=bAUo0FRNljkjgTkWqSJljsNeMSX21LLLZP-TS4cw1oo,18996
|
|
59
59
|
opentf/toolkit/core.py,sha256=6nud1vqcfjs9swZu_Z-rbvdbejtrlSjOd8eZXIF0ChE,9795
|
|
60
|
-
opentf_toolkit_nightly-0.58.0.
|
|
61
|
-
opentf_toolkit_nightly-0.58.0.
|
|
62
|
-
opentf_toolkit_nightly-0.58.0.
|
|
63
|
-
opentf_toolkit_nightly-0.58.0.
|
|
64
|
-
opentf_toolkit_nightly-0.58.0.
|
|
60
|
+
opentf_toolkit_nightly-0.58.0.dev1171.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
61
|
+
opentf_toolkit_nightly-0.58.0.dev1171.dist-info/METADATA,sha256=hnTMsbI8QhO34xRLUxKt9DjwKp8KGLEjdoDB1xz_xGg,1940
|
|
62
|
+
opentf_toolkit_nightly-0.58.0.dev1171.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
63
|
+
opentf_toolkit_nightly-0.58.0.dev1171.dist-info/top_level.txt,sha256=_gPuE6GTT6UNXy1DjtmQSfCcZb_qYA2vWmjg7a30AGk,7
|
|
64
|
+
opentf_toolkit_nightly-0.58.0.dev1171.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|