azimuth-robotframework 0.2.6__tar.gz → 0.2.8__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.
Files changed (26) hide show
  1. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/clusters.py +1 -0
  2. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/kubernetes_apps.py +1 -0
  3. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/kubernetes_clusters.py +1 -0
  4. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/util.py +7 -2
  5. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/zenith.py +2 -2
  6. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/PKG-INFO +1 -1
  7. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/azimuth_robotframework.egg-info/PKG-INFO +1 -1
  8. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/.github/workflows/pypi-publish.yaml +0 -0
  9. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/.gitignore +0 -0
  10. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/__init__.py +0 -0
  11. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/cluster_types.py +0 -0
  12. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/external_ips.py +0 -0
  13. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/kubernetes_app_templates.py +0 -0
  14. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/kubernetes_cluster_templates.py +0 -0
  15. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/main.py +0 -0
  16. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/Azimuth/sizes.py +0 -0
  17. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/LICENSE +0 -0
  18. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/README.md +0 -0
  19. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/azimuth_robotframework.egg-info/SOURCES.txt +0 -0
  20. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/azimuth_robotframework.egg-info/dependency_links.txt +0 -0
  21. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/azimuth_robotframework.egg-info/not-zip-safe +0 -0
  22. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/azimuth_robotframework.egg-info/requires.txt +0 -0
  23. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/azimuth_robotframework.egg-info/top_level.txt +0 -0
  24. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/pyproject.toml +0 -0
  25. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/setup.cfg +0 -0
  26. {azimuth-robotframework-0.2.6 → azimuth-robotframework-0.2.8}/setup.py +0 -0
@@ -79,6 +79,7 @@ class ClusterKeywords:
79
79
  "status",
80
80
  target_status,
81
81
  {"CONFIGURING", "DELETING"},
82
+ "error_message",
82
83
  interval
83
84
  )
84
85
 
@@ -81,6 +81,7 @@ class KubernetesAppKeywords:
81
81
  "status",
82
82
  target_status,
83
83
  {"Pending", "Preparing", "Installing", "Upgrading", "Uninstalling", "Unknown"},
84
+ "error_message",
84
85
  interval
85
86
  )
86
87
 
@@ -270,6 +270,7 @@ class KubernetesClusterKeywords:
270
270
  "status",
271
271
  target_status,
272
272
  {"Reconciling", "Upgrading", "Deleting", "Unhealthy", "Unknown"},
273
+ "error_message",
273
274
  interval
274
275
  )
275
276
 
@@ -27,7 +27,8 @@ def wait_for_resource_property(
27
27
  property: str,
28
28
  target_value: t.Any,
29
29
  working_values: t.Collection[t.Any],
30
- interval: int
30
+ error_message_property: str,
31
+ interval: int,
31
32
  ) -> t.Dict[str, t.Any]:
32
33
  """
33
34
  Waits for the specified property on the instance with the given ID to reach a target
@@ -40,7 +41,11 @@ def wait_for_resource_property(
40
41
  elif property_value in working_values:
41
42
  return False
42
43
  else:
43
- raise AssertionError(f"unexpected {property} - {property_value}")
44
+ message = f"unexpected {property} - {property_value}"
45
+ error_message = getattr(instance, error_message_property, None)
46
+ if error_message:
47
+ message = f"{message} - {error_message}"
48
+ raise AssertionError(message)
44
49
  return wait_for_resource(resource, id, predicate, interval)
45
50
 
46
51
 
@@ -127,7 +127,7 @@ class ZenithKeywords:
127
127
  # Use the scheme from the Azimuth base URL
128
128
  scheme = self._ctx.client.base_url.scheme
129
129
  zenith_url = f"{scheme}://{fqdn}?kc_idp_hint=azimuth"
130
- # Wait for the Zenith URL to return something other than a 404, 502 or 503
130
+ # Wait for the Zenith URL to return something other than a 404, 500, 502, 503 or 504
131
131
  # These statuses could occur while the Zenith tunnel is establishing
132
132
  while True:
133
133
  try:
@@ -139,7 +139,7 @@ class ZenithKeywords:
139
139
  if response.status_code < 400:
140
140
  # Not an error - we can exit!
141
141
  break
142
- elif response.status_code not in [404, 502, 503, 504]:
142
+ elif response.status_code not in [404, 500, 502, 503, 504]:
143
143
  # Not an error we expect to see during Zenith service startup - fail
144
144
  response.raise_for_status()
145
145
  time.sleep(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: azimuth-robotframework
3
- Version: 0.2.6
3
+ Version: 0.2.8
4
4
  Summary: Robot framework library for interacting with Azimuth.
5
5
  Home-page: https://github.com/stackhpc/azimuth-robotframework
6
6
  Author: Matt Pryor
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: azimuth-robotframework
3
- Version: 0.2.6
3
+ Version: 0.2.8
4
4
  Summary: Robot framework library for interacting with Azimuth.
5
5
  Home-page: https://github.com/stackhpc/azimuth-robotframework
6
6
  Author: Matt Pryor