|
23 | 23 | from riak.tests.test_2i import TwoITests |
24 | 24 | from riak.tests.test_btypes import BucketTypeTests |
25 | 25 | from riak.tests.test_security import SecurityTests |
| 26 | +from riak.tests.test_consistency import StrongConsistencyTests |
26 | 27 |
|
27 | 28 | from riak.tests import HOST, PB_HOST, PB_PORT, HTTP_HOST, HTTP_PORT, \ |
28 | 29 | HAVE_PROTO, DUMMY_HTTP_PORT, DUMMY_PB_PORT, \ |
29 | | - SKIP_SEARCH, RUN_YZ, SECURITY_CREDS |
| 30 | + SKIP_SEARCH, RUN_YZ, SECURITY_CREDS, RUN_CONSISTENCY |
30 | 31 |
|
31 | 32 | testrun_search_bucket = None |
32 | 33 | testrun_props_bucket = None |
33 | 34 | testrun_sibs_bucket = None |
34 | 35 | testrun_yz_bucket = None |
35 | 36 | testrun_mr_btype = None |
36 | 37 | testrun_mr_bucket = None |
| 38 | +testrun_consist_bucket = None |
37 | 39 |
|
38 | 40 |
|
39 | 41 | def setUpModule(): |
40 | 42 | global testrun_search_bucket, testrun_props_bucket, \ |
41 | 43 | testrun_sibs_bucket, testrun_yz_bucket, testrun_mr_btype, \ |
42 | | - testrun_mr_bucket |
| 44 | + testrun_mr_bucket, testrun_consist_bucket |
43 | 45 |
|
44 | 46 | c = RiakClient(protocol='pbc', host=PB_HOST, http_port=HTTP_PORT, |
45 | 47 | pb_port=PB_PORT, credentials=SECURITY_CREDS) |
46 | 48 |
|
47 | 49 | testrun_props_bucket = 'propsbucket' |
48 | 50 | testrun_sibs_bucket = 'sibsbucket' |
49 | 51 | c.bucket(testrun_sibs_bucket).allow_mult = True |
| 52 | + testrun_consist_bucket = 'pytest-consistent' |
50 | 53 |
|
51 | 54 | if (not SKIP_SEARCH and not RUN_YZ): |
52 | 55 | testrun_search_bucket = 'searchbucket' |
@@ -82,7 +85,7 @@ def setUpModule(): |
82 | 85 |
|
83 | 86 | def tearDownModule(): |
84 | 87 | global testrun_search_bucket, testrun_props_bucket, \ |
85 | | - testrun_sibs_bucket, testrun_yz_bucket |
| 88 | + testrun_sibs_bucket, testrun_yz_bucket, testrun_consist_bucket |
86 | 89 |
|
87 | 90 | c = RiakClient(protocol='http', host=HTTP_HOST, http_port=HTTP_PORT, |
88 | 91 | pb_port=PB_PORT, credentials=SECURITY_CREDS) |
@@ -153,6 +156,7 @@ def setUp(self): |
153 | 156 | self.mr_btype = testrun_mr_btype |
154 | 157 | self.mr_bucket = testrun_mr_bucket |
155 | 158 | self.credentials = SECURITY_CREDS |
| 159 | + self.consistent_bucket = testrun_consist_bucket |
156 | 160 |
|
157 | 161 | self.client = self.create_client() |
158 | 162 |
|
@@ -314,6 +318,7 @@ class RiakPbcTransportTestCase(BasicKVTests, |
314 | 318 | CounterTests, |
315 | 319 | BucketTypeTests, |
316 | 320 | SecurityTests, |
| 321 | + StrongConsistencyTests, |
317 | 322 | BaseTestCase, |
318 | 323 | unittest.TestCase): |
319 | 324 |
|
@@ -348,6 +353,7 @@ class RiakHttpTransportTestCase(BasicKVTests, |
348 | 353 | CounterTests, |
349 | 354 | BucketTypeTests, |
350 | 355 | SecurityTests, |
| 356 | + StrongConsistencyTests, |
351 | 357 | BaseTestCase, |
352 | 358 | unittest.TestCase): |
353 | 359 |
|
|
0 commit comments