From 5e450d5cd43ed0d117e0e1cd749a5ba7cf95a545 Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Thu, 23 Jun 2016 11:09:27 -0400 Subject: [PATCH] Minor cleanup. --- .../testsuite/exportimport/ExportImportUtil.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportUtil.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportUtil.java index d09a96f8b8..95b327fb2a 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportUtil.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/exportimport/ExportImportUtil.java @@ -71,21 +71,19 @@ public class ExportImportUtil { Assert.assertEquals(1, creds.size()); String cred = (String)creds.iterator().next(); Assert.assertEquals("password", cred); - Assert.assertEquals(3, realm.getDefaultRoles().size()); + Assert.assertEquals(4, realm.getDefaultRoles().size()); - //Assert.assertNotNull(realm.getRole("foo")); Assert.assertNotNull(RealmRepUtil.findDefaultRole(realm, "foo")); - //Assert.assertNotNull(realm.getRole("bar")); Assert.assertNotNull(RealmRepUtil.findDefaultRole(realm, "bar")); RealmResource realmRsc = adminClient.realm(realm.getRealm()); /* See KEYCLOAK-3104*/ - UserRepresentation user = findByUsername(realmRsc, "loginclient");//RealmRepUtil.findUser(realm, "loginclient"); + UserRepresentation user = findByUsername(realmRsc, "loginclient"); Assert.assertNotNull(user); - // I haven't found a way to do this from the adminClient - //Assert.assertEquals(0, session.users().getFederatedIdentities(user, realm).size()); + UserResource userRsc = realmRsc.users().get(user.getId()); + Assert.assertEquals(0, userRsc.getFederatedIdentity().size()); List resources = realmRsc.clients().findAll(); Assert.assertEquals(8, resources.size());