Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed committed May 20, 2022
1 parent 3673e33 commit 5ae4069
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@
*/
@Tag("FileSystem")
public class FileTrustStoreSslSocketFactoryTests {

private static final ClassPathResource RESOURCE = new ClassPathResource("truststore.jks");

private static final ClassPathResource RESOURCE_P12 = new ClassPathResource("truststore.p12");

@SneakyThrows
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void verifyServiceAttributes() {
val factory = new WebApplicationServiceFactory();
val service = factory.createService(request);
assertNotNull(service);
assertEquals(4, service.getAttributes().size());
assertEquals(5, service.getAttributes().size());
assertTrue(service.getAttributes().containsKey("p1"));
assertTrue(service.getAttributes().containsKey("p2"));
assertTrue(service.getAttributes().containsKey("p3"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.apereo.cas.oidc.slo;

import org.apereo.cas.CasProtocolConstants;
import org.apereo.cas.logout.SingleLogoutExecutionRequest;
import org.apereo.cas.logout.slo.SingleLogoutServiceMessageHandler;
import org.apereo.cas.mock.MockTicketGrantingTicket;
Expand All @@ -26,11 +27,8 @@
*/
@Tag("OIDC")
public class OidcSingleLogoutServiceMessageHandlerTests extends AbstractOidcTests {

private static final String LOGOUT_URL_OK = "https://mocky.io/post";

private static final String LOGOUT_URL_BAD = "https://unknown-1234-unknown.xyz";

@Autowired
@Qualifier("oidcSingleLogoutServiceMessageHandler")
private SingleLogoutServiceMessageHandler oidcSingleLogoutServiceMessageHandler;
Expand Down Expand Up @@ -60,6 +58,7 @@ private void verifyCreateLogoutRequests(final RegisteredServiceLogoutType type,
registeredService.setLogoutType(type);
registeredService.setLogoutUrl(logoutUrl);
val service = RegisteredServiceTestUtils.getService(logoutUrl + "?client_id=" + registeredService.getClientId());
service.getAttributes().remove(CasProtocolConstants.PARAMETER_SERVICE);
servicesManager.save(registeredService);

val executionRequest = SingleLogoutExecutionRequest.builder()
Expand Down

0 comments on commit 5ae4069

Please sign in to comment.