-
Notifications
You must be signed in to change notification settings - Fork 34
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
Updates to Zipkin 3, Spring Boot 3 and JRE 17 #209
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ class AwsClientTracingTest extends ITRemote { | |
public MockWebServer mockServer = new MockWebServer(); | ||
|
||
@SystemStub | ||
private EnvironmentVariables variables = new EnvironmentVariables(); | ||
private final EnvironmentVariables variables = new EnvironmentVariables(); | ||
private AmazonDynamoDB dbClient; | ||
private AmazonS3 s3Client; | ||
|
||
|
@@ -68,7 +68,7 @@ class AwsClientTracingTest extends ITRemote { | |
.enableForceGlobalBucketAccess()); | ||
} | ||
|
||
@Test void testSpanCreatedAndTagsApplied() throws InterruptedException { | ||
@Test void testSpanCreatedAndTagsApplied() { | ||
mockServer.enqueue(createDeleteItemResponse()); | ||
|
||
dbClient.deleteItem("test", Collections.singletonMap("key", new AttributeValue("value"))); | ||
|
@@ -89,7 +89,7 @@ class AwsClientTracingTest extends ITRemote { | |
AwsClientTracing.create(httpTracing).build(AmazonDynamoDBAsyncClientBuilder.standard()); | ||
} | ||
|
||
@Test void testInternalAwsRequestsDoNotThrowNPE() throws InterruptedException { | ||
@Test void testInternalAwsRequestsDoNotThrowNPE() { | ||
// Responds to the internal HEAD request | ||
mockServer.enqueue(new MockResponse() | ||
.setResponseCode(400) | ||
|
@@ -125,22 +125,23 @@ private MockResponse createDeleteItemResponse() { | |
} | ||
|
||
private MockResponse getExistsResponse() { | ||
return new MockResponse().setBody("<AccessControlPolicy>\n" | ||
+ " <Owner>\n" | ||
+ " <ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID>\n" | ||
+ " <DisplayName>[email protected]</DisplayName>\n" | ||
+ " </Owner>\n" | ||
+ " <AccessControlList>\n" | ||
+ " <Grant>\n" | ||
+ " <Grantee xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" | ||
+ "\t\t\txsi:type=\"CanonicalUser\">\n" | ||
+ " <ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID>\n" | ||
+ " <DisplayName>[email protected]</DisplayName>\n" | ||
+ " </Grantee>\n" | ||
+ " <Permission>FULL_CONTROL</Permission>\n" | ||
+ " </Grant>\n" | ||
+ " </AccessControlList>\n" | ||
+ "</AccessControlPolicy> ") | ||
return new MockResponse().setBody(""" | ||
<AccessControlPolicy> | ||
<Owner> | ||
<ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID> | ||
<DisplayName>[email protected]</DisplayName> | ||
</Owner> | ||
<AccessControlList> | ||
<Grant> | ||
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:type="CanonicalUser"> | ||
<ID>75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a</ID> | ||
<DisplayName>[email protected]</DisplayName> | ||
</Grantee> | ||
<Permission>FULL_CONTROL</Permission> | ||
</Grant> | ||
</AccessControlList> | ||
</AccessControlPolicy>""") | ||
.setResponseCode(200) | ||
.addHeader("x-amz-request-id", "abcd"); | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍