X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Fuse_cases%2Fseba_on_arm%2Ftest%2Fbbsim%2Ftest.sh;fp=src%2Fuse_cases%2Fseba_on_arm%2Finstall%2Ftest.sh;h=b64acdd568e428019372184c7cd83a150a32c02e;hb=e70f1cbe15e44cc01e3114cd69481e9b33ce351f;hp=3577d3f627dbcfefc0a41d4706660c4238eed2ba;hpb=8c69ce1b6d03bd191b720a98adfad200d3d99745;p=iec.git diff --git a/src/use_cases/seba_on_arm/install/test.sh b/src/use_cases/seba_on_arm/test/bbsim/test.sh old mode 100644 new mode 100755 similarity index 53% rename from src/use_cases/seba_on_arm/install/test.sh rename to src/use_cases/seba_on_arm/test/bbsim/test.sh index 3577d3f..b64acdd --- a/src/use_cases/seba_on_arm/install/test.sh +++ b/src/use_cases/seba_on_arm/test/bbsim/test.sh @@ -1,11 +1,9 @@ #!/bin/bash -ex # shellcheck disable=SC2016 -#Modified from https://github.com/cachengo/seba_charts/blob/master/scripts/mini_test.sh - -TOSCA_POD=`kubectl get pods | grep xos-tosca | cut -d " " -f1` -TOSCA_IP=`kubectl describe pod $TOSCA_POD | grep Node: | cut -d "/" -f2` -BBSIM_IP=`kubectl get services -n voltha | grep bbsim | tr -s ' ' | cut -d " " -f3` +TOSCA_POD=$(kubectl get pods | grep xos-tosca | cut -d " " -f1) +TOSCA_IP=$(kubectl describe pod "$TOSCA_POD" | grep Node: | cut -d "/" -f2) +BBSIM_IP=$(kubectl get services -n voltha | grep bbsim | tr -s ' ' | cut -d " " -f3) # Create the first model @@ -14,7 +12,7 @@ curl \ -H "xos-password: letmein" \ -X POST \ --data-binary @fabric.yaml \ - http://$TOSCA_IP:30007/run + "http://$TOSCA_IP:30007/run" # Create the second model sed "s/{{bbsim_ip}}/$BBSIM_IP/g" olt.yaml > olt.yaml.tmp @@ -23,5 +21,5 @@ curl \ -H "xos-password: letmein" \ -X POST \ --data-binary @olt.yaml.tmp \ - http://$TOSCA_IP:30007/run + "http://$TOSCA_IP:30007/run" rm olt.yaml.tmp