Bump `instance-identity` from 3.1 to 116.vf8f487400980 (#6715)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Nord <jtnord@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2022-07-05 22:00:56 -07:00 committed by GitHub
parent e01c1ba81e
commit 2b83c2e72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 11 deletions

View File

@ -144,7 +144,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci.modules</groupId>
<artifactId>instance-identity</artifactId>
<version>3.1</version>
<version>116.vf8f487400980</version>
<scope>test</scope>
</dependency>
<dependency>
@ -205,6 +205,13 @@ THE SOFTWARE.
<!-- Version specified in grandparent POM -->
<extensions>true</extensions>
<executions>
<execution>
<id>prepare-test-plugins</id>
<goals>
<goal>resolve-test-dependencies</goal>
</goals>
<phase>test-compile</phase>
</execution>
<execution>
<id>test-runtime</id>
<goals>

View File

@ -34,7 +34,6 @@ import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestPluginManager;
public class PluginTest {
@ -42,9 +41,8 @@ public class PluginTest {
@Issue({"SECURITY-131", "SECURITY-155", "SECURITY-705"})
@Test public void doDynamic() throws Exception {
((TestPluginManager) r.jenkins.pluginManager).installDetachedPlugin("matrix-auth");
r.createWebClient().goTo("plugin/matrix-auth/images/user-disabled.png", "image/png");
r.createWebClient().goTo("plugin/matrix-auth/images/../images/user-disabled.png", "image/png"); // collapsed somewhere before it winds up in restOfPath
r.createWebClient().goTo("plugin/matrix-auth/images/select-all.svg", "image/svg+xml");
r.createWebClient().goTo("plugin/matrix-auth/images/../images/select-all.svg", "image/svg+xml"); // collapsed somewhere before it winds up in restOfPath
/* TODO https://github.com/apache/httpcomponents-client/commit/8c04c6ae5e5ba1432e40684428338ce68431766b#r32873542
r.createWebClient().assertFails("plugin/matrix-auth/images/%2E%2E/images/user-disabled.png", HttpServletResponse.SC_INTERNAL_SERVER_ERROR); // IAE from TokenList.<init>
r.createWebClient().assertFails("plugin/matrix-auth/images/%252E%252E/images/user-disabled.png", HttpServletResponse.SC_BAD_REQUEST); // SECURITY-131
@ -77,4 +75,5 @@ public class PluginTest {
}
r.createWebClient().assertFails("plugin/matrix-auth/.timestamp2", HttpServletResponse.SC_BAD_REQUEST);
}
}

View File

@ -47,7 +47,7 @@ public class ListPluginsCommandTest {
CLICommandInvoker.Result result = new CLICommandInvoker(j, new ListPluginsCommand())
.invoke();
assertThat(result, CLICommandInvoker.Matcher.succeeded());
assertThat(result, CLICommandInvoker.Matcher.hasNoStandardOutput());
assertThat(result, not(CLICommandInvoker.Matcher.hasNoStandardOutput()));
assertThat(result.stdout(), not(containsString("token-macro")));
assertThat(new CLICommandInvoker(j, new InstallPluginCommand()).

View File

@ -59,7 +59,6 @@ import org.apache.commons.io.IOUtils;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestPluginManager;
/**
* @author Kohsuke Kawaguchi
@ -74,8 +73,6 @@ public class UsageStatisticsTest {
*/
@Test
public void roundtrip() throws Exception {
((TestPluginManager) j.jenkins.pluginManager).installDetachedPlugin("matrix-auth");
j.createOnlineSlave();
warmUpNodeMonitorCache();

View File

@ -32,7 +32,6 @@ import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.TestPluginManager;
import org.xml.sax.SAXException;
/**
@ -63,7 +62,6 @@ public class I18nTest {
@Issue("JENKINS-35270")
@Test
public void test_baseName_plugin() throws Exception {
((TestPluginManager) jenkinsRule.jenkins.pluginManager).installDetachedPlugin("matrix-auth");
JSONObject response = jenkinsRule.getJSON("i18n/resourceBundle?baseName=org.jenkinsci.plugins.matrixauth.Messages").getJSONObject();
Assert.assertEquals(response.toString(), "ok", response.getString("status"));
JSONObject data = response.getJSONObject("data");