[USERGRID-493] Made tests use a superuser token by default. If they need other kinds of tokens then they can set them in the tests according to their needs. Fixed
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/298bfcf1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/298bfcf1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/298bfcf1 Branch: refs/heads/two-dot-o-dev Commit: 298bfcf1cb3a02d8fd10d02d6eab46cdd14b20c9 Parents: 3eae925 Author: GERey <[email protected]> Authored: Thu Mar 19 16:08:34 2015 -0700 Committer: GERey <[email protected]> Committed: Thu Mar 19 16:08:34 2015 -0700 ---------------------------------------------------------------------- .../org/apache/usergrid/rest/test/resource2point0/ClientSetup.java | 1 - 1 file changed, 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/298bfcf1/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/ClientSetup.java ---------------------------------------------------------------------- diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/ClientSetup.java b/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/ClientSetup.java index 252f212..210284b 100644 --- a/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/ClientSetup.java +++ b/stack/rest/src/test/java/org/apache/usergrid/rest/test/resource2point0/ClientSetup.java @@ -109,7 +109,6 @@ public class ClientSetup implements TestRule { clientCredentials = restClient.management().orgs().organization( orgName ).credentials().get(); Token token = restClient.management().token().post(Token.class,new Token(username,username)); - restClient.management().token().setToken( token ); restClient.management().orgs().organization(organization.getName()).app().post(new Application(appName));
