@@ -131,6 +131,9 @@ public void clearAll() {
131131 for (HugeTarget target : authManager .listAllTargets (-1 )) {
132132 authManager .deleteTarget (target .id ());
133133 }
134+ for (HugeBelong belong : authManager .listAllBelong (-1 )) {
135+ authManager .deleteBelong (belong .id ());
136+ }
134137
135138 //FIXME: support project in hstore
136139 boolean isHstore = Objects .equals ("hstore" , System .getProperty ("backend" )) ||
@@ -710,12 +713,11 @@ public void testCreateBelong() {
710713 Map <String , Object > expected = new HashMap <>();
711714 expected .putAll (ImmutableMap .of ("id" , belong .id (),
712715 "user" , user ,
713- "graphspace" , "* " ,
716+ "graphspace" , "DEFAULT " ,
714717 "group" , group1 ));
715718 expected .putAll (ImmutableMap .of ("belong_creator" , "admin" ,
716719 "belong_create" , belong .create (),
717720 "belong_update" , belong .update ()));
718- expected .put ("role" , null );
719721 expected .put ("link" , "ug" );
720722 Assert .assertEquals (expected , belong .asMap ());
721723
@@ -728,12 +730,11 @@ public void testCreateBelong() {
728730 expected = new HashMap <>();
729731 expected .putAll (ImmutableMap .of ("id" , belong .id (),
730732 "user" , user ,
731- "graphspace" , "* " ,
733+ "graphspace" , "DEFAULT " ,
732734 "group" , group2 ));
733735 expected .putAll (ImmutableMap .of ("belong_creator" , "admin" ,
734736 "belong_create" , belong .create (),
735737 "belong_update" , belong .update ()));
736- expected .put ("role" , null );
737738 expected .put ("link" , "ug" );
738739 Assert .assertEquals (expected , belong .asMap ());
739740
@@ -760,13 +761,12 @@ public void testCreateBelong() {
760761 expected = new HashMap <>();
761762 expected .putAll (ImmutableMap .of ("id" , belong .id (),
762763 "user" , user1 ,
763- "graphspace" , "* " ,
764+ "graphspace" , "DEFAULT " ,
764765 "group" , group1 ));
765766 expected .putAll (ImmutableMap .of ("belong_description" , "something2" ,
766767 "belong_creator" , "admin" ,
767768 "belong_create" , belong .create (),
768769 "belong_update" , belong .update ()));
769- expected .put ("role" , null );
770770 expected .put ("link" , "ug" );
771771 Assert .assertEquals (expected , belong .asMap ());
772772
0 commit comments