Patch robotVM script to support LongevityFramework 53/41153/2
authorKumar Rishabh <shailrishabh@gmail.com>
Thu, 30 Jun 2016 15:17:32 +0000 (20:47 +0530)
committerKumar Rishabh <shailrishabh@gmail.com>
Thu, 30 Jun 2016 21:28:50 +0000 (02:58 +0530)
This patches robotVM scripts to add support for Longevity Framework.
We need python libraries to interact with elasticsearch node
(elasticsearch, elasticsearch-dsl) and libraries to plot the data
fetched(matplotlib). It also adds an elasticsearch node installation
on the controllerVM.

Change-Id: I3a8af083082fb5dcf89bd8feefcff6819bfeda30
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
jenkins-scripts/controller.sh
jenkins-scripts/robot.sh
jjb/integration/include-raw-integration-install-robotframework.sh

index dc8deb17294399fa1034d20686df8c430ddaa32b..ab4db5e92a07ac7efd78507d507ddcf4f747d863 100755 (executable)
@@ -29,6 +29,17 @@ echo "Installing the Cassandra Server..."
 
 tar -xvf apache-cassandra-2.1.14-bin.tar.gz
 
+# Installation of Elasticsearch node
+
+mkdir /tmp/elasticsearch
+cd /tmp/elasticsearch
+
+wget --no-verbose https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.tar.gz
+
+echo "Installing the Elasticsearch node..."
+
+tar -xvzf elasticsearch-1.7.5.tar.gz
+
 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
 Defaults:jenkins !requiretty
 jenkins     ALL = NOPASSWD: ALL
index 79eb9bf58676b4455f66e3b92e5c18afa6cfae27..064af6e5cfa84647a5d383ee1c5203ccec9ebef7 100755 (executable)
@@ -16,6 +16,10 @@ yum install -y -q libffi-devel openssl-devel
 ## Install netcat & docker-py
 yum install -y -q nc python-docker-py
 
+# Install dependencies for matplotlib library used in longevity framework
+yum install -y yum-utils
+yum-builddep -y python-matplotlib
+
 # make sure the firewall is stopped
 service iptables stop
 
index ee55be698ed147788a4697af5b32383e83bbc165..59e870e24b96c07da39379b9d13f604be16ed202 100644 (file)
@@ -27,6 +27,10 @@ pip install --upgrade robotframework{,-{httplibrary,requests,sshlibrary,selenium
 # Module jsonpath is needed by current AAA idmlite suite.
 pip install --upgrade jsonpath-rw
 
+# Modules for longevity framework robot library
+pip install elasticsearch==1.7.0 elasticsearch-dsl==0.0.11
+pip install --upgrade matplotlib
+
 # Print installed versions.
 pip freeze