-
Notifications
You must be signed in to change notification settings - Fork 873
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
convert module jaxrs-client-2.0-testing test case from groovy to java #12903
base: main
Are you sure you want to change the base?
Conversation
.../java/io/opentelemetry/javaagent/instrumentation/jaxrsclient/JaxMultithreadedClientTest.java
Outdated
Show resolved
Hide resolved
abstract ClientBuilder builder() | ||
|
||
@Unroll | ||
def "should properly convert HTTP status #statusCode to span error status"() { |
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.
Have you converted the method?
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.
I have removed this case, the client error case have been covered by AbstractHttpClientTest
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.
I fail to see which test in AbstractHttpClientTest
would test client-error
endpoint that this test uses.
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.
I fail to see which test in
AbstractHttpClientTest
would testclient-error
endpoint that this test uses.
I found HttpClientTestServer have the path /client-error
How about add a new case /client-error
into AbstractHttpClientTest ?
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.
Imo adding it to the AbstractHttpClientTest
and disabling it everywhere does not make sense. If it is added to AbstractHttpClientTest
then attempt should be made to enable it on as many clients as possible. Probably best to do this in a separate 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.
add a separate PR #12924
This reverts commit 044bc96.
.../java/io/opentelemetry/javaagent/instrumentation/jaxrsclient/JaxMultithreadedClientTest.java
Outdated
Show resolved
Hide resolved
...ng/src/test/java/io/opentelemetry/javaagent/instrumentation/jaxrsclient/JaxRsClientTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Jay DeLuca <[email protected]>
#7195