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

Integration tests #8

Open
10 tasks
christophe-kamphaus-jemmic opened this issue Jun 27, 2023 · 0 comments
Open
10 tasks

Integration tests #8

christophe-kamphaus-jemmic opened this issue Jun 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@christophe-kamphaus-jemmic
Copy link
Contributor

What feature do you want to see added?

Currently this plugin does not have tests.

Add the following tests:

  • Test download of otel-contrib + node_exporter from web (eg. using a mock http server)
  • Test upload of otel-contrib + node_exporter from Jenkins plugin resources
  • Test use of otel-contrib + node_exporter present on the agent PATH
  • Test Grafana link
    • No link is present, if onMonit() is not used
    • Verify that a job using the onMonit() step has the link to the Jenkins settings (if Grafana link is not configured)
    • Verify that a job using the onMonit() step has the link to the Grafana dashboard (if configured in Jenkins settings)
      • Check that parameters are set correctly
  • Test upload of metrics
    • Verify that host metrics are sent, in the test we could start a supporting otel collector that pushes metrics to InfluxDB, using InfluxDB Module - Testcontainers for Java and then assert after the test pipeline runs that metrics arrived in this DB.
    • Verify that custom OTEL config can be configured in Jenkins settings (eg. to use a custom label)
  • Using two onMonit() in parallel on the same node works
  • Using onMonit() in the options works
  • Using onMonit { … } works
  • Using onMonit works on different agents
    • macOs Arm / Amd64
    • Linux Arm / Amd64
    • Windows Amd64
  • onMonit(debug: true) produces additional log output

Upstream changes

No response

@christophe-kamphaus-jemmic christophe-kamphaus-jemmic added the enhancement New feature or request label Jun 27, 2023
@NotMyFault NotMyFault transferred this issue from another repository Aug 28, 2023
@NotMyFault NotMyFault transferred this issue from jenkinsci/console-column-plugin Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant