Repository: usergrid Updated Branches: refs/heads/hotfix_20171205 cda4d207a -> 71169f89a
Fix test to use Akka region config instead of SQS region config Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/71169f89 Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/71169f89 Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/71169f89 Branch: refs/heads/hotfix_20171205 Commit: 71169f89a57a5b6ab5c080022ccde1f80f85fac7 Parents: cda4d20 Author: Mike Dunker <[email protected]> Authored: Wed Dec 6 17:04:41 2017 -0800 Committer: Mike Dunker <[email protected]> Committed: Wed Dec 6 17:04:41 2017 -0800 ---------------------------------------------------------------------- .../rest/applications/collection/CollectionsResourceIT.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/71169f89/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/CollectionsResourceIT.java ---------------------------------------------------------------------- diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/CollectionsResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/CollectionsResourceIT.java index bf06c21..f172a47 100644 --- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/CollectionsResourceIT.java +++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/collection/CollectionsResourceIT.java @@ -1030,7 +1030,7 @@ public class CollectionsResourceIT extends AbstractRestIT { try { app().collection( collectionName ).collection( "_settings" ) - .post( new Entity().chainPut(REGION_SETTING, "us-moon-1" ) ); + .post( new Entity().chainPut(REGION_SETTING, "us-moon" ) ); fail( "post should have failed"); } catch ( BadRequestException expected ) {} @@ -1038,14 +1038,14 @@ public class CollectionsResourceIT extends AbstractRestIT { // set collection region with good region app().collection( collectionName ).collection( "_settings" ) - .post( new Entity().chainPut( REGION_SETTING, "us-east-1" ) ); + .post( new Entity().chainPut( REGION_SETTING, "us-east" ) ); // get collection settings see that we have a region collection = app().collection( collectionName ).collection( "_settings" ).get(); settings = (Map<String, Object>)collection.getResponse().getData(); assertNotNull( settings.get( REGION_SETTING )); - assertEquals( "us-east-1", settings.get( REGION_SETTING )); + assertEquals( "us-east", settings.get( REGION_SETTING )); // unset the collection region
