summaryrefslogtreecommitdiffstats
path: root/samples/scenarios/clearwater_ims/scripts
diff options
context:
space:
mode:
authorMuhammad Shaikh (Salman) <muhammad.shaikh@huawei.com>2018-05-30 00:41:19 +0000
committerMuhammad Shaikh (Salman) <muhammad.shaikh@huawei.com>2018-05-30 00:55:03 +0000
commita9a792e18c5c985874440781ca2cb5c23105d54a (patch)
tree36c4103a194cb25783b435cc486b82e1fcbee396 /samples/scenarios/clearwater_ims/scripts
parenta611041d138a71a87c12d4734e5d1a780852ecc9 (diff)
Adding clearwater IMS yaml and clearwater live test dockerfile to test istio service-mesh
Checking into CLEARWATER_ISTIO branch This part of the project is intended to validate the clearwater IMS with istio service-mesh. Change-Id: Ia5ba86301a363fcf9cfe0bac525606b0d897713e Signed-off-by: Muhammad Shaikh (Salman) <muhammad.shaikh@huawei.com>
Diffstat (limited to 'samples/scenarios/clearwater_ims/scripts')
-rwxr-xr-xsamples/scenarios/clearwater_ims/scripts/prov-numbers.sh1
-rwxr-xr-xsamples/scenarios/clearwater_ims/scripts/run-live-test.sh40
2 files changed, 41 insertions, 0 deletions
diff --git a/samples/scenarios/clearwater_ims/scripts/prov-numbers.sh b/samples/scenarios/clearwater_ims/scripts/prov-numbers.sh
new file mode 100755
index 0000000..a73527a
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/scripts/prov-numbers.sh
@@ -0,0 +1 @@
+kubectl exec -it $(kubectl get pods -l=service=ellis -o jsonpath='{.items[0].metadata.name}') -c ellis -- bash -c "sudo bash -c \"export PATH=/usr/share/clearwater/ellis/env/bin:$PATH ; cd /usr/share/clearwater/ellis/src/metaswitch/ellis/tools/ ; python create_numbers.py --start 6505550000 --count 10\""
diff --git a/samples/scenarios/clearwater_ims/scripts/run-live-test.sh b/samples/scenarios/clearwater_ims/scripts/run-live-test.sh
new file mode 100755
index 0000000..6fb0a50
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/scripts/run-live-test.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+TITLE="System Information for $HOSTNAME"
+RIGHT_NOW=$(date +"%x %r %Z")
+TIME_STAMP="Updated on $RIGHT_NOW by $USER"
+
+BONO_SIP_PROXY_IP=$1
+ELLIS_IP=$2
+BASIC=$3
+
+para1=0
+para2=0
+if [[ -n "$BONO_SIP_PROXY_IP" ]];then
+ para1=1
+else
+ echo "ERROR: Missing External Loadbalancer IP for Bono"
+fi
+if [[ -n "$ELLIS_IP" ]];then
+ para2=1
+else
+ echo "ERROR: Missing External Loadbalancer IP for Ellis"
+fi
+
+if [ "$para1" -eq "0" ];then
+ echo "";echo "USAGE: $0 <BONO_SIP_PROXY_IP> <ELLIS_IP>";echo ""
+ exit
+fi
+if [ "$para2" -eq "0" ];then
+ echo "";echo "USAGE: $0 <BONO_SIP_PROXY_IP> <ELLIS_IP>";echo ""
+ exit
+fi
+
+
+if [[ $para1 == 1 && $para2 == 1 ]];then
+ if [ "$BASIC" == "basic" ];then
+ docker exec -it live-test bash -c "source /etc/profile.d/rvm.sh && cd /opt/clearwater-live-test && rake test[default.svc.cluster.local] PROXY=$BONO_SIP_PROXY_IP ELLIS=$ELLIS_IP SIGNUP_CODE=\"secret\" TESTS=\"Basic Call - Mainline\""
+ else
+ docker exec -it live-test bash -c "source /etc/profile.d/rvm.sh && cd /opt/clearwater-live-test && rake test[default.svc.cluster.local] PROXY=$BONO_SIP_PROXY_IP ELLIS=$ELLIS_IP SIGNUP_CODE=\"secret\""
+ fi
+fi