Align test with upstream Spring Security change

Closes gh-41488
This commit is contained in:
Phillip Webb 2024-07-15 06:52:30 +01:00
parent 110855a127
commit 5d4a777d27
1 changed files with 3 additions and 3 deletions

View File

@ -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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -49,8 +49,8 @@ class SampleSaml2RelyingPartyApplicationTests {
void loginShouldHaveAllAssertingPartiesToChooseFrom() { void loginShouldHaveAllAssertingPartiesToChooseFrom() {
ResponseEntity<String> entity = this.restTemplate.getForEntity("/login", String.class); ResponseEntity<String> entity = this.restTemplate.getForEntity("/login", String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(entity.getBody()).contains("/saml2/authenticate/simplesamlphp"); assertThat(entity.getBody()).contains("/saml2/authenticate?registrationId=simplesamlphp");
assertThat(entity.getBody()).contains("/saml2/authenticate/okta"); assertThat(entity.getBody()).contains("/saml2/authenticate?registrationId=okta");
} }
} }