Github user GERey commented on a diff in the pull request:

    https://github.com/apache/incubator-usergrid/pull/232#discussion_r28733144
  
    --- Diff: 
stack/rest/src/test/java/org/apache/usergrid/rest/management/RegistrationIT.java
 ---
    @@ -250,48 +274,56 @@ public void postAddToOrganization() throws Exception {
         @Test
         public void addNewAdminUserWithNoPwdToOrganization() throws Exception {
     
    -        Map<String, String> originalProperties = getRemoteTestProperties();
    +        Map<String, Object> originalProperties = getRemoteTestProperties();
     
             try {
                 Mailbox.clearAll();
    -            setTestProperty( PROPERTIES_SYSADMIN_APPROVES_ADMIN_USERS, 
"false" );
    -            setTestProperty( PROPERTIES_SYSADMIN_APPROVES_ORGANIZATIONS, 
"false" );
    -            setTestProperty( PROPERTIES_ADMIN_USERS_REQUIRE_CONFIRMATION, 
"false" );
    -            setTestProperty( PROPERTIES_SYSADMIN_EMAIL, 
"[email protected]" );
    +            setTestProperty(PROPERTIES_SYSADMIN_APPROVES_ADMIN_USERS, 
"false");
    +            setTestProperty(PROPERTIES_SYSADMIN_APPROVES_ORGANIZATIONS, 
"false");
    +            setTestProperty(PROPERTIES_ADMIN_USERS_REQUIRE_CONFIRMATION, 
"false");
    +            setTestProperty(PROPERTIES_SYSADMIN_EMAIL, 
"[email protected]");
     
                 // this should send resetpwd  link in email to newly added org 
admin user(that did not exist
                 ///in usergrid) and "User Invited To Organization" email
    -            String adminToken = adminToken();
    -            JsonNode node = postAddAdminToOrg( "test-organization", 
"[email protected]", "", adminToken );
    -            String uuid = node.get( "data" ).get( "user" ).get( "uuid" 
).textValue();
    -            UUID userId = UUID.fromString( uuid );
    +            Entity node = postAddAdminToOrg("test-organization", 
"[email protected]", "", getAdminToken());
    --- End diff --
    
    Probably don't want to use the default organization because we might have 
the test-organization disabled in the properties file. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to