You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2015/02/26 18:27:08 UTC
[06/16] incubator-usergrid git commit: [USERGRID-331] Adding
additional checks for correct username on returned entity
[USERGRID-331] Adding additional checks for correct username on returned entity
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/6e43fc55
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/6e43fc55
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/6e43fc55
Branch: refs/heads/USERGRID-273-indexbuffer
Commit: 6e43fc55e7ea12a5710c1a92b1df554bfcbed38f
Parents: 88bda3b
Author: ryan bridges <rb...@apigee.com>
Authored: Fri Jan 23 18:16:33 2015 -0500
Committer: ryan bridges <rb...@apigee.com>
Committed: Fri Jan 23 18:16:33 2015 -0500
----------------------------------------------------------------------
.../rest/management/organizations/AdminEmailEncodingIT.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6e43fc55/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/AdminEmailEncodingIT.java
----------------------------------------------------------------------
diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/AdminEmailEncodingIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/AdminEmailEncodingIT.java
index 22dafdc..648abd1 100644
--- a/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/AdminEmailEncodingIT.java
+++ b/stack/rest/src/test/java/org/apache/usergrid/rest/management/organizations/AdminEmailEncodingIT.java
@@ -100,8 +100,6 @@ public class AdminEmailEncodingIT extends AbstractRestIT {
String unique = UUID.randomUUID().toString();
String org = "org_getTokenDash" + unique;
String app = "app_getTokenDash" + unique;
- org = org.toLowerCase();
- app = app.toLowerCase();
//Username and password
String username = "testuser" + unique;
@@ -125,13 +123,15 @@ public class AdminEmailEncodingIT extends AbstractRestIT {
//Create an application within the organization
clientSetup.getRestClient().management().orgs().organization(organization.getName()).app().post(new Application(app));
- //retrieve the new management user by username and ensure the email address matches the input
+ //retrieve the new management user by username and ensure the username and email address matches the input
Entity me = clientSetup.getRestClient().management().users().entity(username).get();
assertEquals(email, me.get("email"));
+ assertEquals(username, me.get("username"));
- //retrieve the new management user by email and ensure the email address matches the input
+ //retrieve the new management user by email and ensure the username and email address matches the input
me = clientSetup.getRestClient().management().users().entity(email).get();
assertEquals(email, me.get("email"));
+ assertEquals(username, me.get("username"));
}
}