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_Stress 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)))
24 val PServerFeeder = csv("./src/test/gatling/bodies/onappservers.csv").random
25 val serviceInstanceFeeder = csv("./src/test/gatling/bodies/onapserviceinstance.csv").random
26 val genericvnfFeeder = csv("./src/test/gatling/bodies/onapvnfs.csv").random
27 val customerFeeder = csv("./src/test/gatling/bodies/onapcustomers.csv").random
28 val vnfcFeeder = csv("./src/test/gatling/bodies/onapvnfcs.csv").random
29 val platformFeeder = csv("./src/test/gatling/bodies/onapplatform.csv").random
30 val pnfFeeder = csv("./src/test/gatling/bodies/onappnfs.csv").random
31 val configurationFeeder = csv("./src/test/gatling/bodies/onapconfigurations.csv").random
32 val owningentityFeeder = csv("./src/test/gatling/bodies/onapowning_entity.csv").random
33 val projectFeeder = csv("./src/test/gatling/bodies/onapproject.csv").random
34 val lobFeeder = csv("./src/test/gatling/bodies/onapLOB.csv").random
36 val host = System.getProperty("TARGET_HOST", "Enter Host with Port");
37 val url = "Enter Host without Port"
39 val httpBuilder = http.baseURL(host);
45 * Sends a PUT tenant request
47 def PutTenant(env: String) = scenario("Put Tenant " + env)
50 session.set("stenant", idGenerator())
53 http("PutTenant " + env)
54 .put("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner4/onap-CRId4/tenants/tenant/${stenant}")
55 .body(ElFileBody("newtenant_valid.json"))
63 http("GetTenant " + env)
64 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner4/onap-CRId4/tenants/tenant/${stenant}")
69 .check(jsonPath("$.resource-version").saveAs("resourcever"))
72 http("DelTenant " + env)
73 .delete("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner4/onap-CRId4/tenants/tenant/${stenant}?resource-version=${resourcever}")
75 .check(status.find.in(204))
83 * Sends a PATCH tenant request
85 def PatchTenant(env: String) = scenario("Patch Tenant " + env)
87 // Get the resource version before doing the PATCH
89 http("Get Tenant " + env)
90 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenant-patch")
96 jsonPath("$.resource-version").saveAs("rsrcver")
102 http("Patch Tenant " + env)
103 .patch("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenant-patch?resource-version=${rsrcver}")
104 .headers(httpHeaders)
106 "Content-Type"-> """application/merge-patch+json"""
108 .body(ElFileBody("patch-tenant.json"))
119 * @return Tenant Get depth0
121 def GetTenant(env: String) = scenario("Get Tenantdepth0 " + env)
124 http("Get Tenantdepth0 " + env)
125 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner3/onap-CRId3/tenants/tenant/onap-tenantId3?depth=0")
126 .headers(httpHeaders)
137 * Sends a DELETE tenant request
139 def DeleteTenant(env: String) = scenario("Delete Tenant " + env)
142 session.set("stenant", idGenerator())
145 http("PutTenant " + env)
146 .put("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner5/onap-CRId5/tenants/tenant/${stenant}")
147 .body(ElFileBody("newtenant_valid.json"))
148 .headers(httpHeaders)
155 http("GetTenant " + env)
156 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner5/onap-CRId5/tenants/tenant/${stenant}")
157 .headers(httpHeaders)
161 .check(jsonPath("$.resource-version").saveAs("resourcever"))
164 http("DeleteTenant " + env)
165 .delete("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner5/onap-CRId5/tenants/tenant/${stenant}?resource-version=${resourcever}")
166 .headers(httpHeaders)
167 .check(status.find.in(204))
175 * @Send a GET Vserver depth=all request
177 def Getvserver1(env: String) = scenario("Get Vserverdepthall " + env)
180 http("Get Vserverdepthall " + env)
181 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner2/onap-CRId2/tenants/tenant/onap-tenantId2/vservers/vserver/onap-vserverId2?depth=all")
182 .headers(httpHeaders)
193 * @Send a GET VF-Module depth=1request
195 def GetVFModule1(env: String) = scenario("Get VF-Moduledepth1 " + env)
198 http("Get VF-Moduledepthl " + env)
199 .get("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/onap-vnfmoduleId?depth=1")
200 .headers(httpHeaders)
211 * @Send a GET Vserver request
213 def Getvserver2(env: String) = scenario("Get Vserver " + env)
216 http("Get Vserver " + env)
217 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner2/onap-CRId2/tenants/tenant/onap-tenantId2/vservers/vserver/onap-vserverId2")
218 .headers(httpHeaders)
229 * @Send a GET SI format=pathed request
231 def GetSI1(env: String) = scenario("Get SIpathed " + env)
233 feed(serviceInstanceFeeder)
235 http("Get SIpathed " + env)
236 .get("/aai/v23/nodes/service-instances/service-instance/${service-instance-id}?format=pathed")
237 .headers(httpHeaders)
248 * @Send a V23 GET vnf request
250 def GetVNF1(env: String) = scenario("Get VNF " + env)
252 feed(genericvnfFeeder)
254 http("Get VNF " + env)
255 .get("/aai/v23/network/generic-vnfs/generic-vnf/${vnf-id}")
256 .headers(httpHeaders)
267 * @Send a GET vnf depth=1 request
269 def GetVNF2(env: String) = scenario("Get VNFdepth1 " + env)
271 feed(genericvnfFeeder)
273 http("Get VNFdepth1 " + env)
274 .get("/aai/v23/network/generic-vnfs/generic-vnf/${vnf-id}?depth=1")
275 .headers(httpHeaders)
287 * @Send a GET pservers depth=all request
289 def GetPserver1(env: String) = scenario("Get Pserverdepthall " + env)
293 http("Get Pserverdepthall " + env)
294 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${hostname}?depth=all")
295 .headers(httpHeaders)
306 * @Send a GET volume-group request
308 def Getvolumegroup(env: String) = scenario("Get volume-group " + env)
311 http("Get volume-group " + env)
312 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/volume-groups/volume-group/onap-volumegpId")
313 .headers(httpHeaders)
324 * @Send a GET platform request
326 def Getplatform(env: String) = scenario("Get platformnodes-only " + env)
330 http("Get platformnodes-only " + env)
331 .get("/aai/v22/business/platforms/platform/${platform-name}?nodes-only=")
332 .headers(httpHeaders)
343 * @Send a GET sriov-vf depth=all request
345 def Getsriovvf1(env: String) = scenario("Get sriov-vfdepthall " + env)
348 http("Get sriov-vfdepthall " + env)
349 .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")
350 .headers(httpHeaders)
361 * @Send a GET pnf request
363 def Getpnf1(env: String) = scenario("Get pnf " + env)
367 http("Get pnf " + env)
368 .get("/aai/v22/network/pnfs/pnf/${pnf-name}")
369 .headers(httpHeaders)
380 * @Send a vnfc depth=1 request
382 def Getvnfc1(env: String) = scenario("Get vnfcdepth1 " + env)
386 http("Get vnfcdepth1 " + env)
387 .get("/aai/v22/network/vnfcs/vnfc/${vnfc-name}?depth=1")
388 .headers(httpHeaders)
399 * @Send a GET vlan depth=1 request
401 def Getvlan(env: String) = scenario("Get vlandepth1 " + env)
404 http("Get vlandepth1 " + env)
405 .get("/aai/v22/network/generic-vnfs/generic-vnf/onap-genericvnfId/l-interfaces/l-interface/onap-linterfaceId/vlans/vlan/onap-vlanInterface?depth=1")
406 .headers(httpHeaders)
417 * @Send a GET SI depth=2 request
419 def GetSI2(env: String) = scenario("Get SIdepth2 " + env)
422 http("Get SIdepth2 " + env)
423 .get("/aai/v22/business/customers/customer/onap-customerId/service-subscriptions/service-subscription/onap-subscription-ServiceType/service-instances/service-instance/onap-serviceinstanceId?depth=2")
424 .headers(httpHeaders)
435 * @Send a GET pserver request
437 def GetPserver2(env: String) = scenario("Get Pserver " + env)
441 http("Get Pserver " + env)
442 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${hostname}")
443 .headers(httpHeaders)
454 * @Send a GET configuration depth=1 request
456 def Getconfiguration(env: String) = scenario("Get configurationdepth1 " + env)
458 feed(configurationFeeder)
460 http("Get configurationdepth1 " + env)
461 .get("/aai/v22/network/configurations/configuration/${configuration-id}?depth=1")
462 .headers(httpHeaders)
473 * @Send a GET service-subscription request
475 def Getservicesubscription(env: String) = scenario("Get service-subscription " + env)
478 http("Getservice-subscription " + env)
479 .get("/aai/v22/business/customers/customer/onap-customerId/service-subscriptions/service-subscription/onap-subscription-ServiceType")
480 .headers(httpHeaders)
491 * @Send a GET pnf depth=all request
493 def Getpnf2(env: String) = scenario("Get pnfdepthall " + env)
497 http("Get pnfdepthall " + env)
498 .get("/aai/v22/network/pnfs/pnf/${pnf-name}?depth=all")
499 .headers(httpHeaders)
510 * @Send a GET customer request
512 def Getcustomer(env: String) = scenario("Get customer " + env)
516 http("Get customer " + env)
517 .get("/aai/v21/business/customers/customer/${global-customer-id}")
518 .headers(httpHeaders)
529 * @Send a GET owningentity node-only request
531 def Getowningentity(env: String) = scenario("Get owningentitynodesonly " + env)
533 feed(owningentityFeeder)
535 http("Get owningentitynodesonly " + env)
536 .get("/aai/v21/business/owning-entities/owning-entity/${owning-entity-id}?nodes-only=")
537 .headers(httpHeaders)
548 * @Send a GET vnfc request
550 def Getvnfc2(env: String) = scenario("Get vnfc " + env)
554 http("Get vnfc " + env)
555 .get("/aai/v22/network/vnfcs/vnfc/${vnfc-name}")
556 .headers(httpHeaders)
567 * @Send a GET vlan-tag depth=1 request
569 def Getvlantag(env: String) = scenario("Get vlantagdepth1 " + env)
572 http("Get vlantagdepth1 " + env)
573 .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")
574 .headers(httpHeaders)
585 * @Send a GET project nodes-only request
587 def Getproject(env: String) = scenario("Get projectnodes-only " + env)
591 http("Get projectnodes-only " + env)
592 .get("/aai/v21/business/projects/project/${project-name}?nodes-only=")
593 .headers(httpHeaders)
604 * @Send a GET LOB request
606 def Getlob(env: String) = scenario("Get LOB " + env)
610 http("Get LOB " + env)
611 .get("/aai/v21/business/lines-of-business/line-of-business/${line-of-business-name}")
612 .headers(httpHeaders)
623 * @Send a GET sriov-vf request
625 def Getsriovvf2(env: String) = scenario("Get sriov-vfcountIndexSize " + env)
628 http("Get sriov-vfcountIndexSize " + env)
629 .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")
630 .headers(httpHeaders)
641 * @Send a GET snapshot depth=all request
643 def Getsnapshot(env: String) = scenario("Get snapshotdepthall " + env)
646 http("Get snapshotdepthall " + env)
647 .get("/aai/v23/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/snapshots/snapshot/onapsnapshotId?depth=all")
648 .headers(httpHeaders)
659 * @Send a GET volume depth=all request
661 def Getvolume(env: String) = scenario("Get volumedepthall " + env)
664 http("Get volumedepthall " + env)
665 .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")
666 .headers(httpHeaders)
677 * @Send a GET CR with CRid request
679 def GetCR(env: String) = scenario("Get CRwithregionid " + env)
682 http("Get CRwithregionid " + env)
683 .get("/aai/v22/cloud-infrastructure/cloud-regions/?cloud-region-id=onap-CRId")
684 .headers(httpHeaders)
695 * Sends a PUT then del vf-module request
697 def PUTvfmodule(env: String) = scenario("PUT vf-module " + env)
699 feed(genericvnfFeeder)
701 session.set("svfmodule", idGenerator())
704 http("PUT vf-module " + env)
705 .put("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/${svfmodule}")
706 .body(ElFileBody("newvf-module_valid.json"))
707 .headers(httpHeaders)
714 http("Getvfmodule " + env)
715 .get("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/${svfmodule}")
716 .headers(httpHeaders)
720 .check(jsonPath("$.resource-version").saveAs("resourcever"))
723 http("Deletevfmodule " + env)
724 .delete("/aai/v23/network/generic-vnfs/generic-vnf/onap-genericvnfId/vf-modules/vf-module/${svfmodule}?resource-version=${resourcever}")
725 .headers(httpHeaders)
726 .check(status.find.in(204))
734 * @Send a GET all services request
736 def Getallservices(env: String) = scenario("Get all services " + env)
739 http("Get all services " + env)
740 .get("/aai/v22/service-design-and-creation/services")
741 .headers(httpHeaders)
743 "X-FromAppId"-> """ONAP-fromappId"""
755 * Sends a PUT pservervserver request
757 def PostBulkSingleTx1(env: String) = scenario("BulkSingleTx1" + env)
758 //.feed(tenantFeeder)
761 session.set("sPServer", idGenerator())
764 session.set("sVServer", idGenerator())
767 http("BulkSingleTx1 " + env)
768 .post("/aai/v22/bulk/single-transaction")
769 .body(ElFileBody("onapbulk-single-tx_putPServerVServer.json"))
770 .headers(httpHeaders)
777 http("Vserver " + env)
778 .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")
779 .headers(httpHeaders)
783 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
786 http("Vserver " + env)
787 .delete("/aai/v22/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId1/vservers/vserver/${sVServer}?resource-version=${rsrcver}")
788 .headers(httpHeaders)
790 .check(status.find.in(204))
793 http("Pserver " + env)
794 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?depth=0&nodes-only=true")
795 .headers(httpHeaders)
799 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
802 http("Pserver " + env)
803 .delete("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?resource-version=${rsrcver}")
804 .headers(httpHeaders)
805 .check(status.find.in(204))
813 * Sends a PUT pservervserver2 request
815 def PostBulkSingleTx2(env: String) = scenario("BulkSingleTx2 " + env)
818 session.set("sPServer", idGenerator())
821 session.set("sVServer", idGenerator())
824 http("BulkSingleTx2" + env)
825 .post("/aai/v22/bulk/single-transaction")
826 .body(ElFileBody("onapbulk-single-tx_putPServerVServer.json"))
827 .headers(httpHeaders)
834 http("Vserver " + env)
835 .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")
836 .headers(httpHeaders)
840 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
843 http("Vserver " + env)
844 .delete("/aai/v22/cloud-infrastructure/cloud-regions/cloud-region/onap-CROwner/onap-CRId/tenants/tenant/onap-tenantId1/vservers/vserver/${sVServer}?resource-version=${rsrcver}")
845 .headers(httpHeaders)
847 .check(status.find.in(204))
850 http("Pserver " + env)
851 .get("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?depth=0&nodes-only=true")
852 .headers(httpHeaders)
856 .check(jsonPath("$.resource-version").saveAs("rsrcver"))
859 http("Pserver " + env)
860 .delete("/aai/v22/cloud-infrastructure/pservers/pserver/${sPServer}?resource-version=${rsrcver}")
861 .headers(httpHeaders)
862 .check(status.find.in(204))
870 * Sends a patch request
872 def PostBulkSingleTx3(env: String) = scenario("BulkSingleTx3 " + env)
875 session.set("CR1", idGenerator())
878 session.set("AZ1", idGenerator())
881 session.set("flavor1", idGenerator())
884 session.set("image1", idGenerator())
887 session.set("complex1", idGenerator())
890 session.set("pserver1", idGenerator())
893 session.set("pserver2", idGenerator())
896 session.set("pserver3", idGenerator())
899 http("BulkSingleTx3 " + env)
900 .post("/aai/v21/bulk/single-transaction")
901 .body(ElFileBody("onap-patch-bulk-single-tx.json"))
902 .headers(httpHeaders)
913 * @CQ-pserver-zdevice1
915 def CQpserverzdevice1(env: String) = scenario("CQ pserverzdeviceresurldepth1 " + env)
918 http("CQ pserverzdeviceresurldepth1 " + env)
919 .put("/aai/v22/query?format=resource_and_url&depth=1")
920 .headers(httpHeaders)
921 .body(ElFileBody("onap-CQ-pserver-zdevice.json"))
932 * @CQ-pserver-zdevice2
934 def CQpserverzdevice2(env: String) = scenario("CQ pserverzdeviceres " + env)
937 http("CQ pserverzdeviceres " + env)
938 .put("/aai/v22/query?format=resource")
939 .headers(httpHeaders)
940 .body(ElFileBody("onap-CQ-pserver-zdevice.json"))
951 * @CQ-vlanrange-fromVlantag
953 def CQvlanrangefromVlantag(env: String) = scenario("CQ vlanrangefromVlantag " + env)
956 http("CQ vlanrangefromVlantag " + env)
957 .put("/aai/v22/query?format=resource")
958 .headers(httpHeaders)
959 .body(ElFileBody("onap-CQ-vlanrange-fromVlantag.json"))
970 * @CQ-getClfiRoadmTailSummary
972 def CQgetClfiRoadmTailSummary(env: String) = scenario("CQ getClfiRoadmTailSummary " + env)
975 http("CQ getClfiRoadmTailSummary " + env)
976 .put("/aai/v22/query?format=simple&nodesOnly=true")
977 .headers(httpHeaders)
978 .body(ElFileBody("onap-CQ-getClfiRoadmTailSummary.json"))
989 * @CQ-vrfs-fromVlantag
991 def CQvrfsfromVlantag(env: String) = scenario("CQ vrfsfromVlantag " + env)
994 http("CQ vrfsfromVlantag " + env)
995 .put("/aai/v22/query?format=resource")
996 .headers(httpHeaders)
997 .body(ElFileBody("onap-CQ-vrfs-fromVlantag.json"))
1008 * @CQ-genericVnfs-fromPserver
1010 def CQgenericVnfsfromPserver(env: String) = scenario("CQ genericVnfsfromPserver " + env)
1013 http("CQ genericVnfsfromPserver " + env)
1014 .put("/aai/v22/query?format=resource&depth=0")
1015 .headers(httpHeaders)
1016 .body(ElFileBody("onap-CQ-genericVnfs-fromPserver.json"))
1029 def CQzPnfsfromPnf(env: String) = scenario("CQ zPnfsfromPnf " + env)
1032 http("CQ zPnfsfromPnf " + env)
1033 .put("/aai/v22/query?format=resource_and_url&depth=1")
1034 .headers(httpHeaders)
1035 .body(ElFileBody("onap-CQ-zPnfs-fromPnf.json"))
1048 def DslQuery1(env: String) = scenario("DSL Query1 " + env)
1051 http("DSL Query1 PUT")
1052 .put("/aai/v21/dsl?format=resource")
1053 .headers(httpHeaders)
1054 .body(ElFileBody("onap-DSL1.json"))
1067 def DslQuery2(env: String) = scenario("DSL Query2 " + env)
1070 http("DSL Query2 PUT")
1071 .put("/aai/v21/dsl?format=resource")
1072 .headers(httpHeaders)
1073 .body(ElFileBody("onap-DSL2.json"))
1086 def DslQuery3(env: String) = scenario("DSL Query3 " + env)
1089 http("DSL Query3 PUT")
1090 .put("/aai/v21/dsl?format=resource")
1091 .headers(httpHeaders)
1092 .body(ElFileBody("onap-DSL3.json"))
1105 def DslQuery4(env: String) = scenario("DSL Query4 " + env)
1108 http("DSL Query4 PUT")
1109 .put("/aai/v21/dsl?format=resource")
1110 .headers(httpHeaders)
1111 .body(ElFileBody("onap-DSL4.json"))
1124 def DslQuery5(env: String) = scenario("DSL Query5 " + env)
1127 http("DSL Query5 PUT")
1128 .put("/aai/v21/dsl?format=resource")
1129 .headers(httpHeaders)
1130 .body(ElFileBody("onap-DSL5.json"))
1143 def DslQuery6(env: String) = scenario("DSL Query6 " + env)
1146 http("DSL Query6 PUT")
1147 .put("/aai/v21/dsl?format=resource")
1148 .headers(httpHeaders)
1149 .body(ElFileBody("onap-DSL6.json"))
1162 def DslQuery7(env: String) = scenario("DSL Query7 " + env)
1165 http("DSL Query7 PUT")
1166 .put("/aai/v21/dsl?format=resource")
1167 .headers(httpHeaders)
1168 .body(ElFileBody("onap-DSL7.json"))
1181 def DslQuery8(env: String) = scenario("DSL Query8 " + env)
1184 http("DSL Query8 PUT")
1185 .put("/aai/v21/dsl?format=resource")
1186 .headers(httpHeaders)
1187 .body(ElFileBody("onap-DSL8.json"))
1200 def DslQuery9(env: String) = scenario("DSL Query9 " + env)
1203 http("DSL Query9 PUT")
1204 .put("/aai/v21/dsl?format=resource")
1205 .headers(httpHeaders)
1206 .body(ElFileBody("onap-DSL9.json"))
1219 def DslQuery10(env: String) = scenario("DSL Query10 " + env)
1222 http("DSL Query10 PUT")
1223 .put("/aai/v21/dsl?format=resource")
1224 .headers(httpHeaders)
1226 "X-DslApiVersion"-> """V2"""
1228 .body(ElFileBody("onap-DSL10.json"))
1240 * @Does a Search NodesQuery request
1242 def SearchNodesQuery(env: String) = scenario("GET VNF Search Nodes Query " + env)
1245 http("GET VNF Search Nodes Query " + env)
1246 .get("/aai/v23/search/nodes-query?search-node-type=generic-vnf&filter=vnf-name:EQUALS:onap-genericvnfname")
1247 .headers(httpHeaders)
1249 "X-FromAppId"-> """ONAP-fromappId"""
1260 PutTenant("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1261 PatchTenant("ePerf02").inject(atOnceUsers(115)).protocols(http.baseURL("Enter Host with Port")),
1262 GetTenant("ePerf02").inject(atOnceUsers(35)).protocols(http.baseURL("Enter Host with Port")),
1263 DeleteTenant("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1264 Getvserver1("ePerf02").inject(atOnceUsers(20)).protocols(http.baseURL("Enter Host with Port")),
1265 GetVFModule1("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1266 Getvserver2("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1267 GetSI1("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1268 GetVNF1("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1269 GetVNF2("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1270 GetPserver1("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1271 Getvolumegroup("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1272 Getplatform("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1273 Getsriovvf1("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1274 Getpnf1("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1275 Getvnfc1("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1276 Getvlan("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1277 GetSI2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1278 GetPserver2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1279 Getconfiguration("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1280 Getservicesubscription("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1281 Getpnf2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1282 Getcustomer("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1283 Getowningentity("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1284 Getvnfc2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1285 Getvlantag("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1286 Getproject("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1287 Getlob("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1288 Getsriovvf2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1289 Getsnapshot("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1290 Getvolume("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1291 GetCR("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1292 PUTvfmodule("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1293 Getallservices("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1294 PostBulkSingleTx1("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1295 PostBulkSingleTx2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1296 PostBulkSingleTx3("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1297 CQpserverzdevice1("ePerf02").inject(atOnceUsers(20)).protocols(http.baseURL("Enter Host with Port")),
1298 CQpserverzdevice2("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1299 CQvlanrangefromVlantag("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1300 CQgetClfiRoadmTailSummary("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1301 CQvrfsfromVlantag("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1302 CQgenericVnfsfromPserver("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1303 CQzPnfsfromPnf("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1304 DslQuery1("ePerf02").inject(atOnceUsers(10)).protocols(http.baseURL("Enter Host with Port")),
1305 DslQuery2("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1306 DslQuery3("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1307 DslQuery4("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1308 DslQuery5("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1309 DslQuery6("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1310 DslQuery7("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1311 DslQuery8("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1312 DslQuery9("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1313 DslQuery10("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port")),
1314 SearchNodesQuery("ePerf02").inject(atOnceUsers(5)).protocols(http.baseURL("Enter Host with Port"))
1316 ).maxDuration(10 minutes)