canonical / charm-duplicity

A charm that provides functionality for both manual and automatic backups for a deployed application
0 stars 3 forks source link

Zaza tests on openstack need python-openstackclient #10

Closed jneo8 closed 11 months ago

jneo8 commented 11 months ago

Since b46f13ef113e690493364dabc87821699626d8e6 in zaza, if running tests on an OpenStack cloud provider, each bundle test concludes with a cleanup routine that needs the python-openstackclient package in requirements.txt for the tox environment, plus the OS_ environment vars exported/passed through such that the Openstack client actually works. If these are not set, the test fails on the first bundle cleanup and does not continue to the remaining bundles.


Imported from Launchpad using lp2gh.

jneo8 commented 11 months ago

(by xavpaice) Resolution:

Add to requirements.txt:

python-openstackclient

Add to tox.ini under passenv =:

OS_REGION_NAME OS_AUTH_VERSION OS_AUTH_URL OS_PROJECT_DOMAIN_NAME OS_USERNAME OS_PASSWORD OS_PROJECT_ID OS_USER_DOMAIN_NAME OS_PROJECT_NAME OS_IDENTITY_API_VERSION

Prior to running any test: source a valid novarc.

jneo8 commented 11 months ago

(by rgildein) Should this be resolved in zaza? There is bug in zaza 1, and I think it make much more sense to update it there instead of each charm.


jneo8 commented 11 months ago

(by rgildein) This was fixed by Xav in https://code.launchpad.net/~xavpaice/charm-duplicity/+git/charm-duplicity/+merge/401661.

jneo8 commented 11 months ago

(by rgildein) This was fixed by this commit https://git.launchpad.net/charm-fstab-config/commit/src/tests/functional/requirements.txt?id=8e787e7a8b72ce113f6e97eab7f5cf2177729229

jneo8 commented 11 months ago

(by rgildein) released in 22.04

jneo8 commented 11 months ago

(by rgildein) released in 22.04

jneo8 commented 11 months ago

(by rgildein) released in 22.08

jneo8 commented 11 months ago

(by rgildein) This was fixed and released in 23.01