Commit Graph

5 Commits

Author SHA1 Message Date
James Page ecb47bfa4f Fix lint 2020-07-03 10:59:39 +01:00
James Page 29849225c2 Pass deployment CA cert to requests
Ensure that the CA cert for the deployment is passed to
requests when retrieving stream data from swift.

Refresh the product catalog entry on each attempt to retrieve
stream data as the URL will update once data was been written
to the swift endpoint in the deployment.

Retry on KeyError and drop number of retry attempts

Add a log message to detail URL being used for product-stream data

Log return data from streams endpoint

Fixup endpoint resolution
2020-07-03 10:19:22 +01:00
James Page 931fcb4aa7 Add setup for glance-simplestreams-sync
Use action to complete initial image sync for the gss charm.

This avoids races where the images end up in the wrong locations
and allows the tests to actually know when images should be
discoverable.

Update tests to wait for at least four images (20.04 is synced
by default).
2020-06-12 13:47:38 +01:00
David Ames 14a6f06586 Fix glance simplestreams sync test races
We expect at least three images. Avoid various race conditions by
retrying using tenacity.
2020-04-22 17:32:33 +00:00
Joe Guo 63e9b4cf1b Migrate glance-simplestreams-sync tests from Amulet to Zaza
Migrate tests from Amulet to Zaza in:

    charm-glance-simplestreams-sync/tests/basic_deployment.py

Signed-off-by: Joe Guo <guoqiao@gmail.com>
2019-09-10 22:38:00 +12:00