You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2015/08/03 22:30:54 UTC
[10/21] incubator-usergrid git commit: USERGRID-871: fix load and
delete tests to return errors when data there/not there
USERGRID-871: fix load and delete tests to return errors when data there/not there
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/195449f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/195449f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/195449f0
Branch: refs/heads/two-dot-o-dev
Commit: 195449f0766883cc096491af7ef4d3c88b472fa0
Parents: b3f72da
Author: Mike Dunker <md...@apigee.com>
Authored: Wed Jul 22 12:21:40 2015 -0700
Committer: Mike Dunker <md...@apigee.com>
Committed: Wed Jul 22 12:21:40 2015 -0700
----------------------------------------------------------------------
.../apache/usergrid/scenarios/EntityCollectionScenarios.scala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/195449f0/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/EntityCollectionScenarios.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/EntityCollectionScenarios.scala b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/EntityCollectionScenarios.scala
index a6d6e0d..592a507 100644
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/EntityCollectionScenarios.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/EntityCollectionScenarios.scala
@@ -138,7 +138,8 @@ object EntityCollectionScenarios {
.post(Settings.baseCollectionUrl)
.headers(Headers.authToken)
.body(StringBody("""${entity}"""))
- .check(status.in(Seq(200,400))))
+ // 200 for success, 400 if already exists
+ .check(status.in(Seq(200))))
}
)
@@ -179,7 +180,8 @@ object EntityCollectionScenarios {
http("DELETE entity")
.delete("""${entityUrl}""")
.headers(Headers.authToken)
- .check(status.in(Seq(200,404)))
+ // 200 for success, 404 if doesn't exist
+ .check(status.in(Seq(200)))
)
val deleteEntities = scenario("Delete entities")