EmbeddedInfinispanSplitBrainTest fails with "IllegalState Session not bound to a realm"
Closes #31828 Signed-off-by: Ryan Emerson <remerson@redhat.com>
This commit is contained in:
parent
9cf650b52b
commit
176ac3404a
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ public class EmbeddedInfinispanSplitBrainTest extends KeycloakModelTest {
|
||||||
@Override
|
@Override
|
||||||
public void createEnvironment(KeycloakSession s) {
|
public void createEnvironment(KeycloakSession s) {
|
||||||
RealmModel realm = createRealm(s, "test");
|
RealmModel realm = createRealm(s, "test");
|
||||||
|
s.getContext().setRealm(realm);
|
||||||
realm.setDefaultRole(s.roles().addRealmRole(realm, Constants.DEFAULT_ROLES_ROLE_PREFIX + "-" + realm.getName()));
|
realm.setDefaultRole(s.roles().addRealmRole(realm, Constants.DEFAULT_ROLES_ROLE_PREFIX + "-" + realm.getName()));
|
||||||
this.realmId = realm.getId();
|
this.realmId = realm.getId();
|
||||||
s.users().addUser(realm, "user1").setEmail("user1@localhost");
|
s.users().addUser(realm, "user1").setEmail("user1@localhost");
|
||||||
|
|
Loading…
Reference in a new issue