From 637e959f95094a93d30d34228853819dffeeeb8b Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Fri, 22 Jul 2016 17:56:05 +0200 Subject: [PATCH] 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 --- src/test/rgw/test_multi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') -- 2.47.3