Feature 10982: Public Cloud Robot Suite
Add Azure and Google Cloud CLIs to tests Dockerfile.
Add Jenkinsfile for Azure testing job. This job requires the following:
- Jenkins secret file for Azure credentials in JSON (AZURE_CREDENTIALS param)
- Two additional secrets for SSH public and private keys used when creating
the VMs (SSH_PRIVATE_KEY, SSH_PUBLIC_KEY)
Change-Id: Id4a0a1f401bc6a917532dd7498b187bf5887ea76
Signed-off-by: aguilard <e.dah.tid@telefonica.com>
diff --git a/docker/tests/Dockerfile b/docker/tests/Dockerfile
index 34eda45..d981f84 100644
--- a/docker/tests/Dockerfile
+++ b/docker/tests/Dockerfile
@@ -37,8 +37,11 @@
RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \
DEBIAN_FRONTEND=noninteractive apt-get --yes install \
+ apt-transport-https \
+ ca-certificates \
gettext-base=0.21* \
git=1:2.34.* \
+ gnupg \
iputils-ping=3:* \
jq=1.6* \
libmagic1=1:5.*
@@ -61,7 +64,16 @@
-r /usr/lib/python3/dist-packages/osmclient/requirements.txt \
-r /usr/share/osm-tests/requirements.txt
+# Google Cloud CLI
+RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
+RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
+RUN apt-get update && apt-get install -y google-cloud-sdk
+
+# Azure CLI
+RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash
+
RUN mv /usr/share/osm-tests/robot-systest /robot-systest
+RUN mv /usr/share/osm-tests/cloud-scripts /robot-systest/
RUN mv /usr/share/osm-tests/conformance-tests/ /robot-systest/
RUN mv /usr/share/osm-tests/charm.sh /usr/sbin/charm