When creating Openstack VMs the user has to specify the image it wants
to use. sstream-mirror-glance adds a date to the image name, so they
always have to recheck which is the current latest image.
This commit tests the usage of the `set_latest_property` configuration.
When --set-latest-property is given sstream-mirror-glance will set the
recently synced image with the `latest=true` property and then remove
the `latest` property from all the os_version/architecture matching
images.
Closes-bug: LP #1933130
The simplestreams service relies on the Keystone Service catalog.
To help debug any issues occurring during test execution, log the
contents of the Keystone service catalog in the event of failure.
Related-Bug: #1930654
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
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).