By: Yamil Díaz Aguirre user 12 Feb 2019 at 4:38 p.m. CST

3 Responses
Yamil Díaz Aguirre gravatar
I've followed the documentation offered in https://www.gluu.org/docs/ce/user-management/scim2/#protection-using-uma. However I'm getting some errors when I execute the tests. ## Expected behavior Gluu Server version: 3.1.4 Run the SCIM-Client tests successfully. ## Actual behavior Of the 109 tests run, 19 tests are failed because they return an HTTP response 400 ## Minimized example This is what I get when I execute ```mvn test``` ```shell ➜ SCIM-Client git:(master) ✗ mvn test [INFO] Scanning for projects... [INFO] [INFO] -------------------< gluu.scim.client:scim-client2 >-------------------- [INFO] Building SCIM-Client 4.0.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ scim-client2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ scim-client2 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ scim-client2 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 35 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ scim-client2 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ scim-client2 --- [INFO] Surefire report directory: /Users/yamildiazaguirre/Documents/SCIM-Client/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running TestSuite 16:04:02 INFO BaseTest.java:44 - Invoked initTestSuite of 'Corner and other weird cases' 16:04:02 INFO BaseTest.java:72 - Initializing client... 16:04:04 INFO SchemasTest.java:71 - Found User Schema Extension: GluuUserCustomExtension 16:04:04 DEBUG MinimalUserTest.java:29 - Creating mimimal user from json... 16:04:07 DEBUG UserBaseTest.java:26 - User created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!8636.F81C.F77F.9E59 16:04:07 DEBUG MinimalUserTest.java:37 - Updating user scim_test_bjensen_1 with json 16:04:07 DEBUG MinimalUserTest.java:44 - Updated user Barbara 16:04:07 DEBUG UserBaseTest.java:33 - Deleting user bjensen_1 16:04:07 DEBUG UserBaseTest.java:36 - deleted 16:04:07 DEBUG MinimalGroupTest.java:31 - Creating mimimal group from json... 16:04:07 DEBUG MinimalGroupTest.java:37 - Group created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0003!7D53.ED5B 16:04:07 DEBUG MinimalGroupTest.java:45 - Updating group scim_test_worldowners with json 16:04:07 DEBUG MinimalGroupTest.java:52 - Updated group scim_test_worldmanagers 16:04:07 DEBUG MinimalGroupTest.java:59 - Deleting group scim_test_worldowners 16:04:08 DEBUG MinimalGroupTest.java:62 - deleted 16:04:08 DEBUG AverageUserTest.java:35 - Creating user from json... 16:04:08 DEBUG UserBaseTest.java:26 - User created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!E7B4.047D.E8B0.F5C9 16:04:08 DEBUG AverageUserTest.java:43 - Updating user scim_test_bjensen_1 with json 16:04:08 DEBUG AverageUserTest.java:56 - Updated user Barbara 16:04:08 DEBUG AverageUserTest.java:73 - Updating user scim_test_bjensen_1 16:04:08 DEBUG AverageUserTest.java:85 - Updated user Barbara 16:04:08 DEBUG AverageUserTest.java:113 - Updated user scim_test_bjensen_1 16:04:08 DEBUG UserBaseTest.java:33 - Deleting user scim_test_bjensen_1 16:04:09 DEBUG UserBaseTest.java:36 - deleted 16:04:09 DEBUG FullUserTest.java:35 - Creating user from json... 16:04:09 DEBUG SimpleSearchUserTest.java:33 - Creating user from json... 16:04:10 DEBUG UserBaseTest.java:26 - User created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!2647.5BB8.A1A8.D414 16:04:10 DEBUG ComplexSearchUserTest.java:68 - Searching at most 3 users using POST verb 16:04:10 DEBUG ComplexSearchUserTest.java:69 - Sorted by family name descending 16:04:10 DEBUG ComplexSearchUserTest.java:70 - Retrieving only the attributes [name.familyName, active] 16:04:10 DEBUG ComplexSearchUserTest.java:140 - Searching at most 3 users using POST verb 16:04:10 DEBUG ComplexSearchUserTest.java:141 - Sorted by displayName ascending 16:04:10 DEBUG ComplexSearchUserTest.java:142 - Excluding the attributes [x509Certificates, entitlements, roles, ims, phoneNumbers, addresses, emails, groups] 16:04:10 DEBUG ComplexSearchUserTest.java:39 - Searching users with attribute nickName existent or ims.value=Skype using POST verb 16:04:11 DEBUG SimpleSearchUserTest.java:61 - Searching user with attribute givenName = Barbara using POST verb 16:04:11 DEBUG SimpleSearchUserTest.java:82 - Searching user with attribute emails.value like gluu.org or phone numbers with type unassigned or value containing '+' using POST verb 16:04:11 DEBUG SimpleSearchUserTest.java:110 - Calculating the total number of users 16:04:12 DEBUG SimpleSearchUserTest.java:119 - There are 3 users! 16:04:12 DEBUG SimpleSearchUserTest.java:42 - Searching user with attribute locale = es_ES and created date >= 2019-02-12T22:04:10.423Z using GET verb 16:04:12 DEBUG UserBaseTest.java:33 - Deleting user scim_test_bjensen_1 16:04:12 DEBUG UserBaseTest.java:36 - deleted 16:04:12 INFO GroupAssignUserTest.java:40 - Creating 3 users... 16:04:13 INFO GroupAssignUserTest.java:66 - Assigning users to new group... 16:04:13 INFO GroupAssignUserTest.java:90 - Creating a secondary group... 16:04:13 INFO GroupAssignUserTest.java:112 - Issuing query with filter: id eq "@!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!FAA7.C1C8.1DA5.E80D" or id eq "@!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!D3A9.9D55.2985.E2C9" or id eq "@!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!68DB.88F2.0B17.65C8" 16:04:14 INFO GroupAssignUserTest.java:116 - Verifying groups and users consistency... 16:04:14 INFO GroupAssignUserTest.java:143 - Attempting to modify group membership using /Users endpoint... 16:04:15 INFO GroupAssignUserTest.java:163 - Removing one and adding one member... 16:04:15 INFO GroupAssignUserTest.java:172 - Group has correct members 16:04:15 INFO GroupAssignUserTest.java:186 - Users have correct memberships 16:04:15 INFO GroupAssignUserTest.java:199 - Group '3 best demented buddies' removed 16:04:16 INFO GroupAssignUserTest.java:199 - Group 'Auxiliary asylum' removed 16:04:16 INFO GroupAssignUserTest.java:214 - User 'test-0.20407225425898645' removed 16:04:16 INFO GroupAssignUserTest.java:214 - User 'test-0.021456855056185442' removed 16:04:16 INFO GroupAssignUserTest.java:214 - User 'test-0.8250346392857232' removed 16:04:16 DEBUG QueryParamRetrievalTest.java:34 - Retrieving test users... 16:04:16 DEBUG QueryParamCreateUpdateTest.java:38 - Creating user from json... 16:04:19 DEBUG PatchReplaceUserTest.java:39 - Creating user from json... 16:04:19 DEBUG PatchAddUserTest.java:30 - Creating user from json... 16:04:20 DEBUG UserBaseTest.java:26 - User created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!D041.940D.B9C7.EA13 16:04:20 DEBUG UserBaseTest.java:33 - Deleting user scim_test_bjensen_1 16:04:20 DEBUG UserBaseTest.java:36 - deleted 16:04:20 DEBUG PatchDeleteUserTest.java:30 - Creating user from json... 16:04:20 DEBUG PatchUserExtTest.java:40 - Creating user from json... 16:04:22 DEBUG PatchValueFilterUserTest.java:41 - User created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!3F4F.BE23.F3E7.4BB5 16:04:22 DEBUG UserBaseTest.java:33 - Deleting user 1550009061446 16:04:22 DEBUG UserBaseTest.java:36 - deleted 16:04:22 DEBUG PatchGroupTest.java:47 - Creating group from json... 16:04:23 INFO UsersBulkTest.java:35 - Sending a bulk with POST, PUT, and PATCH operations... 16:04:23 INFO UsersBulkTest.java:49 - User id is @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!8AE5.8A08.2292.F1E6 16:04:23 INFO UsersBulkTest.java:56 - Sending a bulk with one DELETE... 16:04:24 INFO UsersBulkTest.java:80 - Sending a bulk with POSTs and DELETEs operations... 16:04:24 INFO GroupsBulkTest.java:40 - Creating one user and one group using bulk json string 16:04:24 INFO GroupsBulkTest.java:53 - User id is @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!89E0.8AEE.196A.8E5E 16:04:24 INFO GroupsBulkTest.java:59 - Group id is @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0003!E3CA.1397 16:04:24 INFO GroupsBulkTest.java:66 - Sending a bulk with a patch to insert admin user into group 16:04:25 INFO GroupsBulkTest.java:98 - Cleaning... 16:04:32 DEBUG WrongPayloadUserTest.java:49 - Creating mimimal user from json... 16:04:33 DEBUG UserBaseTest.java:26 - User created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0000!A485.6935.2035.DBEC 16:04:33 DEBUG UserBaseTest.java:33 - Deleting user scim_test_bjensen_1 16:04:34 DEBUG UserBaseTest.java:36 - deleted 16:04:34 INFO AbstractScimClient.java:126 - Closing RestEasy client Tests run: 109, Failures: 19, Errors: 0, Skipped: 22, Time elapsed: 33.372 sec <<< FAILURE! inspectUserExtensionSchema(gluu.scim2.client.servicemeta.SchemasTest) Time elapsed: 0.008 sec <<< FAILURE! java.lang.NullPointerException at java.util.Arrays$ArrayList.forEach(Arrays.java:3880) at gluu.scim2.client.servicemeta.SchemasTest.inspectUserExtensionSchema(SchemasTest.java:96) createFull(gluu.scim2.client.singleresource.FullUserTest) Time elapsed: 0.184 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.singleresource.FullUserTest.createFull(FullUserTest.java:36) delete(gluu.scim2.client.singleresource.FullUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.FullUserTest.delete(FullUserTest.java:105) search1(gluu.scim2.client.search.PaginationUserSearchTest) Time elapsed: 0.163 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.search.PaginationUserSearchTest.search1(PaginationUserSearchTest.java:45) searchNoMatches(gluu.scim2.client.search.SimpleSearchUserTest) Time elapsed: 0.204 sec <<< FAILURE! java.lang.AssertionError: expected [200] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.search.SimpleSearchUserTest.searchNoMatches(SimpleSearchUserTest.java:132) multipleRetrieval(gluu.scim2.client.singleresource.QueryParamRetrievalTest) Time elapsed: 0.183 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.singleresource.QueryParamRetrievalTest.multipleRetrieval(QueryParamRetrievalTest.java:41) create1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) Time elapsed: 0.168 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.singleresource.QueryParamCreateUpdateTest.create1(QueryParamCreateUpdateTest.java:44) delete1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.QueryParamCreateUpdateTest.delete1(QueryParamCreateUpdateTest.java:53) delete(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.QueryParamCreateUpdateTest.delete(QueryParamCreateUpdateTest.java:149) createForReplace(gluu.scim2.client.patch.PatchReplaceUserTest) Time elapsed: 0.165 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchReplaceUserTest.createForReplace(PatchReplaceUserTest.java:40) delete(gluu.scim2.client.patch.PatchReplaceUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchReplaceUserTest.delete(PatchReplaceUserTest.java:198) createForDel(gluu.scim2.client.patch.PatchDeleteUserTest) Time elapsed: 0.207 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchDeleteUserTest.createForDel(PatchDeleteUserTest.java:31) delete(gluu.scim2.client.patch.PatchDeleteUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchDeleteUserTest.delete(PatchDeleteUserTest.java:53) create(gluu.scim2.client.patch.PatchUserExtTest) Time elapsed: 0.726 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchUserExtTest.create(PatchUserExtTest.java:41) delete(gluu.scim2.client.patch.PatchUserExtTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchUserExtTest.delete(PatchUserExtTest.java:105) patch2(gluu.scim2.client.patch.PatchGroupTest) Time elapsed: 0.21 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.patch.PatchGroupTest.getTestUsers(PatchGroupTest.java:161) at gluu.scim2.client.patch.PatchGroupTest.patch2(PatchGroupTest.java:72) containabilityAll(gluu.scim2.client.corner.SpecialCharsTest) Time elapsed: 0.189 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.corner.SpecialCharsTest.containabilityAll(SpecialCharsTest.java:72) containabilityAllInGivenName(gluu.scim2.client.corner.SpecialCharsTest) Time elapsed: 0.209 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.corner.SpecialCharsTest.containabilityAllInGivenName(SpecialCharsTest.java:93) containabilityAny(gluu.scim2.client.corner.SpecialCharsTest) Time elapsed: 0.203 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.corner.SpecialCharsTest.containabilityAny(SpecialCharsTest.java:49) Results : Failed tests: inspectUserExtensionSchema(gluu.scim2.client.servicemeta.SchemasTest) createFull(gluu.scim2.client.singleresource.FullUserTest): expected [201] but found [400] delete(gluu.scim2.client.singleresource.FullUserTest) search1(gluu.scim2.client.search.PaginationUserSearchTest) searchNoMatches(gluu.scim2.client.search.SimpleSearchUserTest): expected [200] but found [400] multipleRetrieval(gluu.scim2.client.singleresource.QueryParamRetrievalTest) create1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest): expected [201] but found [400] delete1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) delete(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) createForReplace(gluu.scim2.client.patch.PatchReplaceUserTest): expected [201] but found [400] delete(gluu.scim2.client.patch.PatchReplaceUserTest) createForDel(gluu.scim2.client.patch.PatchDeleteUserTest): expected [201] but found [400] delete(gluu.scim2.client.patch.PatchDeleteUserTest) create(gluu.scim2.client.patch.PatchUserExtTest): expected [201] but found [400] delete(gluu.scim2.client.patch.PatchUserExtTest) patch2(gluu.scim2.client.patch.PatchGroupTest) containabilityAll(gluu.scim2.client.corner.SpecialCharsTest) containabilityAllInGivenName(gluu.scim2.client.corner.SpecialCharsTest) containabilityAny(gluu.scim2.client.corner.SpecialCharsTest) Tests run: 109, Failures: 19, Errors: 0, Skipped: 22 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 37.070 s [INFO] Finished at: 2019-02-12T16:04:34-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project scim-client2: There are test failures. [ERROR] [ERROR] Please refer to /Users/yamildiazaguirre/Documents/SCIM-Client/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ``` ## Configuration and Log files Config-scim-test.properties ```properties test.server.name=https://myservercarnales.com #For test-mode only: test.auth_server_oidc_url=https://myservercarnales.com/oxauth/.well-known/openid-configuration umaAatClientId=@!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0008!0F39.6D2C umaAatClientJksPath=profiles/scim-rp.jks umaAatClientJksPassword=secret umaAatClientKeyId= ``` Thank you, Yamil Díaz

By Jose Gonzalez staff 13 Feb 2019 at 7:14 a.m. CST

Jose Gonzalez gravatar
Hi, Thanks for your interest in Gluu SCIM service. There are a few cases that require prior data and config present in your server: - Take the file in `/install/community-edition-setup/templates/test/scim-client/data` (of your Gluu server) and adjust the `%(inumOrg)s` placeholders with the org inum value of your installation (can be found in oxtrust going to `Configuration` > `JSON configuration` > `oxTrust configuration`). Import this data to LDAP - Add the 3 attributes to your LDAP schema (per `/install/community-edition-setup/templates/test/scim-client/schema` files). This requires a restart (eg `service opendj restart`)

By Yamil Díaz Aguirre user 13 Feb 2019 at 10:50 a.m. CST

Yamil Díaz Aguirre gravatar
I already added the inumOrg, however I did not fully understand how to import this data into LDAP, could you please explain me in more detail? In your second point, I would like to assume that you are referring to these three attributes, right? `/install/community-edition-setup/templates/test/scim-client/schema/scim_test.schema` ``` attributetype ( 1.3.6.1.4.1.48710.1.3.2001 NAME 'scimCustomFirst' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu - SCIM test attribute' ) attributetype ( 1.3.6.1.4.1.48710.1.3.2002 NAME 'scimCustomSecond' EQUALITY generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 X-ORIGIN 'Gluu - SCIM test attribute' ) attributetype ( 1.3.6.1.4.1.48710.1.3.2003 NAME 'scimCustomThird' EQUALITY integerMatch ORDERING integerOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 X-ORIGIN 'Gluu - SCIM test attribute' ) ``` **Edit:** I tried to modify my file `/opt/gluu-server-3.1.4/opt/opendj/config/schema/77-customAttributes.ldif`, adding to it the three attributes in `/install/community-edition-setup/templates/test/scim-client/schema/scim_test.schema` ```javascript dn: cn=schema objectClass: top objectClass: ldapSubentry objectClass: subschema cn: schema attributetype ( 1.3.6.1.4.1.48710.1.3.2001 NAME 'scimCustomFirst' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu - SCIM test attribute' ) attributetype ( 1.3.6.1.4.1.48710.1.3.2002 NAME 'scimCustomSecond' EQUALITY generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 X-ORIGIN 'Gluu - SCIM test attribute' ) attributetype ( 1.3.6.1.4.1.48710.1.3.2003 NAME 'scimCustomThird' EQUALITY integerMatch ORDERING integerOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 X-ORIGIN 'Gluu - SCIM test attribute' ) objectClasses: ( 1.3.6.1.4.1.48710.1.4.101 NAME 'gluuCustomPerson' SUP ( top ) AUXILIARY MAY ( telephoneNumber $ mobile $ carLicense $ facsimileTelephoneNumber $ departmentNumber $ employeeType $ cn $ st $ manager $ street $ postOfficeBox $ employeeNumber $ $ X-ORIGIN 'Gluu - Custom persom objectclass' ) ``` And finally I restart `service opendj restart` But when I try to execute my test again with `mvn test` I get the next 34 errors: ```shell ------------------------------------------------------- T E S T S ------------------------------------------------------- Running TestSuite 12:46:21 INFO BaseTest.java:44 - Invoked initTestSuite of 'Corner and other weird cases' 12:46:21 INFO BaseTest.java:72 - Initializing client... 12:46:24 INFO SchemasTest.java:71 - Found User Schema Extension: GluuUserCustomExtension 12:46:24 DEBUG MinimalUserTest.java:29 - Creating mimimal user from json... 12:46:27 DEBUG MinimalGroupTest.java:31 - Creating mimimal group from json... 12:46:28 DEBUG MinimalGroupTest.java:37 - Group created with id @!ADF2.014A.3A4E.E27B!0001!DC3E.136B!0003!59FB.1425 12:46:28 DEBUG MinimalGroupTest.java:45 - Updating group scim_test_worldowners with json 12:46:28 DEBUG MinimalGroupTest.java:52 - Updated group scim_test_worldmanagers 12:46:28 DEBUG MinimalGroupTest.java:59 - Deleting group scim_test_worldowners 12:46:28 DEBUG MinimalGroupTest.java:62 - deleted 12:46:28 DEBUG AverageUserTest.java:35 - Creating user from json... 12:46:28 DEBUG FullUserTest.java:35 - Creating user from json... 12:46:29 DEBUG SimpleSearchUserTest.java:33 - Creating user from json... 12:46:30 DEBUG ComplexSearchUserTest.java:68 - Searching at most 3 users using POST verb 12:46:30 DEBUG ComplexSearchUserTest.java:69 - Sorted by family name descending 12:46:30 DEBUG ComplexSearchUserTest.java:70 - Retrieving only the attributes [name.familyName, active] 12:46:31 WARN ComplexSearchUserTest.java:85 - Less than 3 users satisfying the criteria. TESTER please check manually 12:46:31 DEBUG ComplexSearchUserTest.java:140 - Searching at most 3 users using POST verb 12:46:31 DEBUG ComplexSearchUserTest.java:141 - Sorted by displayName ascending 12:46:31 DEBUG ComplexSearchUserTest.java:142 - Excluding the attributes [x509Certificates, entitlements, roles, ims, phoneNumbers, addresses, emails, groups] 12:46:31 WARN ComplexSearchUserTest.java:157 - Less than 3 users satisfying the criteria. TESTER please check manually 12:46:31 DEBUG ComplexSearchUserTest.java:39 - Searching users with attribute nickName existent or ims.value=Skype using POST verb 12:46:32 INFO GroupAssignUserTest.java:40 - Creating 3 users... 12:46:32 DEBUG QueryParamRetrievalTest.java:34 - Retrieving test users... 12:46:32 DEBUG QueryParamCreateUpdateTest.java:38 - Creating user from json... 12:46:35 DEBUG PatchReplaceUserTest.java:39 - Creating user from json... 12:46:35 DEBUG PatchAddUserTest.java:30 - Creating user from json... 12:46:36 DEBUG PatchDeleteUserTest.java:30 - Creating user from json... 12:46:37 DEBUG PatchUserExtTest.java:40 - Creating user from json... 12:46:38 DEBUG UserBaseTest.java:33 - Deleting user 1550083597903 12:46:38 DEBUG PatchGroupTest.java:47 - Creating group from json... 12:46:40 INFO UsersBulkTest.java:35 - Sending a bulk with POST, PUT, and PATCH operations... 12:46:40 INFO GroupsBulkTest.java:40 - Creating one user and one group using bulk json string 12:46:40 INFO GroupsBulkTest.java:98 - Cleaning... 12:46:48 DEBUG WrongPayloadUserTest.java:49 - Creating mimimal user from json... 12:46:48 INFO AbstractScimClient.java:126 - Closing RestEasy client Tests run: 109, Failures: 34, Errors: 0, Skipped: 43, Time elapsed: 28.329 sec <<< FAILURE! inspectUserExtensionSchema(gluu.scim2.client.servicemeta.SchemasTest) Time elapsed: 0.015 sec <<< FAILURE! java.lang.NullPointerException at java.util.Arrays$ArrayList.forEach(Arrays.java:3880) at gluu.scim2.client.servicemeta.SchemasTest.inspectUserExtensionSchema(SchemasTest.java:96) createUser(gluu.scim2.client.singleresource.MinimalUserTest) Time elapsed: 2.96 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.singleresource.MinimalUserTest.createUser(MinimalUserTest.java:30) delete(gluu.scim2.client.singleresource.MinimalUserTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.MinimalUserTest.delete(MinimalUserTest.java:50) create(gluu.scim2.client.singleresource.AverageUserTest) Time elapsed: 0.209 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.singleresource.AverageUserTest.create(AverageUserTest.java:36) delete(gluu.scim2.client.singleresource.AverageUserTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.AverageUserTest.delete(AverageUserTest.java:119) createFull(gluu.scim2.client.singleresource.FullUserTest) Time elapsed: 0.798 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.singleresource.FullUserTest.createFull(FullUserTest.java:36) delete(gluu.scim2.client.singleresource.FullUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.FullUserTest.delete(FullUserTest.java:105) create(gluu.scim2.client.search.SimpleSearchUserTest) Time elapsed: 0.818 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.search.SimpleSearchUserTest.create(SimpleSearchUserTest.java:34) search1(gluu.scim2.client.search.PaginationUserSearchTest) Time elapsed: 0.189 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.search.PaginationUserSearchTest.search1(PaginationUserSearchTest.java:45) delete(gluu.scim2.client.search.SimpleSearchUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.search.SimpleSearchUserTest.delete(SimpleSearchUserTest.java:141) createUsers(gluu.scim2.client.multipleresource.GroupAssignUserTest) Time elapsed: 0.197 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.multipleresource.GroupAssignUserTest.createUsers(GroupAssignUserTest.java:46) multipleRetrieval(gluu.scim2.client.singleresource.QueryParamRetrievalTest) Time elapsed: 0.754 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.singleresource.QueryParamRetrievalTest.multipleRetrieval(QueryParamRetrievalTest.java:41) create1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) Time elapsed: 0.207 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.singleresource.QueryParamCreateUpdateTest.create1(QueryParamCreateUpdateTest.java:44) delete1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.QueryParamCreateUpdateTest.delete1(QueryParamCreateUpdateTest.java:53) delete(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.singleresource.QueryParamCreateUpdateTest.delete(QueryParamCreateUpdateTest.java:149) createForReplace(gluu.scim2.client.patch.PatchReplaceUserTest) Time elapsed: 0.229 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchReplaceUserTest.createForReplace(PatchReplaceUserTest.java:40) delete(gluu.scim2.client.patch.PatchReplaceUserTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchReplaceUserTest.delete(PatchReplaceUserTest.java:198) createForAdd(gluu.scim2.client.patch.PatchAddUserTest) Time elapsed: 0.796 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchAddUserTest.createForAdd(PatchAddUserTest.java:31) delete(gluu.scim2.client.patch.PatchAddUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchAddUserTest.delete(PatchAddUserTest.java:53) createForDel(gluu.scim2.client.patch.PatchDeleteUserTest) Time elapsed: 0.734 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchDeleteUserTest.createForDel(PatchDeleteUserTest.java:31) delete(gluu.scim2.client.patch.PatchDeleteUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchDeleteUserTest.delete(PatchDeleteUserTest.java:53) create(gluu.scim2.client.patch.PatchUserExtTest) Time elapsed: 0.811 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [400] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.patch.PatchUserExtTest.create(PatchUserExtTest.java:41) delete(gluu.scim2.client.patch.PatchUserExtTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.patch.PatchUserExtTest.delete(PatchUserExtTest.java:105) create(gluu.scim2.client.patch.PatchValueFilterUserTest) Time elapsed: 0.812 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.patch.PatchValueFilterUserTest.create(PatchValueFilterUserTest.java:38) delete(gluu.scim2.client.patch.PatchValueFilterUserTest) Time elapsed: 0.006 sec <<< FAILURE! java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy46.deleteUser(Unknown Source) at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:34) at gluu.scim2.client.patch.PatchValueFilterUserTest.delete(PatchValueFilterUserTest.java:94) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at gluu.scim2.client.AbstractScimClient.invokeServiceMethod(AbstractScimClient.java:99) at gluu.scim2.client.AbstractScimClient.invoke(AbstractScimClient.java:140) ... 37 more Caused by: java.lang.NullPointerException: RESTEASY004670: value was null at org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget.resolveTemplate(ClientWebTarget.java:186) at org.jboss.resteasy.client.jaxrs.internal.ClientWebTarget.resolveTemplate(ClientWebTarget.java:25) at org.jboss.resteasy.client.jaxrs.internal.proxy.processors.webtarget.PathParamProcessor.build(PathParamProcessor.java:31) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.createRequest(ClientInvoker.java:115) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientInvoker.invoke(ClientInvoker.java:101) at org.jboss.resteasy.client.jaxrs.internal.proxy.ClientProxy.invoke(ClientProxy.java:76) at com.sun.proxy.$Proxy45.deleteUser(Unknown Source) ... 43 more patch2(gluu.scim2.client.patch.PatchGroupTest) Time elapsed: 0.204 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.patch.PatchGroupTest.getTestUsers(PatchGroupTest.java:161) at gluu.scim2.client.patch.PatchGroupTest.patch2(PatchGroupTest.java:72) bulkJson1(gluu.scim2.client.bulk.UsersBulkTest) Time elapsed: 0.207 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertTrue(Assert.java:41) at org.testng.Assert.assertTrue(Assert.java:51) at gluu.scim2.client.bulk.UsersBulkTest.assertSuccessfulOps(UsersBulkTest.java:100) at gluu.scim2.client.bulk.UsersBulkTest.bulkJson1(UsersBulkTest.java:43) bulkJson(gluu.scim2.client.bulk.GroupsBulkTest) Time elapsed: 0.2 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertTrue(Assert.java:41) at org.testng.Assert.assertTrue(Assert.java:51) at gluu.scim2.client.bulk.GroupsBulkTest.assertSuccessfulOps(GroupsBulkTest.java:131) at gluu.scim2.client.bulk.GroupsBulkTest.bulkJson(GroupsBulkTest.java:47) delete(gluu.scim2.client.bulk.GroupsBulkTest) Time elapsed: 0.194 sec <<< FAILURE! java.lang.AssertionError: expected [true] but found [false] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertTrue(Assert.java:41) at org.testng.Assert.assertTrue(Assert.java:51) at gluu.scim2.client.bulk.GroupsBulkTest.delete(GroupsBulkTest.java:123) containabilityAll(gluu.scim2.client.corner.SpecialCharsTest) Time elapsed: 0.205 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.corner.SpecialCharsTest.containabilityAll(SpecialCharsTest.java:72) containabilityAllInGivenName(gluu.scim2.client.corner.SpecialCharsTest) Time elapsed: 0.205 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.corner.SpecialCharsTest.containabilityAllInGivenName(SpecialCharsTest.java:93) containabilityAny(gluu.scim2.client.corner.SpecialCharsTest) Time elapsed: 0.204 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.corner.SpecialCharsTest.containabilityAny(SpecialCharsTest.java:49) create(gluu.scim2.client.corner.WrongPayloadUserTest) Time elapsed: 0.204 sec <<< FAILURE! java.lang.AssertionError: expected [201] but found [500] at org.testng.Assert.fail(Assert.java:93) at org.testng.Assert.failNotEquals(Assert.java:512) at org.testng.Assert.assertEqualsImpl(Assert.java:134) at org.testng.Assert.assertEquals(Assert.java:115) at org.testng.Assert.assertEquals(Assert.java:388) at org.testng.Assert.assertEquals(Assert.java:398) at gluu.scim2.client.UserBaseTest.createUserFromJson(UserBaseTest.java:22) at gluu.scim2.client.corner.WrongPayloadUserTest.create(WrongPayloadUserTest.java:50) delete(gluu.scim2.client.corner.WrongPayloadUserTest) Time elapsed: 0 sec <<< FAILURE! java.lang.NullPointerException at gluu.scim2.client.UserBaseTest.deleteUser(UserBaseTest.java:33) at gluu.scim2.client.corner.WrongPayloadUserTest.delete(WrongPayloadUserTest.java:62) Results : Failed tests: inspectUserExtensionSchema(gluu.scim2.client.servicemeta.SchemasTest) createUser(gluu.scim2.client.singleresource.MinimalUserTest): expected [201] but found [500] delete(gluu.scim2.client.singleresource.MinimalUserTest) create(gluu.scim2.client.singleresource.AverageUserTest): expected [201] but found [500] delete(gluu.scim2.client.singleresource.AverageUserTest) createFull(gluu.scim2.client.singleresource.FullUserTest): expected [201] but found [400] delete(gluu.scim2.client.singleresource.FullUserTest) create(gluu.scim2.client.search.SimpleSearchUserTest): expected [201] but found [500] search1(gluu.scim2.client.search.PaginationUserSearchTest) delete(gluu.scim2.client.search.SimpleSearchUserTest) createUsers(gluu.scim2.client.multipleresource.GroupAssignUserTest): expected [201] but found [500] multipleRetrieval(gluu.scim2.client.singleresource.QueryParamRetrievalTest) create1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest): expected [201] but found [400] delete1(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) delete(gluu.scim2.client.singleresource.QueryParamCreateUpdateTest) createForReplace(gluu.scim2.client.patch.PatchReplaceUserTest): expected [201] but found [400] delete(gluu.scim2.client.patch.PatchReplaceUserTest) createForAdd(gluu.scim2.client.patch.PatchAddUserTest): expected [201] but found [500] delete(gluu.scim2.client.patch.PatchAddUserTest) createForDel(gluu.scim2.client.patch.PatchDeleteUserTest): expected [201] but found [400] delete(gluu.scim2.client.patch.PatchDeleteUserTest) create(gluu.scim2.client.patch.PatchUserExtTest): expected [201] but found [400] delete(gluu.scim2.client.patch.PatchUserExtTest) create(gluu.scim2.client.patch.PatchValueFilterUserTest): expected [201] but found [500] delete(gluu.scim2.client.patch.PatchValueFilterUserTest) patch2(gluu.scim2.client.patch.PatchGroupTest) bulkJson1(gluu.scim2.client.bulk.UsersBulkTest): expected [true] but found [false] bulkJson(gluu.scim2.client.bulk.GroupsBulkTest): expected [true] but found [false] delete(gluu.scim2.client.bulk.GroupsBulkTest): expected [true] but found [false] containabilityAll(gluu.scim2.client.corner.SpecialCharsTest) containabilityAllInGivenName(gluu.scim2.client.corner.SpecialCharsTest) containabilityAny(gluu.scim2.client.corner.SpecialCharsTest) create(gluu.scim2.client.corner.WrongPayloadUserTest): expected [201] but found [500] delete(gluu.scim2.client.corner.WrongPayloadUserTest) Tests run: 109, Failures: 34, Errors: 0, Skipped: 43 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 31.127 s [INFO] Finished at: 2019-02-13T12:46:49-06:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project scim-client2: There are test failures. [ERROR] [ERROR] Please refer to /Users/yamildiazaguirre/Documents/SCIM-Client/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException ```

By Jose Gonzalez staff 14 Feb 2019 at 6:29 a.m. CST

Jose Gonzalez gravatar
Hi, As a community user you will have to figure out most details. Here is some help though: > I did not fully understand how to import this data into LDAP Here is an example of a typical import of data: ``` /opt/opendj/bin/ldapmodify -h localhost -p 1636 -D "cn=directory manager,o=gluu" -w YOUR_ADMIN_PASSWORD --trustAll --useSSL -a -f YOUR_LDIF_DATA_FILE.ldif ``` (it's supposed to be executed in chroot of your server) > 77-customAttributes.ldif Double check the syntax of this file. In the same dir there is `101-ox.ldif` which you can used as guide of a good schema file. Remember you have to add the 3 attrs to `gluuCustomPerson` as indicated in `scim_test_manual_update.schema`. It seems you haven't done so Tip: do not use multiple line breaks in the opendj files