summaryrefslogtreecommitdiff
path: root/tests/perf-tests
diff options
context:
space:
mode:
authorckonstanski <kostcarl@isu.edu>2026-07-30 18:17:14 -0600
committerckonstanski <kostcarl@isu.edu>2026-07-30 18:17:14 -0600
commit640ff61422bc0ee3966941b93d9889ddbbd38d77 (patch)
treeabf1c08f5d38ee53ec8b29dc4f425722517505e6 /tests/perf-tests
parent22dae02a86c1fce71091bfa5289cf99abba1b217 (diff)
more filesHEADmaster
Diffstat (limited to 'tests/perf-tests')
-rw-r--r--tests/perf-tests/cluster-status.json14
-rw-r--r--tests/perf-tests/data-ss-prod.json4
-rwxr-xr-xtests/perf-tests/data-ss-test1.json4
-rw-r--r--tests/perf-tests/orchestration-tests.txt99
-rwxr-xr-xtests/perf-tests/test-caas-status.sh5
-rwxr-xr-xtests/perf-tests/test-conn-details.sh5
-rwxr-xr-xtests/perf-tests/test-image-upload.sh5
7 files changed, 136 insertions, 0 deletions
diff --git a/tests/perf-tests/cluster-status.json b/tests/perf-tests/cluster-status.json
new file mode 100644
index 0000000..80b82cb
--- /dev/null
+++ b/tests/perf-tests/cluster-status.json
@@ -0,0 +1,14 @@
+ {"cluster_status": [
+ {
+ "name": "wsbomagj-d654321-001",
+ "description": "NE CONCORD 8_N",
+ "location": 654321,
+ "software_version": "20.06",
+ "availability": "ONLINE",
+ "deploy_status": "COMPLETE",
+ "created_at": "2020-01-07 04:16:15.743617",
+ "updated_at": "2020-01-07 04:16:15.743617"
+ }
+ ]
+ }
+
diff --git a/tests/perf-tests/data-ss-prod.json b/tests/perf-tests/data-ss-prod.json
new file mode 100644
index 0000000..f087dae
--- /dev/null
+++ b/tests/perf-tests/data-ss-prod.json
@@ -0,0 +1,4 @@
+{
+ "images": ["vnf-twb.vzwnet.com/docker-images/samsung_vdu_vdu_svr20aa5vvzwg06a3_r05_20.a.0-0101_6.0.0/vzw-adpf-cmp:svr20aa5vvzwg06a3_r05"],
+ "remoteRegions": ["wsbomagj-d325030-001","wsbomagj-d2341539-001"]
+}
diff --git a/tests/perf-tests/data-ss-test1.json b/tests/perf-tests/data-ss-test1.json
new file mode 100755
index 0000000..ce6a700
--- /dev/null
+++ b/tests/perf-tests/data-ss-test1.json
@@ -0,0 +1,4 @@
+{
+ "images": ["vsp.vici.verizon.com:7443/dit_cnf_docker/vdu_vz_samsung_vdu.v19.a.0-01_1.0.0/vzw-cmp:latest","vsp.vici.verizon.com:7443/dit_cnf_docker/vdu_vz_samsung_vdu.v19.a.0-01_1.0.0/vzw-dip:latest","vsp.vici.verizon.com:7443/dit_cnf_docker/vdu_vz_samsung_vdu.v19.a.0-01_1.0.0/vzw-dmp:latest","vsp.vici.verizon.com:7443/dit_cnf_docker/vdu_vz_samsung_vdu.v19.a.0-01_1.0.0/vzw-dpp:latest","vsp.vici.verizon.com:7443/dit_cnf_docker/vdu_vz_samsung_vdu.v19.a.0-01_1.0.0/vzw-pmp:latest","vsp.vici.verizon.com:7443/dit_cnf_docker/vdu_vz_samsung_vdu.v19.a.0-01_1.0.0/vzw-rmp:latest"],
+ "remoteRegions": ["fd00:4888:2000:120a::a"]
+}
diff --git a/tests/perf-tests/orchestration-tests.txt b/tests/perf-tests/orchestration-tests.txt
new file mode 100644
index 0000000..32d9993
--- /dev/null
+++ b/tests/perf-tests/orchestration-tests.txt
@@ -0,0 +1,99 @@
+# For testing locally on WC Lab VM
+curl -v http://localhost:8000/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-test1.json
+curl -v http://localhost:8000/orchestration/image-upload/<> -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/status -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -v http://localhost:8000/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+curl -v http://localhost:8000/orchestration/setup-cluster/<> -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/site-details -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -v http://localhost:8000/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+# For testing against WC Lab VM from Jump server with Django app deployed to Apache
+curl -v http://192.168.31.20/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-test1.json
+curl -v http://192.168.31.20/orchestration/image-upload/<> -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/status -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -v http://192.168.31.20/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+curl -v http://192.168.31.20/orchestration/setup-cluster/<> -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/site-details -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -v http://192.168.31.20/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+# For testing against WCLab middleware endpoint
+curl -kv http://middleware.hqplan.lab/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-test1.json
+curl -kv http://middleware.hqplan.lab/orchestration/image-upload/<> -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/status -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+curl -kv http://middleware.hqplan.lab/orchestration/setup-cluster/<> -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/site-details -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -kv http://middleware.hqplan.lab/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+# For testing on production app server (app1) via ssh/django proxy
+curl -kv http://localhost:18000/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-prod.json
+curl -kv http://localhost:18000/orchestration/image-upload/<> -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/status -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -kv http://localhost:18000/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+curl -kv http://localhost:18000/orchestration/setup-cluster/<> -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/site-details -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -kv http://localhost:18000/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+# For testing locally on production app server (app1 or app2)
+curl -kv 127.0.0.1/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-prod.json
+curl -kv 127.0.0.1/orchestration/image-upload/<> -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/status -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -kv 127.0.0.1/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+curl -kv 127.0.0.1/orchestration/setup-cluster/<> -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/site-details -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -kv 127.0.0.1/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+# For testing against production endpoint
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-prod.json
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/image-upload/<> -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/status -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/setup-cluster/<> -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/site-details -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+# For testing against middleware2 endpoint
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-prod.json
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/image-upload/<> -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/status -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/images/<>/status -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/images/<>/tags/<> -X DELETE
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/setup-cluster/<> -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/site-details -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/<>/setup-network -X GET (this should be PUT)
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details?team=orchestration -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details?team=application -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details?team=samsung -X GET
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/<>/connection-details/<transaction_id> -X GET
+
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/caas-status -X POST -H "Content-Type: application/json" -d @caas-status.json
+
+curl -kv https://middleware2.vcpfe.vzwops.com/orchestration/remote-regions/wsbomagj-d666654-001/images/vzw-adpf-dip/tags/svr20aa5vvzwg06a4_r06 -X DELETE
+
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/wsbomagj-d674811-001/site-details -X GET
+curl -kv https://middleware.vcpfe.vzwops.com/orchestration/remote-regions/wsbomagj-d666654-001/site-details -X GET | python -m json.tool
+
diff --git a/tests/perf-tests/test-caas-status.sh b/tests/perf-tests/test-caas-status.sh
new file mode 100755
index 0000000..0b4fe1e
--- /dev/null
+++ b/tests/perf-tests/test-caas-status.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+for (( c=1; c<=50; c++ ))
+do
+ curl -v http://localhost:8000/orchestration/caas-status -X POST -H "Content-Type: application/json" -d@cluster-status.json
+done
diff --git a/tests/perf-tests/test-conn-details.sh b/tests/perf-tests/test-conn-details.sh
new file mode 100755
index 0000000..002e848
--- /dev/null
+++ b/tests/perf-tests/test-conn-details.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+for (( c=1; c<=50; c++ ))
+do
+ curl -v http://localhost:8000/orchestration/remote-regions/wsbomagj-p1257637-002/connection-details -X GET
+done
diff --git a/tests/perf-tests/test-image-upload.sh b/tests/perf-tests/test-image-upload.sh
new file mode 100755
index 0000000..3f5ff09
--- /dev/null
+++ b/tests/perf-tests/test-image-upload.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+for (( c=1; c<=50; c++ ))
+do
+ curl -v http://localhost:8000/orchestration/image-upload -X POST -H "Content-Type: application/json" -d @data-ss-test1.json
+done