opentf-toolkit-nightly 0.58.0.dev1165__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 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={'name': name, 'creationTimestamp': datetime.now().isoformat()},
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().isoformat()
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
 
opentf/scripts/startup.py CHANGED
@@ -362,7 +362,7 @@ def start_plugins(conf: Dict[str, Any]) -> List[Any]:
362
362
  else:
363
363
  disabled = []
364
364
  if (v := _get_env('OPENTF_ALLURE_ENABLED')) is None or (
365
- v.lower() not in ('true', 'yes', '1', 'on')
365
+ v.lower() not in ('true', 'yes', 'on')
366
366
  ):
367
367
  disabled.append('allure.collector')
368
368
  disabled.append('result.aggregator')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opentf-toolkit-nightly
3
- Version: 0.58.0.dev1165
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=S5_20XhrVKJ5ZXFFBg90qlhbG3PZ_H3Mu1hbS1vpy1U,7585
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
@@ -53,12 +53,12 @@ opentf/schemas/opentestfactory.org/v1beta1/ServiceConfig.json,sha256=m5ZgWAKbutu
53
53
  opentf/schemas/opentestfactory.org/v1beta1/Workflow.json,sha256=QZ8mM9PhzsI9gTmwmKTWYNoRn--rtcM3L0PzgnPBfMU,15424
54
54
  opentf/schemas/opentestfactory.org/v1beta2/ServiceConfig.json,sha256=rEvK2YWL5lG94_qYgR_GnLWNsaQhaQ-2kuZdWJr5NnY,3517
55
55
  opentf/scripts/launch_java_service.sh,sha256=S0jAaCuv2sZy0Gf2NGBuPX-eD531rcM-b0fNyhmzSjw,2423
56
- opentf/scripts/startup.py,sha256=IYUb3oKTo0JZ92xuymXaPly8PDzUDZSqgp6ckcLoZ7g,21523
56
+ opentf/scripts/startup.py,sha256=sggwEpMx7PTaSgYzs-2uCF5YZzpsncMyTlfF_G60CrE,21518
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.dev1165.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
61
- opentf_toolkit_nightly-0.58.0.dev1165.dist-info/METADATA,sha256=ClNZttCy6WIxxlC6ul55iMDVF6ss8H11vEkqW31fguU,1940
62
- opentf_toolkit_nightly-0.58.0.dev1165.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
63
- opentf_toolkit_nightly-0.58.0.dev1165.dist-info/top_level.txt,sha256=_gPuE6GTT6UNXy1DjtmQSfCcZb_qYA2vWmjg7a30AGk,7
64
- opentf_toolkit_nightly-0.58.0.dev1165.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5