Skip to content

Commit 5d4a777

Browse files
committed
Align test with upstream Spring Security change
Closes gh-41488
1 parent 110855a commit 5d4a777

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-saml2-service-provider/src/test/java/smoketest/saml2/serviceprovider/SampleSaml2RelyingPartyApplicationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -49,8 +49,8 @@ void everythingShouldRedirectToLogin() {
4949
void loginShouldHaveAllAssertingPartiesToChooseFrom() {
5050
ResponseEntity<String> entity = this.restTemplate.getForEntity("/login", String.class);
5151
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
52-
assertThat(entity.getBody()).contains("/saml2/authenticate/simplesamlphp");
53-
assertThat(entity.getBody()).contains("/saml2/authenticate/okta");
52+
assertThat(entity.getBody()).contains("/saml2/authenticate?registrationId=simplesamlphp");
53+
assertThat(entity.getBody()).contains("/saml2/authenticate?registrationId=okta");
5454
}
5555

5656
}

0 commit comments

Comments
 (0)