From: Abhishek Lekshmanan Date: Fri, 22 Jul 2016 15:56:05 +0000 (+0200) Subject: rgw: test/multi.py add a destructive attr to tests X-Git-Tag: ses5-milestone5~302^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10401%2Fhead;p=ceph.git rgw: test/multi.py add a destructive attr to tests Since the `test_zonegroup_remove` actually destroys a zonegroup, we could just filter this out and run the suite as `nosetests -a !destructive ../path/to/test-multi.py` for provisioning a multisite mstart cluster. Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/test/rgw/test_multi.py b/src/test/rgw/test_multi.py index 698c367601b..bc936731807 100644 --- a/src/test/rgw/test_multi.py +++ b/src/test/rgw/test_multi.py @@ -16,6 +16,11 @@ import boto.s3.connection import inspect from nose.tools import eq_ as eq +from nose.plugins.attrib import attr + +# test-suite for rgw multisite, the last test destroys a zone, +# so in order to use this as a dev cluster, do +# $nosetests -a '!destructive' /path/to/test_multi.py log_level = 20 @@ -788,7 +793,7 @@ def test_multi_period_incremental_sync(): check_bucket_eq(source_zone, target_zone, bucket) -# TODO: test this in isolation, so it doesn't have side effects on other tests +@attr('destructive') def test_zonegroup_remove(): z1 = realm.get_zone('us-1')