Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #940 from cderici/parse-nested-assumes
#940 #### Description This adds support for nested `assumes` expression. Without this change, pylibjuju could only parse 1-level of `assumes`, with this change, we can support assumes expression that look like: ``` assumes: - juju - any-of: - all-of: - juju >= 2.9 - juju < 3 - all-of: - juju >= 3.1 - juju < 4 ``` Fixes #938 #### QA Steps Unfortunately it's not trivial to write an integration test for this, as the code that's been changed is part of the facade api. So we'll use the `mysql-k8s` charm that's been used in #938. ``` $ juju version 2.9.x $ juju bootstrap microk8s micro28 $ juju add-model assumes-test ``` ```python $ python -m asyncio asyncio REPL 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux Use "await" directly instead of "asyncio.run()". Type "help", "copyright", "credits" or "license" for more information. >>> import asyncio >>> from juju import model;m=model.Model();await m.connect();await m.deploy("mysql-k8s", channel="8.0/edge", trust=True) <Application entity_id="mysql-k8s"> >>> exiting asyncio REPL... ``` #### Notes & Discussion JUJU-4562
- Loading branch information