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 2014/11/08 02:20:27 UTC

incubator-usergrid git commit: Changes devices to send notifications forever once the devices are added to the user. Not sure this is the behavior we want, but our feeder of 10k users runs out in about 20 seconds on the test cluster

Repository: incubator-usergrid
Updated Branches:
  refs/heads/toddtest 61030a41c -> 8bc18c33c


Changes devices to send notifications forever once the devices are added to the user.  Not sure this is the behavior we want, but our feeder of 10k users runs out in about 20 seconds on the test cluster


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

Branch: refs/heads/toddtest
Commit: 8bc18c33cfd4d612bceab40a25ca820088eeb296
Parents: 61030a4
Author: Todd Nine <tn...@apigee.com>
Authored: Fri Nov 7 18:20:21 2014 -0700
Committer: Todd Nine <tn...@apigee.com>
Committed: Fri Nov 7 18:20:21 2014 -0700

----------------------------------------------------------------------
 .../usergrid/scenarios/NotificationScenarios.scala       | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/8bc18c33/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotificationScenarios.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotificationScenarios.scala b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotificationScenarios.scala
index c616472..8f61275 100755
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotificationScenarios.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotificationScenarios.scala
@@ -70,6 +70,15 @@ object NotificationScenarios {
 
   val userFeeder = Settings.getUserFeeder
   val createScenario = scenario("Create Push Notification")
+
+    /**
+     * TODO Shawn, do we want to make this circular so it repeats? We're running out of users
+     * before the test finishes http://gatling.io/docs/2.0.2/session/feeder.html?highlight=feeder#recordseqfeederbuilder
+     *
+     * .feed(userFeeder.circular)
+     *
+     */
+
     .feed(userFeeder)
     .exec(TokenScenarios.getUserToken)
     .exec( UserScenarios.getUserByUsername)
@@ -83,7 +92,7 @@ object NotificationScenarios {
     println(session)
     session
   })
-    .exec( sendNotificationToUser)
+    .exec( sendNotificationToUser).forever()
 
   /**
    * TODO: Add posting to users, which would expect a user in the session