]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: add credentials to zone 'remove' in test_zonegroup_remove() 28332/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 28 Nov 2018 18:18:05 +0000 (13:18 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 30 May 2019 20:55:18 +0000 (16:55 -0400)
zone credentials are required to 'period update --commit' from
--rgw-zone remove

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Conflicts:
src/test/rgw/rgw_multi/tests.py
(cherry picked from commit 56021eab9584f10fa43053621cce93b623c36265)

src/test/rgw/rgw_multi/tests.py

index 7d97c67cd1cdfa9a0e482944f057cd0aa8e67a1a..97f2409267cfaad3061802a76f30e764e94e9b76 100644 (file)
@@ -22,7 +22,7 @@ from nose.tools import eq_ as eq
 from nose.plugins.attrib import attr
 from nose.plugins.skip import SkipTest
 
-from .multisite import Zone, ZoneGroup
+from .multisite import Zone, ZoneGroup, Credentials
 
 from .conn import get_gateway_connection
 
@@ -951,9 +951,13 @@ def test_zonegroup_remove():
     z1, z2 = zonegroup.zones[0:2]
     c1, c2 = (z1.cluster, z2.cluster)
 
+    # get admin credentials out of existing zone
+    system_key = z1.data['system_key']
+    admin_creds = Credentials(system_key['access_key'], system_key['secret_key'])
+
     # create a new zone in zonegroup on c2 and commit
     zone = Zone('remove', zonegroup, c2)
-    zone.create(c2)
+    zone.create(c2, admin_creds.credential_args())
     zonegroup.zones.append(zone)
     zonegroup.period.update(zone, commit=True)