openstack-charmers / zaza

A Python3-only functional test framework for Charms
Apache License 2.0
10 stars 46 forks source link

Support credential selection #639

Closed jneo8 closed 7 months ago

jneo8 commented 8 months ago

Now we have cloud and region selection. https://zaza.readthedocs.io/en/latest/runningcharmtests.html#environment-variables

But in case we only have credential on the controller. We are not able to choose that credential since zaza only support using local credential.

And python-libjuju seems support credential_name argument. https://github.com/juju/python-libjuju/blob/2581b0ced1df6201c6b7fd8cc0b20dcfa9d97c51/juju/controller.py#L304

I think it's really nice to have feature in zaza.

The implementation should be similar to https://github.com/openstack-charmers/zaza/pull/574/files#diff-c8ceddbb41bd8c95c10187ec31c7280068725f0faad8a38b3fef21fb75e0fbb5