From 5d4a777d27d930e2dbf278977dc12ea6aefdbaeb Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 15 Jul 2024 06:52:30 +0100 Subject: [PATCH] Align test with upstream Spring Security change Closes gh-41488 --- .../SampleSaml2RelyingPartyApplicationTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-saml2-service-provider/src/test/java/smoketest/saml2/serviceprovider/SampleSaml2RelyingPartyApplicationTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-saml2-service-provider/src/test/java/smoketest/saml2/serviceprovider/SampleSaml2RelyingPartyApplicationTests.java index 7250bc1afc..eb7c4244b7 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-saml2-service-provider/src/test/java/smoketest/saml2/serviceprovider/SampleSaml2RelyingPartyApplicationTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-saml2-service-provider/src/test/java/smoketest/saml2/serviceprovider/SampleSaml2RelyingPartyApplicationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,8 +49,8 @@ class SampleSaml2RelyingPartyApplicationTests { void loginShouldHaveAllAssertingPartiesToChooseFrom() { ResponseEntity entity = this.restTemplate.getForEntity("/login", String.class); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); - assertThat(entity.getBody()).contains("/saml2/authenticate/simplesamlphp"); - assertThat(entity.getBody()).contains("/saml2/authenticate/okta"); + assertThat(entity.getBody()).contains("/saml2/authenticate?registrationId=simplesamlphp"); + assertThat(entity.getBody()).contains("/saml2/authenticate?registrationId=okta"); } }