Commit Graph

18 Commits

Author SHA1 Message Date
Corey Bryant 0598ecfc9b Add tenacity retries around ring sync check
This fixes a race when checking if object ring is synced.
2023-10-11 20:37:10 +00:00
Felipe Reyes 0ca305f6c8 swift-proxy: wait for model to settle after running action
Let the units run all the hooks before attempting to check if the ring
is synced, because the action set-weight triggers the hook
swift-storage-relation-changed in the swift-storage units which it's the
one in charge of getting the new ring data.
2023-09-27 16:51:43 -03:00
James Page 2bb4271530 Merge pull request #328 from afreiberger/bug/1882250
Add functional testing of set-weight action and resulting replication
2022-01-11 09:18:43 +00:00
Bartlomiej Poniecki-Klotz 29799dfee3 Unit test comment fix. 2021-11-10 12:18:58 +01:00
Bartlomiej Poniecki-Klotz 873eb80264 Swift proxy remove devices test added.
Functional test for multi zone deployment was added.
The functional test removes the devices in region1 zone3 then uploads a new object. The check is to return object header data.
2021-10-29 15:19:51 +02:00
Bartlomiej Poniecki-Klotz da896ce00e Swift proxy remove devices test added 2021-10-22 12:41:29 +02:00
Aurelien Lourot 23c3dde105 Fix SwiftStorageTests.test_901_pause_resume 2020-09-02 13:40:08 +02:00
Aurelien Lourot b38c270036 Adapt list of swift services on focal-victoria 2020-09-02 11:51:04 +02:00
Drew Freiberger 35e4079ff6 Add functional testing of remove-devices action
Refactored some swift-proxy ring query utilities for new tests
2020-06-19 11:07:26 -05:00
Drew Freiberger e2962674f3 Add functional testing of set-weight action and resulting replication
Related-Bug: #1882250
2020-06-18 22:25:18 -05:00
Drew Freiberger 1f2b4890ef Fix racy swift global replication testing
During some runs of functional testing, swift global replication would
only have 2 copies rather than 3 of the object that was just written.

This patch attempts to resolve the race condition and also adds ordering
to more recently added tests.

Closes-Bug: #1882247
2020-06-18 16:19:13 -05:00
Frode Nordahl 1ece576981 radosgw: Pass local CA cert to client when relevant 2020-03-23 10:58:23 +01:00
Frode Nordahl 00ad21f42f swift: Add S3 API test 2020-03-16 13:39:07 +01:00
Liam Young f1092b0811 Doc string fixes 2019-12-04 10:24:04 +00:00
Liam Young d2904e228d Add Swift Global Replication Tests 2019-11-29 11:47:43 +00:00
Liam Young 99b53a2a76 Lint fixes 2019-10-31 15:52:37 +00:00
Liam Young 8178607ba9 Refactor swift tests and add storage
The SwiftImageCreateTest was running a pause/resume test for
swift proxy which does not make sense. So, break the proxy specific
tests into their own class and add a class for storage. A
subsequent change to the swift-proxy charm will be needed to add
the new proxy test class to the tests.yaml.
2019-10-31 15:37:56 +00:00
Liam Young 5c68401d96 Add swift tests (#2) 2019-05-13 13:36:48 +02:00