CORD-2858 adding xos-api-test make target

Change-Id: Ia2b6ffcc37dbbd1ad88abec67366e4b26d7608f1
diff --git a/.gitignore b/.gitignore
index 6543938..8cfc081 100644
--- a/.gitignore
+++ b/.gitignore
@@ -63,3 +63,5 @@
 kubespray
 helm-charts
 
+# venv
+venv-xosapitest
diff --git a/Makefile b/Makefile
index dd65461..55441a7 100644
--- a/Makefile
+++ b/Makefile
@@ -400,6 +400,15 @@
 
 
 # Testing targets
+venv-xosapitest:
+	bash ../test/cord-tester/src/test/setup/venv-apitests.sh || true
+
+xos-api-test: venv-xosapitest
+	bash -c "source venv-xosapitest/bin/activate && $(ANSIBLE_PB) $(PI)/xos-api-test-playbook.yml" $(LOGCMD)
+
+clean-xos-api-tests:
+	rm -rf ../test/cord-tester/src/test/cord-api/Tests/Logs/*
+	rm -rf venv-xosapitest || true
 
 # R-CORD specific targets
 pod-test: | $(TESTING_PREREQS)
diff --git a/scripts/cord-bootstrap.sh b/scripts/cord-bootstrap.sh
index b6121c2..a434252 100755
--- a/scripts/cord-bootstrap.sh
+++ b/scripts/cord-bootstrap.sh
@@ -55,7 +55,7 @@
     sudo apt-get update
     sudo apt-get -y install apt-transport-https build-essential curl git python-dev \
                             python-netaddr python-pip software-properties-common sshpass
-    sudo pip install gitpython graphviz "Jinja2>=2.9"
+    sudo pip install gitpython graphviz "Jinja2>=2.9" virtualenv
     sudo apt-add-repository -y ppa:ansible/ansible  # latest supported version
     sudo apt-get update
     sudo apt-get install -y ansible