usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [11/50] git commit: remove mgmt token
Date Thu, 06 Nov 2014 00:14:57 GMT
remove mgmt token


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

Branch: refs/heads/two-dot-o
Commit: 035c81868c9fad7343ed338c8d6251fbc610d4fb
Parents: 73c6750
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Fri Oct 31 17:15:20 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Fri Oct 31 17:15:20 2014 -0600

----------------------------------------------------------------------
 .../org/apache/usergrid/scenarios/NotifierScenarios.scala     | 7 +------
 .../scala/org/apache/usergrid/scenarios/UserScenarios.scala   | 1 -
 .../simulations/PushNotificationTargetUserSimulation.scala    | 3 +--
 3 files changed, 2 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/035c8186/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotifierScenarios.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotifierScenarios.scala
b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotifierScenarios.scala
index 37070a7..5c4f1f6 100755
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotifierScenarios.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/NotifierScenarios.scala
@@ -57,12 +57,7 @@ object NotifierScenarios {
     .exec(http("Create Notifier")
     .post(Settings.baseAppUrl+"/notifiers")
     .body(StringBody("{\"name\":\"" + notifier + "\",\"provider\":\"" + provider + "\"}"))
-    //remnants of trying to upload an apple certificate
-//    .param("name", "${notifierName}")
-//    .param("provider", "apple")
-//    .param("environment", "mock")
-//    .fileBody("p12Certificate", Map).fileBody(pkcs12Cert)
-    .check(status.is(200)))
+    .check(status.in(200 to 400)))
 
 
 }

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/035c8186/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/UserScenarios.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/UserScenarios.scala
b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/UserScenarios.scala
index 596b411..c46f99d 100755
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/UserScenarios.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/scenarios/UserScenarios.scala
@@ -40,7 +40,6 @@ import io.gatling.core.Predef._
   val postUser = exec(
     http("POST geolocated Users")
       .post("/users")
-      .headers(Headers.jsonAuthorized)
       .body(new StringBody("""{"location":{"latitude":"${latitude}","longitude":"${longitude}"},"username":"${username}",
       "displayName":"${displayName}","age":"${age}","seen":"${seen}","weight":"${weight}",
       "height":"${height}","aboutMe":"${aboutMe}","profileId":"${profileId}","headline":"${headline}",

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/035c8186/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/PushNotificationTargetUserSimulation.scala
----------------------------------------------------------------------
diff --git a/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/PushNotificationTargetUserSimulation.scala
b/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/PushNotificationTargetUserSimulation.scala
index dc2dc9c..5a0e0d8 100644
--- a/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/PushNotificationTargetUserSimulation.scala
+++ b/stack/loadtests/src/main/scala/org/apache/usergrid/simulations/PushNotificationTargetUserSimulation.scala
@@ -57,7 +57,6 @@ class PushNotificationTargetUserSimulation extends Simulation {
     .exec(createNotifier)
 
   val scnToRun = scenario("Create Push Notification")
-    .exec(getManagementToken)
     .feed(userFeeder)
     .exec(createUser)
     .exec(getUserToken)
@@ -70,7 +69,7 @@ class PushNotificationTargetUserSimulation extends Simulation {
 
   setUp(
     scnCreateOrg.inject(atOnceUsers(1)).protocols(http.baseURL(Settings.baseUrl)),
-    scnToRun.inject(nothingFor(30), constantUsersPerSec(numUsersPerSecond) during (duration))
+    scnToRun.inject(nothingFor(15), constantUsersPerSec(numUsersPerSecond) during (duration))
       .throttle(reachRps(throttle) in (rampTime.seconds)).protocols(httpConf))
 
 }


Mime
View raw message