Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use localstack for S3 integration tests #4789

Merged
merged 7 commits into from
Mar 13, 2024

Conversation

dantb
Copy link
Contributor

@dantb dantb commented Mar 7, 2024

I commented out some tests using testcontainers-scala with localstack. They'll be useful when we ditch Minio completely

FYI you can also run localstack separately with

docker run \
  --rm -it \
  -p 4566:4566 \
  -p 4510-4559:4510-4559 \
  localstack/localstack

then hit it with awslocal (wrapper around the aws CLI) or use the desktop application to browse AWS resources

@dantb dantb changed the title Use localstack for integration tests Use localstack for S3 integration tests Mar 7, 2024
private val logoKey = "some/path/to/nexus-logo.png"

val s3Endpoint: String = s"http://delta.bbp:9000"
val s3BucketEndpoint: String = s"http://$bucket.delta.bbp:9000"
val s3Endpoint: String = "http://s3.localhost.localstack.cloud:4566"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the suffix be configured ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which suffix sorry?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

localstack.cloud
It is just a detail though

build.sbt Outdated Show resolved Hide resolved
@imsdu imsdu merged commit 0e4dc40 into BlueBrain:master Mar 13, 2024
8 of 9 checks passed
@dantb dantb deleted the localstack-setup-S3 branch March 13, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants