secret_key = nopqrstuvwxyzabcdefghijklmnabcdefghijklm
#[s3 cloud]
-## to run the testcases with "cloud_transition" for transition
+## to run the testcases with "cloud_transition" for transition
## and "cloud_restore" for restore attribute.
## Note: the waiting time may have to tweaked depending on
## the I/O latency to the cloud endpoint.
config.cloud_regular_storage_class = cfg.get('s3 cloud', "storage_class")
except (configparser.NoSectionError, configparser.NoOptionError):
config.cloud_regular_storage_class = None
-
+
try:
config.read_through_restore_days = int(cfg.get('s3 cloud', "read_through_restore_days"))
except (configparser.NoSectionError, configparser.NoOptionError):
expire1_key1_str = prefix + keys[1]
verify_object(cloud_client, target_path, expire1_key1_str, data, target_sc)
-@pytest.mark.lifecycle_transition
-@pytest.mark.cloud_transition
@pytest.mark.cloud_restore
@pytest.mark.fails_on_aws
@pytest.mark.fails_on_dbstore
response = client.head_object(Bucket=bucket, Key=key)
assert response['ContentLength'] == 0
-@pytest.mark.lifecycle_transition
-@pytest.mark.cloud_transition
@pytest.mark.cloud_restore
@pytest.mark.fails_on_aws
@pytest.mark.fails_on_dbstore
response = client.head_object(Bucket=bucket, Key=key)
assert response['ContentLength'] == len(data)
-@pytest.mark.lifecycle_transition
-@pytest.mark.cloud_transition
@pytest.mark.cloud_restore
@pytest.mark.fails_on_aws
@pytest.mark.fails_on_dbstore