system-test: enable faketime optionally per test

This commit is contained in:
André Roth
2025-06-08 20:55:23 +02:00
parent 601c8e9d52
commit 1566e193f6
4 changed files with 13 additions and 3 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ class S3Test(BaseTest):
s3Overrides = {}
def fixture_available(self):
return super(S3Test, self).fixture_available() and s3_conn is not None
return super(S3Test, self).fixture_available() and \
'AWS_SECRET_ACCESS_KEY' in os.environ and 'AWS_ACCESS_KEY_ID' in os.environ and \
os.environ['AWS_SECRET_ACCESS_KEY'] != "" and os.environ['AWS_ACCESS_KEY_ID'] != ""
def prepare(self):
self.bucket_name = "aptly-sys-test-" + str(uuid.uuid1())