Skip to content

Commit

Permalink
rgw: test/multi.py add a destructive attr to tests
Browse files Browse the repository at this point in the history
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 <abhishek@suse.com>
  • Loading branch information
theanalyst committed Jul 22, 2016
1 parent aacba7f commit 637e959
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/rgw/test_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
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

Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 637e959

Please sign in to comment.