-
Notifications
You must be signed in to change notification settings - Fork 962
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
Http client instrumentation TCK #3258
Http client instrumentation TCK #3258
Commits on Jul 11, 2022
-
WIP Http client instrumentation TCK
Introduce test suite for HTTP client instrumentations to check that all implementations have the naming and tags expected. This may also help instrumentors ensure backwards compatibility of the HTTP client instrumentation across changes to it.
Configuration menu - View commit details
-
Copy full SHA for 066d4b9 - Browse repository at this point
Copy the full SHA 066d4b9View commit details -
Clean up API to be more versatile and less leaky
Avoids putting WireMock classes in the API that instrumentors need to implement for the test suite. Also makes it more versatile by passing a method, templated path, and variable substitutions. How templated paths are handled will vary from client to client.
Configuration menu - View commit details
-
Copy full SHA for c950a2c - Browse repository at this point
Copy the full SHA c950a2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fed9baa - Browse repository at this point
Copy the full SHA fed9baaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad8a7bb - Browse repository at this point
Copy the full SHA ad8a7bbView commit details -
Assert more specific behavior of expected tags
Each implementation has been configured to tag with the URI pattern and that is checked now. Unmapped paths, on the other hand, should not be tagged as requested in the URI. This is currently failing for the Apache HTTP instrumentation.
Configuration menu - View commit details
-
Copy full SHA for 36ed1bd - Browse repository at this point
Copy the full SHA 36ed1bdView commit details -
Use more standard naming, polish
Rename classes to be standard test class names. Minimize visibility. Remove 404 test, add a disabled test for requests to a down server. We will need to improve the existing instrumentations to add more tests of expected behavior such as that test.
Configuration menu - View commit details
-
Copy full SHA for 292e62b - Browse repository at this point
Copy the full SHA 292e62bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d90996 - Browse repository at this point
Copy the full SHA 1d90996View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c74cfd - Browse repository at this point
Copy the full SHA 3c74cfdView commit details -
Add body parameter for potential future use
We want to test more than the GET method, and some HTTP clients require a body for POST requests.
Configuration menu - View commit details
-
Copy full SHA for aa07c38 - Browse repository at this point
Copy the full SHA aa07c38View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5c3e49 - Browse repository at this point
Copy the full SHA b5c3e49View commit details