]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: add credentials to zone 'remove' in test_zonegroup_remove() 27948/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 28 Nov 2018 18:18:05 +0000 (13:18 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 3 May 2019 12:17:17 +0000 (14:17 +0200)
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 779b9524a99e48a99878779192a223b9ac49785e..338ce96fa6523cd7f2ccbf8dabf3cad2f7ab7314 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
 from .tools import assert_raises
@@ -895,9 +895,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)