Hello Team,
In my integration tests, I'm not able to deploy a bundle using ops_test.model.deploy as shown in the snippet below:
with ops_test.model_context(COS_MODEL_NAME):
await ops_test.model.deploy( # type: ignore[union-attr]
entity_url="https://charmhub.io/cos-lite",
trust=True,
)
The error I'm getting is:
File "/actions-runner/_work/sdcore-tests/sdcore-tests/tests/integration/fixtures.py", line 90, in deploy_cos_lite
await ops_test.model.deploy( # type: ignore[union-attr]
File "/actions-runner/_work/sdcore-tests/sdcore-tests/.tox/integration/lib/python3.10/site-packages/juju/model.py", line 1748, in deploy
await handler.fetch_plan(url, charm_origin, overlays=overlays)
File "/actions-runner/_work/sdcore-tests/sdcore-tests/.tox/integration/lib/python3.10/site-packages/juju/bundle.py", line 302, in fetch_plan
raise JujuError(self.plan.errors)
juju.errors.JujuError: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '']
My env is:
- Juju 3.1.6
- Python Juju lib 3.2.2
- pytest-operator 0.29.0
- Microk8s 1.27.5 (1.27-strict/stable)
Workaround is of course running deployment using ops_test.run, but I'd rather use a proper way to deploy bundles.
BR,
Bartek
Hello Team,
In my integration tests, I'm not able to deploy a bundle using
ops_test.model.deployas shown in the snippet below:The error I'm getting is:
My env is:
Workaround is of course running deployment using
ops_test.run, but I'd rather use a proper way to deploy bundles.BR,
Bartek