self.zone = zone
self.config_bucket = None
self.rtests = []
- self.do_staging = False
+ self.do_preparing = False
self.do_check = False
for step in suite_step.split(','):
- if step == 'stage' or step == 'staging':
- self.do_staging = True
+ if step == 'prepare':
+ self.do_preparing = True
self.config_bucket = self.zone.create_raw_bucket(self.get_bucket_name('conf'))
if step == 'check' or step == 'test':
self.do_check = True
s = k.get_contents_as_string()
test.from_json(s)
- def is_staging(self):
- return self.do_staging
+ def is_preparing(self):
+ return self.do_preparing
def is_checking(self):
return self.do_check
def init(self):
pass
- def stage(self):
+ def prepare(self):
pass
def check(self):
def test(self):
suite.register_test(self)
- if suite.is_staging():
- self.stage()
+ if suite.is_preparing():
+ self.prepare()
self.save()
if suite.is_checking():
conn[k] = RGWConnection(u.access_key, u.secret_key, rgw_conf.host, dict_find(rgw_conf, 'port'), dict_find(rgw_conf, 'is_secure'))
self.zone = RZone(conn)
- self.suite = RSuite('ragweed', self.bucket_prefix, self.zone, os.environ['RAGWEED_RUN'])
+ self.suite = RSuite('ragweed', self.bucket_prefix, self.zone, os.environ['RAGWEED_STAGES'])
try:
self.ceph_conf = self.config.rados.ceph_conf
def gen_rand_string(size, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
-# stage:
+# prepare:
# create objects in multiple sizes, with various names
# check:
# verify data correctness
# verify that objects were written to the expected data pool
class r_test_small_obj_data(RTest):
- def stage(self):
+ def prepare(self):
self.r_obj_names = [ 'obj', '_', '__', '_ _' ]
self.r_bucket_sizes = {}
-# stage:
+# prepare:
# init, upload, and complete a multipart object
# check:
# verify data correctness
self.obj_size = 18 * 1024 * 1024
self.part_size = 5 * 1024 * 1024
- def stage(self):
+ def prepare(self):
rb = self.create_bucket()
self.r_obj = 'foo'
validate_obj(rb, self.r_obj, self.r_crc)
-# stage:
+# prepare:
# init, upload multipart object
# check:
# complete multipart
self.obj_size = 18 * 1024 * 1024
self.part_size = 5 * 1024 * 1024
- def stage(self):
+ def prepare(self):
rb = self.create_bucket()
self.r_obj = 'foo'
validate_obj(rb, self.r_obj, crc)
-# stage:
+# prepare:
# init, upload multipart object
# check:
# complete multipart
self.obj_size = 18 * 1024 * 1024
self.part_size = 5 * 1024 * 1024
- def stage(self):
+ def prepare(self):
rb = self.create_bucket()
self.r_obj = 'foo'