Skip to content

Commit

Permalink
Set s3rver default credentials in testing
Browse files Browse the repository at this point in the history
If we want to be able to bump s3rver to a newer
version we must use the default credentials since
that "S3" user can use signing.
  • Loading branch information
tobias-urdin committed Jul 4, 2021
1 parent 0747233 commit c41922e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gnocchi/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ def setUp(self):
self.conf.set_override('s3_endpoint_url',
os.getenv("GNOCCHI_STORAGE_HTTP_URL"),
group="storage")
self.conf.set_override('s3_access_key_id', "gnocchi",
self.conf.set_override('s3_access_key_id', "S3RVER",
group="storage")
self.conf.set_override('s3_secret_access_key', "anythingworks",
self.conf.set_override('s3_secret_access_key', "S3RVER",
group="storage")

storage_driver = os.getenv("GNOCCHI_TEST_STORAGE_DRIVER", "file")
Expand Down
4 changes: 2 additions & 2 deletions gnocchi/tests/functional/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ def start_fixture(self):
conf.set_override('s3_endpoint_url',
os.getenv("GNOCCHI_STORAGE_HTTP_URL"),
group="storage")
conf.set_override('s3_access_key_id', "gnocchi", group="storage")
conf.set_override('s3_secret_access_key', "anythingworks",
conf.set_override('s3_access_key_id', "S3RVER", group="storage")
conf.set_override('s3_secret_access_key', "S3RVER",
group="storage")
conf.set_override("s3_bucket_prefix", str(uuid.uuid4())[:26],
"storage")
Expand Down

0 comments on commit c41922e

Please sign in to comment.