-
Notifications
You must be signed in to change notification settings - Fork 1k
port 8080 was blocked #11375
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
port 8080 was blocked #11375
Conversation
| assertClient(OtelSpringStarterSmokeTestController.REST_CLIENT); | ||
| testing.clearAllExportedData(); | ||
|
|
||
| RestClient client = restClientBuilder.baseUrl("http://localhost:" + port).build(); | ||
| assertThat( | ||
| client | ||
| .get() | ||
| .uri(OtelSpringStarterSmokeTestController.PING) | ||
| .retrieve() | ||
| .body(String.class)) | ||
| .isEqualTo("pong"); | ||
| assertClient(); |
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'm not sure the purpose of this test now since the RestClient telemetry is no longer captured or verified
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.
assertClient is doing the verification
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.
would it help to inline 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.
oh, sorry! I got confused b/c I was thinking of the other smoke test pattern where the test code itself doesn't get instrumented, only the app code, but realize that's not the case for these smoke tests
| void restTemplate() { | ||
| assertClient(OtelSpringStarterSmokeTestController.REST_TEMPLATE); | ||
| } | ||
|
|
||
| protected void assertClient(String url) { | ||
| testing.clearAllExportedData(); | ||
|
|
||
| testRestTemplate.getForObject(url, String.class); | ||
| RestTemplate restTemplate = restTemplateBuilder.rootUri("http://localhost:" + port).build(); | ||
| restTemplate.getForObject(OtelSpringStarterSmokeTestController.PING, String.class); | ||
| assertClient(); | ||
| } |
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.
similar question here
trask
left a comment
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.
👍
port 8080 was blocked in all spring smoke tests - breaking parallel builds