-
Notifications
You must be signed in to change notification settings - Fork 23
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
Set up testcontainers #60
Comments
I have some implementation idea to proceed with that task.
@carlspring @steve-todorov |
Hi @mslowiak , I don't think the idea with the property would be the best one. We should use Maven profiles for this instead. You might want to run just the MinIO tests locally while you're developing something, but then again, when things are executed on the CI server, both profiles would be enabled. Also, @steve-todorov is working on #184, which would be somewhat related, so feel free to have a look at it. |
@mslowiak I've done something similar as part of #183 (PR-184). I've created two profiles I haven't looked into test containers that much, but maybe we could use a singleton instance which starts at the very beginning and we just expose those credentials as env variables? |
Task Description
We should consider setting up our tests to use
testcontainers
.Tasks
The following tasks will need to be carried out:
Investigate, if we can somehow have parameterized (JUnit 5) integration tests that can work with both- We'll be using JUnit Tags for now (see Use tags instead of suites to separate tests #183)testcontainers
and Amazon.testcontainers
so it starts the container and tests when-Pit-minio
is used.testcontainer
and use it in@MinioIntegrationTest
with@ExtendWith
in tests that can run against MinIO. An exampe of how to do this can be found here.URI
when creating the filesystem depending on therunning.it
property (i.e. for S3s3://s3.amazonaws.com/
ands3://localhost:9000/
for MinIO). Perhaps it would be a good idea to add this into theBaseIntegrationTest
as a method which generates the appropriate URI for you.testcontainers
via@MinioIntegrationTest
where this is possible. Some integration tests can be ran against S3 and MinIO since the APIs are compatible. If that is possible, then the test can be annotated with both@S3IntegrationTest
and@MinioIntegrationTest
.Task Relationships
This task:
Help
The text was updated successfully, but these errors were encountered: