Tolerate existing gabbiliveceph archive policy
current tests implementation is not friendly to test re-runs:
as archive policy may fail to delete when there are still samples
stored for it (and the test expects it, see the last xfail: true in
the aodh-gnocchi-threshold-alarm.yaml), next test rerun may fail
right on the initial setup as it receives 409 Conflict instead of 201
on attempt to create an archive policy that already exists.
Solve this by tolerating 409 in the archive policy creation step,
and moving checks for fields of created (or existing) policy to an
extra GET /v1/archive_policy/<name> step.
Related-prod: PROD-34394
Change-Id: I978937d89b2e886e2ef690661bc00a730db94c92
(cherry picked from commit 421cd3fd46671ef53a59148a2d7b903aa2b6393c)
1 file changed