diff --git a/pom.xml b/pom.xml index a2ea5f5..56e33fb 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,19 @@ + + io.jenkins.plugins + opentelemetry + 3.1423.v0d1a_2fcd2429 + test + + + + com.google.errorprone + error_prone_annotations + 2.34.0 + test + diff --git a/src/test/java/io/jenkins/plugins/jenkinsinfratest/UpdateCenterTest.java b/src/test/java/io/jenkins/plugins/jenkinsinfratest/UpdateCenterTest.java index 6a3b635..67a4055 100644 --- a/src/test/java/io/jenkins/plugins/jenkinsinfratest/UpdateCenterTest.java +++ b/src/test/java/io/jenkins/plugins/jenkinsinfratest/UpdateCenterTest.java @@ -6,6 +6,9 @@ import org.junit.Rule; import org.junit.Test; +import static org.hamcrest.CoreMatchers.notNullValue; +import static org.hamcrest.MatcherAssert.assertThat; + public class UpdateCenterTest { @Rule public JenkinsConfiguredWithCodeRule j = new JenkinsConfiguredWithCodeRule(); @@ -13,6 +16,8 @@ public class UpdateCenterTest { @Before public void prepare() throws Exception { j.jenkins.getUpdateCenter().updateAllSites(); + + assertThat(j.jenkins.getPlugin("opentelemetry"), notNullValue()); } @ConfiguredWithCode("configuration-as-code.yml")