update monitoring scripts
[osm/vim-emu.git] / utils / ci / test_sdk_monitor.sh
index 12cc44d..3a1d09c 100755 (executable)
@@ -2,7 +2,7 @@
 # test if a vnf can be deployed and monitored
 
 #start test emulator topology
-python src/emuvim/examples/monitoring_demo_topology.py &
+#python src/emuvim/examples/monitoring_demo_topology.py &
 
 # start a vnf
 son-emu-cli compute start -d datacenter1 -n vnf1  --net '(id=input,ip=10.0.10.3/24),(id=output,ip=10.0.10.4/24)'
@@ -21,11 +21,11 @@ son-emu-cli monitor stop_metric -vnf vnf1:output --metric tx_packets
 son-emu-cli compute stop -d datacenter1 -n vnf1
 
 # test if prometheus query worked
+echo $cpu_load
 if [[ $cpu_load =~ $regex ]] ; then
        echo " cpu monitor test OK"
        exit 0
 else
-       echo $cpu_load
        echo "cpu monitor test not OK"
        exit 1
 fi