-
Notifications
You must be signed in to change notification settings - Fork 207
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
otel trace source and otel metrics source test coverage #5242
Conversation
…csSource authentication Signed-off-by: Jeremy Michael <jsusanto@amazon.com>
} | ||
|
||
@Test | ||
void testHttpsFullJsonWithCustomPathAndAuthHeaderAndSsl_with_unsuccessful_response() throws InvalidProtocolBufferException { |
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.
Are we testing missing credentials (username/password) in this test case? If yes, I would suggest rename the test. If not, missing credentials in client can have a confounding factor causing unauth.
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.
this is meant for testing that if SSL is enabled on the server and a client attempts to connect without using SSL/TLS ], the connection will fail as expected. Made changes accordingly
} | ||
|
||
@Test | ||
void testHttpsFullJsonWithCustomPathAndAuthHeaderAndSsl_with_unsuccessful_response() throws Exception { |
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.
Same as above
Signed-off-by: Jeremy Michael <jsusanto@amazon.com>
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.
Thanks for providing the additional tests. Looks good to me.
…roject#5242) Added security/authentication tests for OtelTraceSource and OTelMetricsSource authentication Signed-off-by: Jeremy Michael <jsusanto@amazon.com>
Description
Adding additional test coverage for otel trace source and otel metrics source. Tests are for authentication handling and SSL/TLS validation
Issues Resolved
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.