1 import io.gatling.core.Predef.{exec, _}
2 import io.gatling.http.Predef._
3 import _root_.io.gatling.core.scenario.Simulation
5 import scala.concurrent.duration._
7 import scala.util.Random
9 class ONAP_2204_Baseline extends Simulation {
10 val httpHeaders = Map(
11 "Accept" -> """application/json""",
12 "Content-Type"-> """application/json""",
13 "X-FromAppId"-> """ONAP-fromappId""",
14 "X-TransactionId"-> """ONAP-transId""",
15 "Connection"-> """Keep-Alive"""
18 def idGenerator() = "random-" + UUID.randomUUID().toString;
19 val r = scala.util.Random
20 val feeder = Iterator.continually(Map("randVal" -> (Random.alphanumeric.take(20).mkString)))
22 val PServerFeeder = csv("./src/test/gatling/bodies/onappservers.csv").random
23 val serviceInstanceFeeder = csv("./src/test/gatling/bodies/onapserviceinstance.csv").random
24 val genericvnfFeeder = csv("./src/test/gatling/bodies/onapvnfs.csv").random
25 val customerFeeder = csv("./src/test/gatling/bodies/onapcustomers.csv").random
26 val vnfcFeeder = csv("./src/test/gatling/bodies/onapvnfcs.csv").random
27 val platformFeeder = csv("./src/test/gatling/bodies/onapplatform.csv").random
28 val pnfFeeder = csv("./src/test/gatling/bodies/onappnfs.csv").random
29 val configurationFeeder = csv("./src/test/gatling/bodies/onapconfigurations.csv").random
30 val owningentityFeeder = csv("./src/test/gatling/bodies/onapowning_entity.csv").random
31 val projectFeeder = csv("./src/test/gatling/bodies/onapproject.csv").random
32 val lobFeeder = csv("./src/test/gatling/bodies/onapLOB.csv").random
34 val host = System.getProperty("TARGET_HOST", "Enter Host with Port");
35 val url = "Enter host without port"
37 val httpBuilder = http.baseURL(host);
43 * Sends a PUT tenant request
45 def PutTenant(env: String) = scenario("Put Tenant " + env)
48 session.set("stenant", idGenerator())
51 http("PutTenant " + env)
52 .put("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner4/onap-CRId4/tenants/tenant/${stenant}")
53 .body(ElFileBody("newtenant_valid.json"))
61 http("GetTenant " + env)
62 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner4/onap-CRId4/tenants/tenant/${stenant}")
67 .check(jsonPath("$.resource-version").saveAs("resourcever"))
70 http("DelTenant " + env)
71 .delete("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner4/onap-CRId4/tenants/tenant/${stenant}?resource-version=${resourcever}")
73 .check(status.find.in(204))
81 * Sends a PATCH tenant request
83 def PatchTenant(env: String) = scenario("Patch Tenant " + env)
85 // Get the resource version before doing the PATCH
87 http("Get Tenant " + env)
88 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenant-patch")
94 jsonPath("$.resource-version").saveAs("rsrcver")
100 http("Patch Tenant " + env)
101 .patch("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenant-patch?resource-version=${rsrcver}")
102 .headers(httpHeaders)
104 "Content-Type"-> """application/merge-patch+json"""
106 .body(ElFileBody("patch-tenant.json"))
117 * @return Tenant Get depth0
119 def GetTenant(env: String) = scenario("Get Tenantdepth0 " + env)
122 http("Get Tenantdepth0 " + env)
123 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner3/onap-CRId3/tenants/tenant/onap-tenantId3?depth=0")
124 .headers(httpHeaders)
135 * Sends a DELETE tenant request
137 def DeleteTenant(env: String) = scenario("Delete Tenant " + env)
140 session.set("stenant", idGenerator())
143 http("PutTenant " + env)
144 .put("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner5/onap-CRId5/tenants/tenant/${stenant}")
145 .body(ElFileBody("newtenant_valid.json"))
146 .headers(httpHeaders)
153 http("GetTenant " + env)
154 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner5/onap-CRId5/tenants/tenant/${stenant}")
155 .headers(httpHeaders)
159 .check(jsonPath("$.resource-version").saveAs("resourcever"))
162 http("DeleteTenant " + env)
163 .delete("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner5/onap-CRId5/tenants/tenant/${stenant}?resource-version=${resourcever}")
164 .headers(httpHeaders)
165 .check(status.find.in(204))
173 * @Send a GET Vserver depth=all request
175 def Getvserver1(env: String) = scenario("Get Vserverdepthall " + env)
178 http("Get Vserverdepthall " + env)
179 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner2/onap-CRId2/tenants/tenant/onap-tenantId2/vservers/vserver/onap-vserverId2?depth=all")
180 .headers(httpHeaders)
191 * @Send a GET VF-Module depth=1request
193 def GetVFModule1(env: String) = scenario("Get VF-Moduledepth1 " + env)
196 http("Get VF-Moduledepthl " + env)
197 .get("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/onap-vnfmoduleId?depth=1")
198 .headers(httpHeaders)
209 * @Send a GET Vserver request
211 def Getvserver2(env: String) = scenario("Get Vserver " + env)
214 http("Get Vserver " + env)
215 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner2/onap-CRId2/tenants/tenant/onap-tenantId2/vservers/vserver/onap-vserverId2")
216 .headers(httpHeaders)
227 * @Send a GET SI format=pathed request
229 def GetSI1(env: String) = scenario("Get SIpathed " + env)
231 feed(serviceInstanceFeeder)
233 http("Get SIpathed " + env)
234 .get("/aai/v23/nodes/service-instances/service-instance/${service-instance-id}?format=pathed")
235 .headers(httpHeaders)
246 * @Send a V23 GET vnf request
248 def GetVNF1(env: String) = scenario("Get VNF " + env)
250 feed(genericvnfFeeder)
252 http("Get VNF " + env)
253 .get("/aai/v23/network/generic-vnfs/generic-vnf/${vnf-id}")
254 .headers(httpHeaders)
265 * @Send a GET vnf depth=1 request
267 def GetVNF2(env: String) = scenario("Get VNFdepth1 " + env)
269 feed(genericvnfFeeder)
271 http("Get VNFdepth1 " + env)
272 .get("/aai/v23/network/generic-vnfs/generic-vnf/${vnf-id}?depth=1")
273 .headers(httpHeaders)
285 * @Send a GET pservers depth=all request
287 def GetPserver1(env: String) = scenario("Get Pserverdepthall " + env)
291 http("Get Pserverdepthall " + env)
292 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${hostname}?depth=all")
293 .headers(httpHeaders)
304 * @Send a GET volume-group request
306 def Getvolumegroup(env: String) = scenario("Get volume-group " + env)
309 http("Get volume-group " + env)
310 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/volume-groups/volume-group/onap-volumegpId")
311 .headers(httpHeaders)
322 * @Send a GET platform request
324 def Getplatform(env: String) = scenario("Get platformnodes-only " + env)
328 http("Get platformnodes-only " + env)
329 .get("/aai/v22/business/platforms/platform/${platform-name}?nodes-only=")
330 .headers(httpHeaders)
341 * @Send a GET sriov-vf depth=all request
343 def Getsriovvf1(env: String) = scenario("Get sriov-vfdepthall " + env)
346 http("Get sriov-vfdepthall " + env)
347 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId/vservers/vserver/onap-vserverId/l-interfaces/l-interface/onap-linterfaceName/sriov-vfs/sriov-vf/onap-PciId?depth=all")
348 .headers(httpHeaders)
359 * @Send a GET pnf request
361 def Getpnf1(env: String) = scenario("Get pnf " + env)
365 http("Get pnf " + env)
366 .get("/aai/v22/network/pnfs/pnf/${pnf-name}")
367 .headers(httpHeaders)
378 * @Send a vnfc depth=1 request
380 def Getvnfc1(env: String) = scenario("Get vnfcdepth1 " + env)
384 http("Get vnfcdepth1 " + env)
385 .get("/aai/v22/network/vnfcs/vnfc/${vnfc-name}?depth=1")
386 .headers(httpHeaders)
397 * @Send a GET vlan depth=1 request
399 def Getvlan(env: String) = scenario("Get vlandepth1 " + env)
402 http("Get vlandepth1 " + env)
403 .get("/aai/v22/network/generic-vnfs/generic-vnf/onap-genericvnfId/l-interfaces/l-interface/onap-linterfaceId/vlans/vlan/onap-vlanInterface?depth=1")
404 .headers(httpHeaders)
415 * @Send a GET SI depth=2 request
417 def GetSI2(env: String) = scenario("Get SIdepth2 " + env)
420 http("Get SIdepth2 " + env)
421 .get("/aai/v22/business/customers/customer/onap-customerId/service-subscriptions/service-subscription/onap-subscription-ServiceType/service-instances/service-instance/onap-serviceinstanceId?depth=2")
422 .headers(httpHeaders)
433 * @Send a GET pserver request
435 def GetPserver2(env: String) = scenario("Get Pserver " + env)
439 http("Get Pserver " + env)
440 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${hostname}")
441 .headers(httpHeaders)
452 * @Send a GET configuration depth=1 request
454 def Getconfiguration(env: String) = scenario("Get configurationdepth1 " + env)
456 feed(configurationFeeder)
458 http("Get configurationdepth1 " + env)
459 .get("/aai/v22/network/configurations/configuration/${configuration-id}?depth=1")
460 .headers(httpHeaders)
471 * @Send a GET service-subscription request
473 def Getservicesubscription(env: String) = scenario("Get service-subscription " + env)
476 http("Getservice-subscription " + env)
477 .get("/aai/v22/business/customers/customer/onap-customerId/service-subscriptions/service-subscription/onap-subscription-ServiceType")
478 .headers(httpHeaders)
489 * @Send a GET pnf depth=all request
491 def Getpnf2(env: String) = scenario("Get pnfdepthall " + env)
495 http("Get pnfdepthall " + env)
496 .get("/aai/v22/network/pnfs/pnf/${pnf-name}?depth=all")
497 .headers(httpHeaders)
508 * @Send a GET customer request
510 def Getcustomer(env: String) = scenario("Get customer " + env)
514 http("Get customer " + env)
515 .get("/aai/v21/business/customers/customer/${global-customer-id}")
516 .headers(httpHeaders)
527 * @Send a GET owningentity node-only request
529 def Getowningentity(env: String) = scenario("Get owningentitynodesonly " + env)
531 feed(owningentityFeeder)
533 http("Get owningentitynodesonly " + env)
534 .get("/aai/v21/business/owning-entities/owning-entity/${owning-entity-id}?nodes-only=")
535 .headers(httpHeaders)
546 * @Send a GET vnfc request
548 def Getvnfc2(env: String) = scenario("Get vnfc " + env)
552 http("Get vnfc " + env)
553 .get("/aai/v22/network/vnfcs/vnfc/${vnfc-name}")
554 .headers(httpHeaders)
565 * @Send a GET vlan-tag depth=1 request
567 def Getvlantag(env: String) = scenario("Get vlantagdepth1 " + env)
570 http("Get vlantagdepth1 " + env)
571 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/vlan-ranges/vlan-range/onap-vlanrangeId/vlan-tags?vlan-id-outer=168&depth=1")
572 .headers(httpHeaders)
583 * @Send a GET project nodes-only request
585 def Getproject(env: String) = scenario("Get projectnodes-only " + env)
589 http("Get projectnodes-only " + env)
590 .get("/aai/v21/business/projects/project/${project-name}?nodes-only=")
591 .headers(httpHeaders)
602 * @Send a GET LOB request
604 def Getlob(env: String) = scenario("Get LOB " + env)
608 http("Get LOB " + env)
609 .get("/aai/v21/business/lines-of-business/line-of-business/${line-of-business-name}")
610 .headers(httpHeaders)
621 * @Send a GET sriov-vf request
623 def Getsriovvf2(env: String) = scenario("Get sriov-vfcountIndexSize " + env)
626 http("Get sriov-vfcountIndexSize " + env)
627 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId/vservers/vserver/onap-vserverId/l-interfaces/l-interface/onap-linterfaceName/sriov-vfs/sriov-vf/onap-PciId?format=count&resultIndex=0&resultSize=1")
628 .headers(httpHeaders)
639 * @Send a GET snapshot depth=all request
641 def Getsnapshot(env: String) = scenario("Get snapshotdepthall " + env)
644 http("Get snapshotdepthall " + env)
645 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/snapshots/snapshot/onapsnapshotId?depth=all")
646 .headers(httpHeaders)
657 * @Send a GET volume depth=all request
659 def Getvolume(env: String) = scenario("Get volumedepthall " + env)
662 http("Get volumedepthall " + env)
663 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId/vservers/vserver/onap-vserverId/volumes/volume/onap-volumeid?depth=all")
664 .headers(httpHeaders)
675 * @Send a GET CR with CRid request
677 def GetCR(env: String) = scenario("Get CRwithregionid " + env)
680 http("Get CRwithregionid " + env)
681 .get("/aai/v22/cloud-infrastructure/cloud-regions/?cloud-region-id=onap-CRId")
682 .headers(httpHeaders)
693 * Sends a PUT then del vf-module request
695 def PUTvfmodule(env: String) = scenario("PUT vf-module " + env)
697 feed(genericvnfFeeder)
699 session.set("svfmodule", idGenerator())
702 http("PUT vf-module " + env)
703 .put("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/${svfmodule}")
704 .body(ElFileBody("newvf-module_valid.json"))
705 .headers(httpHeaders)
712 http("Getvfmodule " + env)
713 .get("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/${svfmodule}")
714 .headers(httpHeaders)
718 .check(jsonPath("$.resource-version").saveAs("resourcever"))
721 http("Deletevfmodule " + env)
722 .delete("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/${svfmodule}?resource-version=${resourcever}")
723 .headers(httpHeaders)
724 .check(status.find.in(204))
732 * @Send a GET all services request
734 def Getallservices(env: String) = scenario("Get all services " + env)
737 http("Get all services " + env)
738 .get("/aai/v22/service-design-and-creation/services")
739 .headers(httpHeaders)
741 "X-FromAppId"-> """ONAP-fromappId"""
753 * Sends a PUT pservervserver request
755 def PostBulkSingleTx1(env: String) = scenario("BulkSingleTx1" + env)
756 //.feed(tenantFeeder)
759 session.set("sPServer", idGenerator())
762 session.set("sVServer", idGenerator())
765 http("BulkSingleTx1 " + env)
766 .post("/aai/v22/bulk/single-transaction")
767 .body(ElFileBody("onapbulk-single-tx_putPServerVServer.json"))
768 .headers(httpHeaders)
775 http("Vserver " + env)
776 .get("/aai/v22/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId1/vservers/vserver/${sVServer}?depth=0&nodes-only=true")
777 .headers(httpHeaders)
781 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
784 http("Vserver " + env)
785 .delete("/aai/v22/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId1/vservers/vserver/${sVServer}?resource-version=${rsrcver}")
786 .headers(httpHeaders)
788 .check(status.find.in(204))
791 http("Pserver " + env)
792 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?depth=0&nodes-only=true")
793 .headers(httpHeaders)
797 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
800 http("Pserver " + env)
801 .delete("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?resource-version=${rsrcver}")
802 .headers(httpHeaders)
803 .check(status.find.in(204))
811 * Sends a PUT pservervserver2 request
813 def PostBulkSingleTx2(env: String) = scenario("BulkSingleTx2 " + env)
816 session.set("sPServer", idGenerator())
819 session.set("sVServer", idGenerator())
822 http("BulkSingleTx2" + env)
823 .post("/aai/v22/bulk/single-transaction")
824 .body(ElFileBody("onapbulk-single-tx_putPServerVServer.json"))
825 .headers(httpHeaders)
832 http("Vserver " + env)
833 .get("/aai/v22/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId1/vservers/vserver/${sVServer}?depth=0&nodes-only=true")
834 .headers(httpHeaders)
838 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
841 http("Vserver " + env)
842 .delete("/aai/v22/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId1/vservers/vserver/${sVServer}?resource-version=${rsrcver}")
843 .headers(httpHeaders)
845 .check(status.find.in(204))
848 http("Pserver " + env)
849 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?depth=0&nodes-only=true")
850 .headers(httpHeaders)
854 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
857 http("Pserver " + env)
858 .delete("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?resource-version=${rsrcver}")
859 .headers(httpHeaders)
860 .check(status.find.in(204))
868 * Sends a patch request
870 def PostBulkSingleTx3(env: String) = scenario("BulkSingleTx3 " + env)
873 session.set("CR1", idGenerator())
876 session.set("AZ1", idGenerator())
879 session.set("flavor1", idGenerator())
882 session.set("image1", idGenerator())
885 session.set("complex1", idGenerator())
888 session.set("pserver1", idGenerator())
891 session.set("pserver2", idGenerator())
894 session.set("pserver3", idGenerator())
897 http("BulkSingleTx3 " + env)
898 .post("/aai/v21/bulk/single-transaction")
899 .body(ElFileBody("onap-patch-bulk-single-tx.json"))
900 .headers(httpHeaders)
911 * @CQ-pserver-zdevice1
913 def CQpserverzdevice1(env: String) = scenario("CQ pserverzdeviceresurldepth1 " + env)
916 http("CQ pserverzdeviceresurldepth1 " + env)
917 .put("/aai/v22/query?format=resource_and_url&depth=1")
918 .headers(httpHeaders)
919 .body(ElFileBody("onap-CQ-pserver-zdevice.json"))
930 * @CQ-pserver-zdevice2
932 def CQpserverzdevice2(env: String) = scenario("CQ pserverzdeviceres " + env)
935 http("CQ pserverzdeviceres " + env)
936 .put("/aai/v22/query?format=resource")
937 .headers(httpHeaders)
938 .body(ElFileBody("onap-CQ-pserver-zdevice.json"))
949 * @CQ-vlanrange-fromVlantag
951 def CQvlanrangefromVlantag(env: String) = scenario("CQ vlanrangefromVlantag " + env)
954 http("CQ vlanrangefromVlantag " + env)
955 .put("/aai/v22/query?format=resource")
956 .headers(httpHeaders)
957 .body(ElFileBody("onap-CQ-vlanrange-fromVlantag.json"))
968 * @CQ-getClfiRoadmTailSummary
970 def CQgetClfiRoadmTailSummary(env: String) = scenario("CQ getClfiRoadmTailSummary " + env)
973 http("CQ getClfiRoadmTailSummary " + env)
974 .put("/aai/v22/query?format=simple&nodesOnly=true")
975 .headers(httpHeaders)
976 .body(ElFileBody("onap-CQ-getClfiRoadmTailSummary.json"))
987 * @CQ-vrfs-fromVlantag
989 def CQvrfsfromVlantag(env: String) = scenario("CQ vrfsfromVlantag " + env)
992 http("CQ vrfsfromVlantag " + env)
993 .put("/aai/v22/query?format=resource")
994 .headers(httpHeaders)
995 .body(ElFileBody("onap-CQ-vrfs-fromVlantag.json"))
1006 * @CQ-genericVnfs-fromPserver
1008 def CQgenericVnfsfromPserver(env: String) = scenario("CQ genericVnfsfromPserver " + env)
1011 http("CQ genericVnfsfromPserver " + env)
1012 .put("/aai/v22/query?format=resource&depth=0")
1013 .headers(httpHeaders)
1014 .body(ElFileBody("onap-CQ-genericVnfs-fromPserver.json"))
1027 def CQzPnfsfromPnf(env: String) = scenario("CQ zPnfsfromPnf " + env)
1030 http("CQ zPnfsfromPnf " + env)
1031 .put("/aai/v22/query?format=resource_and_url&depth=1")
1032 .headers(httpHeaders)
1033 .body(ElFileBody("onap-CQ-zPnfs-fromPnf.json"))
1046 def DslQuery1(env: String) = scenario("DSL Query1 " + env)
1049 http("DSL Query1 PUT")
1050 .put("/aai/v21/dsl?format=resource")
1051 .headers(httpHeaders)
1052 .body(ElFileBody("onap-DSL1.json"))
1065 def DslQuery2(env: String) = scenario("DSL Query2 " + env)
1068 http("DSL Query2 PUT")
1069 .put("/aai/v21/dsl?format=resource")
1070 .headers(httpHeaders)
1071 .body(ElFileBody("onap-DSL2.json"))
1084 def DslQuery3(env: String) = scenario("DSL Query3 " + env)
1087 http("DSL Query3 PUT")
1088 .put("/aai/v21/dsl?format=resource")
1089 .headers(httpHeaders)
1090 .body(ElFileBody("onap-DSL3.json"))
1103 def DslQuery4(env: String) = scenario("DSL Query4 " + env)
1106 http("DSL Query4 PUT")
1107 .put("/aai/v21/dsl?format=resource")
1108 .headers(httpHeaders)
1109 .body(ElFileBody("onap-DSL4.json"))
1122 def DslQuery5(env: String) = scenario("DSL Query5 " + env)
1125 http("DSL Query5 PUT")
1126 .put("/aai/v21/dsl?format=resource")
1127 .headers(httpHeaders)
1128 .body(ElFileBody("onap-DSL5.json"))
1141 def DslQuery6(env: String) = scenario("DSL Query6 " + env)
1144 http("DSL Query6 PUT")
1145 .put("/aai/v21/dsl?format=resource")
1146 .headers(httpHeaders)
1147 .body(ElFileBody("onap-DSL6.json"))
1160 def DslQuery7(env: String) = scenario("DSL Query7 " + env)
1163 http("DSL Query7 PUT")
1164 .put("/aai/v21/dsl?format=resource")
1165 .headers(httpHeaders)
1166 .body(ElFileBody("onap-DSL7.json"))
1179 def DslQuery8(env: String) = scenario("DSL Query8 " + env)
1182 http("DSL Query8 PUT")
1183 .put("/aai/v21/dsl?format=resource")
1184 .headers(httpHeaders)
1185 .body(ElFileBody("onap-DSL8.json"))
1198 def DslQuery9(env: String) = scenario("DSL Query9 " + env)
1201 http("DSL Query9 PUT")
1202 .put("/aai/v21/dsl?format=resource")
1203 .headers(httpHeaders)
1204 .body(ElFileBody("onap-DSL9.json"))
1217 def DslQuery10(env: String) = scenario("DSL Query10 " + env)
1220 http("DSL Query10 PUT")
1221 .put("/aai/v21/dsl?format=resource")
1222 .headers(httpHeaders)
1224 "X-DslApiVersion"-> """V2"""
1226 .body(ElFileBody("onap-DSL10.json"))
1238 * @Does a Search NodesQuery request
1240 def SearchNodesQuery(env: String) = scenario("GET VNF Search Nodes Query " + env)
1243 http("GET VNF Search Nodes Query " + env)
1244 .get("/aai/v23/search/nodes-query?search-node-type=generic-vnf&filter=vnf-name:EQUALS:onap-genericvnfname")
1245 .headers(httpHeaders)
1247 "X-FromAppId"-> """ONAP-fromappId"""
1258 PutTenant("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1259 PatchTenant("ePerf02").inject(atOnceUsers(23)).protocols(http.baseURL("Enter Host with Port")),
1260 GetTenant("ePerf02").inject(atOnceUsers(7)).protocols(http.baseURL("Enter Host with Port")),
1261 DeleteTenant("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1262 Getvserver1("ePerf02").inject(atOnceUsers(4)).protocols(http.baseURL("Enter Host with Port")),
1263 GetVFModule1("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1264 Getvserver2("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1265 GetSI1("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1266 GetVNF1("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1267 GetVNF2("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1268 GetPserver1("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1269 Getvolumegroup("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1270 Getplatform("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1271 Getsriovvf1("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1272 Getpnf1("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1273 Getvnfc1("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1274 Getvlan("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1275 GetSI2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1276 GetPserver2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1277 Getconfiguration("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1278 Getservicesubscription("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1279 Getpnf2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1280 Getcustomer("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1281 Getowningentity("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1282 Getvnfc2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1283 Getvlantag("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1284 Getproject("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1285 Getlob("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1286 Getsriovvf2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1287 Getsnapshot("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1288 Getvolume("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1289 GetCR("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1290 PUTvfmodule("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1291 Getallservices("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1292 PostBulkSingleTx1("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1293 PostBulkSingleTx2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1294 PostBulkSingleTx3("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1295 CQpserverzdevice1("ePerf02").inject(atOnceUsers(4)).protocols(http.baseURL("Enter Host with Port")),
1296 CQpserverzdevice2("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1297 CQvlanrangefromVlantag("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1298 CQgetClfiRoadmTailSummary("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1299 CQvrfsfromVlantag("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1300 CQgenericVnfsfromPserver("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1301 CQzPnfsfromPnf("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1302 DslQuery1("ePerf02").inject(atOnceUsers(2)).protocols(http.baseURL("Enter Host with Port")),
1303 DslQuery2("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1304 DslQuery3("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1305 DslQuery4("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1306 DslQuery5("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1307 DslQuery6("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1308 DslQuery7("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1309 DslQuery8("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1310 DslQuery9("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1311 DslQuery10("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port")),
1312 SearchNodesQuery("ePerf02").inject(atOnceUsers(1)).protocols(http.baseURL("Enter Host with Port"))
1314 ).maxDuration(10 minutes)