usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rockers...@apache.org
Subject [1/2] incubator-usergrid git commit: Added delete method to users scenario
Date Thu, 06 Nov 2014 22:07:22 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o 2d08b2522 -> fadee4af4


Added delete method to users 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/51b8c8ed
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/51b8c8ed
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/51b8c8ed

Branch: refs/heads/two-dot-o
Commit: 51b8c8ed36f65e615c4ecb85927bf51776c6bd71
Parents: 81f56f6
Author: Rod Simpson <rod@apigee.com>
Authored: Thu Nov 6 14:49:40 2014 -0700
Committer: Rod Simpson <rod@apigee.com>
Committed: Thu Nov 6 14:49:40 2014 -0700

----------------------------------------------------------------------
 .../scala/org/apache/usergrid/scenarios/UserScenarios.scala    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/51b8c8ed/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 86d1f78..d4579f7 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
@@ -63,4 +63,10 @@ import io.gatling.core.Predef._
      exec(getUserByUsername)
    }
 
+   val deleteUserByUsername = exec(
+     http("DELETE user")
+       .delete("/users/${username}")
+       .headers(Headers.jsonAuthorized)
+       .check(status.is(200), jsonPath("$..entities[0].uuid").saveAs("userId"))
+   )
  }


Mime
View raw message