Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabonte-rh committed Jun 7, 2024
1 parent 86b2590 commit ed4ec7a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/interop/test_validate_hub_site_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,20 @@ def test_validate_acm_self_registration_managed_clusters(openshift_dyn_client):
logger.info("Check ACM self registration for edge site")

kubefile = os.getenv("KUBECONFIG_EDGE")
with open(kubefile) as stream:

logger.info(f"edge file : {kubefile}")

tw = os.getenv("TEFLO_WORKSPACE")
kh = os.getenv("KUBECONFIG_HUB")

logger.info(f"teflo ws : {tw}")
logger.info(f"hub file : {kh}")

kubefile_exp = os.path.expandvars(kubefile)

logger.info(f"edge file exp : {kubefile_exp}")

with open(kubefile_exp) as stream:
try:
out = yaml.safe_load(stream)
site_name = out["clusters"][0]["name"]
Expand Down

0 comments on commit ed4ec7a

Please sign in to comment.