Skip to content

Commit 406f1d8

Browse files
committed
Update integration test to remove metadata
1 parent 2e56353 commit 406f1d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/test_charm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
logger = logging.getLogger(__name__)
1717

18-
METADATA = yaml.safe_load(Path("./metadata.yaml").read_text(encoding="utf-8"))
19-
APP_NAME = METADATA["name"]
18+
CHARMCRAFT_DATA = yaml.safe_load(Path("./charmcraft.yaml").read_text(encoding="utf-8"))
19+
APP_NAME = CHARMCRAFT_DATA["name"]
2020

2121

2222
@pytest.mark.abort_on_fail
@@ -27,7 +27,7 @@ async def test_build_and_deploy(ops_test: OpsTest, pytestconfig: pytest.Config):
2727
"""
2828
# Deploy the charm and wait for active/idle status
2929
charm = pytestconfig.getoption("--charm-file")
30-
resources = {"httpbin-image": METADATA["resources"]["httpbin-image"]["upstream-source"]}
30+
resources = {"httpbin-image": CHARMCRAFT_DATA["resources"]["httpbin-image"]["upstream-source"]}
3131
assert ops_test.model
3232
await asyncio.gather(
3333
ops_test.model.deploy(

0 commit comments

Comments
 (0)