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
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)