Added support for soak test config file 25/4625/3
authorJerry Flood <jf9860@att.com>
Fri, 2 Jun 2017 20:46:11 +0000 (16:46 -0400)
committerJerry Flood <jf9860@att.com>
Fri, 2 Jun 2017 21:35:16 +0000 (17:35 -0400)
Issue: TEST-38
Change-Id: I40fdad36019cbfa6bee6e9ef7bf6193deb27fd47
Signed-off-by: Jerry Flood <jf9860@att.com>
docker/Dockerfile
runSoak.sh

index a39fb43..5d91cd3 100644 (file)
@@ -14,7 +14,7 @@ RUN apt-get update && \
     pip install --upgrade pip && \
     pip install robotframework  && \
     python --version
-    
+
 # Install chrome
 RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
     echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list  && \
@@ -23,10 +23,12 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
 
 # Copy the robot code
 COPY / /var/opt/OpenECOMP_ETE/
-COPY lighttpd.conf /etc/lighttpd/lighttpd.conf      
+COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
 RUN chmod 777 /var/opt/OpenECOMP_ETE/setup.sh
 RUN chmod 777 /var/opt/OpenECOMP_ETE/runTags.sh
 RUN chmod 777 /var/opt/OpenECOMP_ETE/dnstraffic.sh
+chmod 777 /var/opt/OpenECOMP_ETE/runSoak.sh
+chmod 777 /var/opt/OpenECOMP_ETE/runEteTag.sh
 
 # Update the ssh library so that it will run properly in the docker env
 RUN cd /var/opt/OpenECOMP_ETE && ./setup.sh
index 3b223ae..0769197 100644 (file)
@@ -1,7 +1,28 @@
 #!/bin/bash
 INSTALL_DIR=/var/opt/OpenECOMP_ETE
-DURATION=$1
+#
+# Execute tags built to support the hands on demo,
+#
+function usage
+{
+       echo "Usage: runSoak.sh [-p <filename> -d <seconds> -c <seconds>]"
+       echo " "
+       echo "       -p, --profile"
+       echo "               - name of JSON file containing test profile"
+       echo " "
+       echo "       -d, --duration"
+       echo "               - Duration of soak test (overrides value --profile)"
+       echo " "
+       echo "       -c, --cyclelength"
+       echo "               - Time between starting iterations of profile"
+       echo "                 If longer than total run time of a single iteration,"
+       echo "                 additional wait is added before starting the next iteration."
+       echo "                 Value has no effect if it is shorter than the total run time"
+       echo "                 of a single iteration over the profile."
+       echo "                 (overrides value in --profile)"
+}
+
 
 cd ${INSTALL_DIR}
 export PYTHONPATH=${INSTALL_DIR}/robot/library
-python -m loadtest.TestMain -d ${DURATION} --logfile /share/logs/soak_$$.log
\ No newline at end of file
+python -m loadtest.TestMain $@ --logfile /share/logs/soak_$$.log
\ No newline at end of file