usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [02/19] git commit: Fixed test to prove issue.
Date Mon, 24 Mar 2014 20:20:45 GMT
Fixed test to prove issue.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/57173521
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/57173521
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/57173521

Branch: refs/heads/master
Commit: 57173521982af5199e071320a38d373d566af5ab
Parents: 9baec83
Author: grey <greyes@apigee.com>
Authored: Wed Mar 19 09:45:29 2014 -0700
Committer: grey <greyes@apigee.com>
Committed: Wed Mar 19 09:45:29 2014 -0700

----------------------------------------------------------------------
 .../management/cassandra/ManagementServiceIT.java       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/57173521/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
b/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
index 59ce4ad..39ba732 100644
--- a/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/management/cassandra/ManagementServiceIT.java
@@ -1275,7 +1275,7 @@ public class ManagementServiceIT {
     public void testExportOneOrganization() throws Exception {
 
         //File f = new File( "exportOneOrganization.json" );
-        int entitiesToCreate = 10000;
+        int entitiesToCreate = 10;
         File f = null;
 
         try {
@@ -1307,7 +1307,6 @@ public class ManagementServiceIT {
 
         payload.put( "organizationId",organization.getUuid() );
         payload.put( "applicationId",applicationId);
-        payload.put( "collectionName","baconators");
 
         //creates 100s of organizations with some entities in each one to make sure we don't
actually apply it
         for(int i = 0; i < 100; i++) {
@@ -1323,9 +1322,9 @@ public class ManagementServiceIT {
             //creates entities
             for ( int index = 0; index < 10; index++ ) {
                 entityLevelProperties = new LinkedHashMap<String, Object>();
-                entityLevelProperties.put( "username", "bobso" + i );
-                entityLevelProperties.put( "email", "derp" + i + "@anuff.com" );
-                entNotCopied[i] = customMaker.create( "superappCol", entityLevelProperties
);
+                entityLevelProperties.put( "username", "bobso" + index );
+                entityLevelProperties.put( "email", "derp" + index + "@anuff.com" );
+                entNotCopied[index] = customMaker.create( "superappCol", entityLevelProperties
);
             }
         }
 
@@ -1346,7 +1345,8 @@ public class ManagementServiceIT {
 
         org.json.simple.JSONArray a = ( org.json.simple.JSONArray ) parser.parse( new FileReader(
f ) );
 
-        assertEquals( entitiesToCreate , a.size() );
+        /*plus 3 for the default roles*/
+        assertEquals( entitiesToCreate+3 , a.size() );
         f.delete();
     }
 


Mime
View raw message