You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #737 from cderici/charmhub-info-revisit
#737
#### Description
This PR revisits the `info` method in `charmhub.py`, allowing users to get information for a charm (like `juju info juju-qa-test`) in pylibjuju using either old or new clients. For old clients it calls `Info` from the `Charmhub` facade, and for the new clients it directly calls the charmhub api and processes the result. The channel-map representations are different between the `2.9` and `3.0` clients, this change introduces extra effort to get them as close as possible.
Fixes#734
#### QA Steps
The existing charmhub tests are updated, and the ones that we used to skip (due to charmhub facade not existing anymore) are re-activated since we have the working code now (only the `info` ones). QA should be done for both `2.9` and `3.0` clients. So get yourself `juju 2.9` and `juju 3.0` and bootstrap two controllers and run the relevant tests:
```
tox -e integration -- tests/integration/test_charmhub.py::test_info
```
```
tox -e integration -- tests/integration/test_charmhub.py::test_info_with_channel
```
```
tox -e integration -- tests/integration/test_charmhub.py::test_info_not_found
```
You may also play with the `examples/charmhub_info.py` with different controllers if you wanna be extra pedantic.
0 commit comments