-
Couldn't load subscription status.
- Fork 0
Bootstrap integration tests #4
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
Conversation
| // 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(); |
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.
[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.
jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/JmxScraper.java
Outdated
Show resolved
Hide resolved
jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/JmxScraper.java
Show resolved
Hide resolved
...craper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/JmxScraperContainer.java
Outdated
Show resolved
Hide resolved
...craper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/JmxScraperContainer.java
Outdated
Show resolved
Hide resolved
jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/TestAppContainer.java
Outdated
Show resolved
Hide resolved
...est/java/io/opentelemetry/contrib/jmxscraper/target_systems/TargetSystemIntegrationTest.java
Show resolved
Hide resolved
jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/JmxScraper.java
Outdated
Show resolved
Hide resolved
jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/JmxScraper.java
Outdated
Show resolved
Hide resolved
refactor with custom assertj assertions
No description provided.