Allow using LocalStackContainer with AWS SDK v2 #1442#2579
Merged
rnorth merged 5 commits intotestcontainers:masterfrom Apr 23, 2020
Merged
Allow using LocalStackContainer with AWS SDK v2 #1442#2579rnorth merged 5 commits intotestcontainers:masterfrom
rnorth merged 5 commits intotestcontainers:masterfrom
Conversation
bsideup
reviewed
Apr 16, 2020
...s/localstack/src/main/java/org/testcontainers/containers/localstack/LocalStackContainer.java
Outdated
Show resolved
Hide resolved
Member
|
@musketyr do you know if AWS SDK 1 and 2 can co-exist on the same classpath? |
Contributor
Author
bsideup
reviewed
Apr 19, 2020
| final software.amazon.awssdk.services.s3.model.Bucket bucket = buckets.get(0); | ||
|
|
||
| assertEquals("The created bucket has the right name", "foo", bucket.name()); | ||
| assertEquals("The created bucket has the right name", "foo", bucket.name()); |
Member
There was a problem hiding this comment.
Suggested change
| assertEquals("The created bucket has the right name", "foo", bucket.name()); | |
| assertEquals("The created bucket has the right name", "foo", bucket.name()); |
duplicate
bsideup
reviewed
Apr 19, 2020
| } | ||
|
|
||
| @Test | ||
| public void s3TestOverBridgeNetworkV2() { |
Member
There was a problem hiding this comment.
- I think test's name is a bit too specific
- could you please reduce the test to the minimum, so that it only tests that SDK v2 works fine?
rnorth
approved these changes
Apr 23, 2020
Member
|
LGTM - will merge. Thanks for the contribution @musketyr! |
quincy
pushed a commit
to quincy/testcontainers-java
that referenced
this pull request
May 28, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR exposes the generated
URIfrom thegetEndpointConfiguration(Service)methodso it can be used by AWS SDK v2 methods.
It also exposes the default access key, secret key and region which is also required by the clients.
AWS SDK v2 users will be able to use the container without additional changes as follows: