Created
June 1, 2015 21:25
-
-
Save meteorfox/5ccb8ae26139d2678e23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val deleteSubnets = scenario("Delete") | |
.exec(session => { session.set("networkURL", NETWORK_URL).set("authToken", "")}) | |
.exec(Subnets.list.check(jsonPath("$.subnets[*].id").findAll.saveAs(":subnets/ids"))) | |
.foreach(":subnets/ids", ":subnet/id") { | |
doIf(session => { session("subnetID").as[String].startsWith("TEST_")}) { exec(Subnets.delete) }} | |
.pause(30 seconds) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment