opentf-toolkit-nightly 0.58.0.dev1131__py3-none-any.whl → 0.58.0.dev1138__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.
@@ -50,7 +50,15 @@ CREATION_TIMESTAMP = 'creationTimestamp'
50
50
 
51
51
 
52
52
  class DataSourceScopeError(Exception):
53
- """CacheException class"""
53
+ """DataSourceScopeError class"""
54
+
55
+ def __init__(self, msg, details=None):
56
+ self.msg = msg
57
+ self.details = details
58
+
59
+
60
+ class DataSourceDataError(Exception):
61
+ """DataSourceDataError class"""
54
62
 
55
63
  def __init__(self, msg, details=None):
56
64
  self.msg = msg
@@ -626,7 +634,7 @@ def get_tags(events: List[Dict[str, Any]]) -> Dict[str, Any]:
626
634
  ```
627
635
  """
628
636
  if not (jobs := _get_workflow_jobs(events)):
629
- raise ValueError(
637
+ raise DataSourceDataError(
630
638
  'No job events found in workflow. Cannot extract data for tags.'
631
639
  )
632
640
  tags = {}
@@ -802,7 +810,7 @@ def get_jobs(events: List[Dict[str, Any]]) -> Dict[str, Any]:
802
810
  return not item and not items
803
811
 
804
812
  if not (workflow_jobs := _get_workflow_jobs(events)):
805
- raise ValueError(
813
+ raise DataSourceDataError(
806
814
  'No job events found in workflow. Cannot extract data for jobs.'
807
815
  )
808
816
 
opentf/scripts/startup.py CHANGED
@@ -56,6 +56,7 @@ ENVIRONMENT_VARIABLES = {
56
56
  'HTTPS_PROXY': None,
57
57
  'KEY_SIZE': 4096,
58
58
  'NO_PROXY': None,
59
+ 'OPENTF_ALLURE_ENABLED': None,
59
60
  'OPENTF_AUTHORIZATION_MODE': None,
60
61
  'OPENTF_AUTHORIZATION_POLICY_FILE': None,
61
62
  'OPENTF_BASE_URL': None,
@@ -360,6 +361,9 @@ def start_plugins(conf: Dict[str, Any]) -> List[Any]:
360
361
  disabled = [plugin.lower() for plugin in disabled]
361
362
  else:
362
363
  disabled = []
364
+ if _get_env('OPENTF_ALLURE_ENABLED') is None:
365
+ disabled.append('allure.collector')
366
+ disabled.append('result.aggregator')
363
367
  if aggregated := conf.get('aggregated'):
364
368
  disabled += [plugin.lower() for plugin in aggregated]
365
369
  plugins = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: opentf-toolkit-nightly
3
- Version: 0.58.0.dev1131
3
+ Version: 0.58.0.dev1138
4
4
  Summary: OpenTestFactory Orchestrator Toolkit
5
5
  Home-page: https://gitlab.com/henixdevelopment/open-source/opentestfactory/python-toolkit
6
6
  Author: Martin Lafaix
@@ -1,7 +1,7 @@
1
1
  opentf/commons/__init__.py,sha256=AnnUMqwHwYnZxMhGdAwFGNbKIcr4HNVRUEfUuB2ub-c,22481
2
2
  opentf/commons/auth.py,sha256=bM2Z3kxm2Wku1lKXaRAIg37LHvXWAXIZIqjplDfN2P8,15899
3
3
  opentf/commons/config.py,sha256=dyus4K5Zdmcftc3Y9Z1YRkzA1KwiRLHoeAlg2_A49QM,7876
4
- opentf/commons/datasources.py,sha256=OcwVLPGK0iCnTgHu3RJ9C1U3AUs5LTKvyOTQZFIh7Ek,25996
4
+ opentf/commons/datasources.py,sha256=GSbjrYnZQup2B3r7T7l3C_o6R2jS13nQiu6dRitoenk,26194
5
5
  opentf/commons/expressions.py,sha256=jM_YKXVOFhvOE2aE2IuacuvxhIsOYTFs2oQkpcbWR6g,19645
6
6
  opentf/commons/pubsub.py,sha256=DVrSara5FRfNdPBwXKUkTobqGki0RPDehylTEFcJnFc,7341
7
7
  opentf/commons/schemas.py,sha256=Ub6klLnDh_O44r0aZzsspMV3sx-An0lClfim1dyASZQ,4260
@@ -52,12 +52,12 @@ opentf/schemas/opentestfactory.org/v1beta1/ServiceConfig.json,sha256=m5ZgWAKbutu
52
52
  opentf/schemas/opentestfactory.org/v1beta1/Workflow.json,sha256=QZ8mM9PhzsI9gTmwmKTWYNoRn--rtcM3L0PzgnPBfMU,15424
53
53
  opentf/schemas/opentestfactory.org/v1beta2/ServiceConfig.json,sha256=rEvK2YWL5lG94_qYgR_GnLWNsaQhaQ-2kuZdWJr5NnY,3517
54
54
  opentf/scripts/launch_java_service.sh,sha256=S0jAaCuv2sZy0Gf2NGBuPX-eD531rcM-b0fNyhmzSjw,2423
55
- opentf/scripts/startup.py,sha256=Da2zo93pBWbdRmj-wgekgLcF94rpNc3ZkbvR8R0w8XY,21279
55
+ opentf/scripts/startup.py,sha256=c5fhYUy_Nk6z-eo0kW0mG56452dcIw9mzb9trljZYZ4,21453
56
56
  opentf/toolkit/__init__.py,sha256=mYeJPZ92ulbTBItqEsZgF4nnuRh6G19QPY3Jxc92ifc,23028
57
57
  opentf/toolkit/channels.py,sha256=6xcVKHUK2FdyVKIQmPQbakngfVuQDzCcD_lInOdKpro,17171
58
58
  opentf/toolkit/core.py,sha256=6nud1vqcfjs9swZu_Z-rbvdbejtrlSjOd8eZXIF0ChE,9795
59
- opentf_toolkit_nightly-0.58.0.dev1131.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
60
- opentf_toolkit_nightly-0.58.0.dev1131.dist-info/METADATA,sha256=aazk-c5yEc5vt_AWkKLp99DHlOKrRMkeE3rzGOsBFOA,1946
61
- opentf_toolkit_nightly-0.58.0.dev1131.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
62
- opentf_toolkit_nightly-0.58.0.dev1131.dist-info/top_level.txt,sha256=_gPuE6GTT6UNXy1DjtmQSfCcZb_qYA2vWmjg7a30AGk,7
63
- opentf_toolkit_nightly-0.58.0.dev1131.dist-info/RECORD,,
59
+ opentf_toolkit_nightly-0.58.0.dev1138.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
60
+ opentf_toolkit_nightly-0.58.0.dev1138.dist-info/METADATA,sha256=VKI8fZDU3-omLpANd6xpOXT5jDre-_jNtuKXV3gl6wA,1946
61
+ opentf_toolkit_nightly-0.58.0.dev1138.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
62
+ opentf_toolkit_nightly-0.58.0.dev1138.dist-info/top_level.txt,sha256=_gPuE6GTT6UNXy1DjtmQSfCcZb_qYA2vWmjg7a30AGk,7
63
+ opentf_toolkit_nightly-0.58.0.dev1138.dist-info/RECORD,,