From f3f82031f001eea97798b092256bc35abb67a94a Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Thu, 22 Feb 2024 09:22:56 -0500 Subject: [PATCH] fix: template integration tests (#1540) see: #1468 --- .../init-kubernetes/tests/integration/test_charm.py.j2 | 2 +- .../templates/init-machine/tests/integration/test_charm.py.j2 | 2 +- .../templates/init-simple/tests/integration/test_charm.py.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 b/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 index dcd318ac3..41ce29c83 100644 --- a/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 +++ b/charmcraft/templates/init-kubernetes/tests/integration/test_charm.py.j2 @@ -12,7 +12,7 @@ from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__) -METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) +METADATA = yaml.safe_load(Path("./charmcraft.yaml").read_text()) APP_NAME = METADATA["name"] diff --git a/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 b/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 index f1f188aad..fb3e4575c 100644 --- a/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 +++ b/charmcraft/templates/init-machine/tests/integration/test_charm.py.j2 @@ -12,7 +12,7 @@ from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__) -METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) +METADATA = yaml.safe_load(Path("./charmcraft.yaml").read_text()) APP_NAME = METADATA["name"] diff --git a/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 b/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 index 4ebf9a613..65033d3a0 100644 --- a/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 +++ b/charmcraft/templates/init-simple/tests/integration/test_charm.py.j2 @@ -12,7 +12,7 @@ from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__) -METADATA = yaml.safe_load(Path("./metadata.yaml").read_text()) +METADATA = yaml.safe_load(Path("./charmcraft.yaml").read_text()) APP_NAME = METADATA["name"]