From 79bad56232e73279aeaf253823407daa3fa2528f Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Fri, 6 Sep 2024 15:00:47 -0700 Subject: [PATCH] Adapt to jenkinsci/jenkins#9696 --- pom.xml | 3 ++- .../varsetter/impl/UserIdCauseDeterminantSamlTest.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index aae6635..ec911fa 100644 --- a/pom.xml +++ b/pom.xml @@ -75,7 +75,8 @@ 999999-SNAPSHOT - 2.475 + + 2.476-rc35313.0144a_9701da_2 2265.v3da_49c8134d6 17 diff --git a/src/test/java/org/jenkinsci/plugins/builduser/varsetter/impl/UserIdCauseDeterminantSamlTest.java b/src/test/java/org/jenkinsci/plugins/builduser/varsetter/impl/UserIdCauseDeterminantSamlTest.java index 44d9c9e..0093dad 100644 --- a/src/test/java/org/jenkinsci/plugins/builduser/varsetter/impl/UserIdCauseDeterminantSamlTest.java +++ b/src/test/java/org/jenkinsci/plugins/builduser/varsetter/impl/UserIdCauseDeterminantSamlTest.java @@ -1,7 +1,7 @@ package org.jenkinsci.plugins.builduser.varsetter.impl; import hudson.model.Cause.UserIdCause; -import hudson.security.ChainedServletFilter; +import hudson.security.ChainedServletFilter2; import hudson.security.SecurityRealm; import jenkins.model.IdStrategy; import org.easymock.EasyMock; @@ -37,7 +37,7 @@ public Map runSamlSecurityRealmTest(JenkinsRule r, String userid IdStrategy strategy = new IdStrategy.CaseSensitive(); EasyMock.expect(realm.getUserIdStrategy()).andReturn(strategy).anyTimes(); EasyMock.expect(realm.getSecurityComponents()).andReturn(new SecurityRealm.SecurityComponents()); - EasyMock.expect(realm.createFilter(anyObject(FilterConfig.class))).andReturn(new ChainedServletFilter()); + EasyMock.expect(realm.createFilter(anyObject(FilterConfig.class))).andReturn(new ChainedServletFilter2()); EasyMock.expect(realm.getUsernameCaseConversion()).andReturn(caseConversion); EasyMock.expect(realm.loadUserByUsername2(userid)).andReturn(user).anyTimes();