Fix springboot tests (#24254)
Co-authored-by: Michal Hajas <mhajas@redhat.com>
This commit is contained in:
parent
1558b51284
commit
c23e1e0e2b
3 changed files with 26 additions and 5 deletions
|
@ -192,7 +192,7 @@
|
|||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<version>${spring-boot26.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -49,6 +49,12 @@
|
|||
<version>2.26</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.glassfish.jersey.inject</groupId>
|
||||
<artifactId>jersey-hk2</artifactId>
|
||||
<version>2.26</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/*
|
||||
* Copyright 2023 Red Hat, Inc. and/or its affiliates
|
||||
* and other contributors as indicated by the @author tags.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.keycloak.testsuite.springboot;
|
||||
|
||||
import org.hamcrest.Matchers;
|
||||
|
@ -24,7 +41,6 @@ import org.keycloak.testsuite.admin.ApiUtil;
|
|||
import org.keycloak.testsuite.arquillian.AuthServerTestEnricher;
|
||||
import org.keycloak.testsuite.arquillian.annotation.DisableFeature;
|
||||
import org.keycloak.testsuite.broker.BrokerTestTools;
|
||||
//import org.keycloak.testsuite.pages.AccountUpdateProfilePage;
|
||||
import org.keycloak.testsuite.pages.ErrorPage;
|
||||
import org.keycloak.testsuite.pages.LoginUpdateProfilePage;
|
||||
import org.keycloak.testsuite.util.OAuthClient;
|
||||
|
@ -74,9 +90,6 @@ public class AccountLinkSpringBootTest extends AbstractSpringBootTest {
|
|||
@Page
|
||||
private LinkingPage linkingPage;
|
||||
|
||||
//@Page
|
||||
//private AccountUpdateProfilePage profilePage;
|
||||
|
||||
@Page
|
||||
private LoginUpdateProfilePage loginUpdateProfilePage;
|
||||
|
||||
|
@ -453,6 +466,8 @@ public class AccountLinkSpringBootTest extends AbstractSpringBootTest {
|
|||
links = realm.users().get(childUserId).getFederatedIdentity();
|
||||
assertThat(links, is(empty()));
|
||||
|
||||
pause(500)
|
||||
|
||||
logoutAll();
|
||||
|
||||
log.info("testing link-only attack");
|
||||
|
|
Loading…
Reference in a new issue