From 640ff61422bc0ee3966941b93d9889ddbbd38d77 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Thu, 30 Jul 2026 18:17:14 -0600 Subject: more files --- tests/perf-tests/cluster-status.json | 14 +++++ tests/perf-tests/data-ss-prod.json | 4 ++ tests/perf-tests/data-ss-test1.json | 4 ++ tests/perf-tests/orchestration-tests.txt | 99 ++++++++++++++++++++++++++++++++ tests/perf-tests/test-caas-status.sh | 5 ++ tests/perf-tests/test-conn-details.sh | 5 ++ tests/perf-tests/test-image-upload.sh | 5 ++ 7 files changed, 136 insertions(+) create mode 100644 tests/perf-tests/cluster-status.json create mode 100644 tests/perf-tests/data-ss-prod.json create mode 100755 tests/perf-tests/data-ss-test1.json create mode 100644 tests/perf-tests/orchestration-tests.txt create mode 100755 tests/perf-tests/test-caas-status.sh create mode 100755 tests/perf-tests/test-conn-details.sh create mode 100755 tests/perf-tests/test-image-upload.sh (limited to 'tests/perf-tests') 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/ -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/ -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/ -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/ -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/ -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/ -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/ -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 -- cgit v1.3