You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/11/10 15:24:21 UTC
[39/50] [abbrv] incubator-usergrid git commit: adding connection
scenario
adding connection scenario
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/1f912ef7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/1f912ef7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/1f912ef7
Branch: refs/heads/two-dot-o-events
Commit: 1f912ef726c41a633c39b908cc07b7fccda608ad
Parents: 19179bc
Author: Shawn Feldman <sf...@apache.org>
Authored: Fri Nov 7 09:33:31 2014 -0700
Committer: Shawn Feldman <sf...@apache.org>
Committed: Fri Nov 7 09:33:31 2014 -0700
----------------------------------------------------------------------
.../org/apache/usergrid/scenarios/ConnectionScenarios.scala | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/1f912ef7/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/ConnectionScenarios.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/ConnectionScenarios.scala b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/ConnectionScenarios.scala
index e56124d..923a9bd 100755
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/ConnectionScenarios.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/ConnectionScenarios.scala
@@ -37,6 +37,14 @@ import io.gatling.http.Predef._
.headers(Headers.jsonAuthorized)
.check(status.is(200))
)
+
+ val postConnection = exec(
+ http("Connect user with device")
+ .post("/${collectionName}/${entityId}/${connectionType}/${entityId}")
+ .headers(Headers.jsonAuthorized)
+ .check(status.is(200))
+ )
+
val entityNameFeeder = FeederGenerator.generateEntityNameFeeder("device", Settings.numEntities)
val createScenario = scenario("Create Connections")
.feed(Settings.userFeeder)