Skip to content
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

Bootstrap integration tests #4

Merged
merged 10 commits into from
Sep 19, 2024
Merged

Bootstrap integration tests #4

merged 10 commits into from
Sep 19, 2024

Conversation

SylvainJuge
Copy link
Owner

@SylvainJuge SylvainJuge commented Sep 18, 2024

No description provided.

@SylvainJuge SylvainJuge changed the base branch from main to jmx-scrapper September 18, 2024 11:53
dependencyManagement/build.gradle.kts Outdated Show resolved Hide resolved
jmx-scraper/build.gradle.kts Outdated Show resolved Hide resolved
Comment on lines 113 to 121
// TODO : wait for metrics to be sent and add assertions on what is being captured
// for now we just test that we can connect to remote JMX using our client.
try (JMXConnector connector = JmxRemoteClient.createNew(targetHost, targetPort).connect()) {
assertThat(connector.getMBeanServerConnection()).isNotNull();
} catch (IOException e) {
throw new RuntimeException(e);
}
// TODO: replace with real assertions
assertThat(otlpServer.getMetrics()).isEmpty();
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[for reviewer] for now we just test the JMX connection, so it tests if the target system is setup in the way we expect it to be. In future PRs we will replace this with actual assertions on the captured metrics.

@SylvainJuge SylvainJuge marked this pull request as ready for review September 18, 2024 15:11
@SylvainJuge SylvainJuge merged commit aecf5ff into jmx-scrapper Sep 19, 2024
@SylvainJuge SylvainJuge deleted the tomcat-it branch September 19, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants