apigee/usergrid-stack — pull request #225 by snoopdave (2013-10-04 15:54:11+00:00)
Title: Usergrid 1218

This fix addresses a number of problems. The primary purpose of the fix was to correct the logic verifyAdminUserPasswordCredentials() so that admins cannot login until they are confirmed (if that is configured) and activated (if that is configured).

The fix also re-enables a number of tests that were marked as Ignore and introduces a new setTestProperties() method that allows us to set Usergrid configuration properties both in both instances of Usergrid, i.e. the "local" one running inside the same classloader as JUnit and the "remote" one running inside Jetty and isolated within the WAR classloader. All tests that used to set only local properties now use setTestProperties() to set both local and remote, and they also clean up after themselves by restoring the original properties after each test.