-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add Bedrock contract tests. #855
Add Bedrock contract tests. #855
Conversation
b124f15
to
aa08642
Compare
aa08642
to
e9d340d
Compare
void testBedrockGetKnowlesgeBase() { | ||
doTestBedrockGetKnowlesgeBase(); |
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.
Not blocking:
void testBedrockGetKnowlesgeBase() { | |
doTestBedrockGetKnowlesgeBase(); | |
void testBedrockGetKnowledgeBase() { | |
doTestBedrockGetKnowledgeBase(); |
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.
Updated.
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.
Not blocking: Missed testBedrockAgentGetKnowlesgeBaseIdFromRequest
...t/java/software/amazon/opentelemetry/appsignals/test/utils/SemanticConventionsConstants.java
Outdated
Show resolved
Hide resolved
...t/java/software/amazon/opentelemetry/appsignals/test/utils/SemanticConventionsConstants.java
Outdated
Show resolved
Hide resolved
.../src/test/java/software/amazon/opentelemetry/appsignals/test/awssdk/base/AwsSdkBaseTest.java
Outdated
Show resolved
Hide resolved
appsignals-tests/images/aws-sdk/aws-sdk-v1/src/main/java/com/amazon/sampleapp/App.java
Outdated
Show resolved
Hide resolved
appsignals-tests/images/aws-sdk/aws-sdk-v2/src/main/java/com/amazon/sampleapp/App.java
Outdated
Show resolved
Hide resolved
.../src/test/java/software/amazon/opentelemetry/appsignals/test/awssdk/base/AwsSdkBaseTest.java
Outdated
Show resolved
Hide resolved
Is the overview up to date? It mentions changes that I don't see, like |
Seems like this is a rebased PR, and the PR description was not copied correctly. Updated the description from original PR. |
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.
the updates LGTM! ty!
The PR is a follow up on bedrock service support PR:
#826
We add contract tests for following Bedrock services that covers all resource attributes we newly support:
GetGuardrail
GetAgent
,GetDataSource
,GetKnowledgeBase
InvokeModel
InvokeAgent
Upgrade
aws-java-sdk
V1 and V2 to the latest version so that to support Bedrock services API calls.Upgrade
localstack/localstack
image to the latest version3.5.0
so resolve the SQS API call issue usinglocalstack/localstack:2.0.1
: localstack/localstack#9610Add
.withEnv("LOCALSTACK_HOST", "127.0.0.1")
forLocalStackContainer
to workaround the 3.X version limitation: localstack/localstack#9753Contract test limitation:
The contract tests in current repo is using LocalStackContainer to serve AWS SDK service calls. But it doesn't has bedrock related service support (This is the full service list it support.). In this case, no matter which bedrock API we call in contract test, the response will always be 4XX.
As a workaround, we We point all Bedrock related request endpoints to the local app and then specifically handle each request to return the expected response to make sure we receive http response with expected status code and attributes.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.