From 42fd7cfa722f434abfc5a3154527fc77b06a6e9f Mon Sep 17 00:00:00 2001 From: Vladimir Khlyunev Date: Thu, 6 Jun 2019 13:20:04 +0400 Subject: [PATCH] Reintroduce plugins tests Change-Id: Ib40e04f4fb129dda062cee3f6743ad2820a6e466 --- maintenance-ci/mos/jobs/9.x.swarm.tests.yaml | 11 ++++++++++ .../mos/macroses/download-plugins.yaml | 22 +++++++++++++++++++ .../mos/scripts/download_fuel_plugins.sh | 21 ++++++++++++++++++ maintenance-ci/mos/templates/swarm-test.yaml | 1 + 4 files changed, 55 insertions(+) create mode 100644 maintenance-ci/mos/macroses/download-plugins.yaml create mode 100755 maintenance-ci/mos/scripts/download_fuel_plugins.sh diff --git a/maintenance-ci/mos/jobs/9.x.swarm.tests.yaml b/maintenance-ci/mos/jobs/9.x.swarm.tests.yaml index 314a259..7a2ecdc 100644 --- a/maintenance-ci/mos/jobs/9.x.swarm.tests.yaml +++ b/maintenance-ci/mos/jobs/9.x.swarm.tests.yaml @@ -144,6 +144,11 @@ swarm-test/custom-overrides-plain-properties: | KVM_USE=true - test_tags +########################################## +#plugins base + - fuel_plugin_example + - install_plugin_after_cluster_create + - detach-rabbitmq-ci-group ########################################## - mos/templates/swarm-test: # TODO: HUGE nodes, 8gb ram @@ -227,3 +232,9 @@ ENV_SLAVE_LOGIN=root ENV_SLAVE_PASSWORD=r00tme # SLAVE_NODE_MEMORY=5120 + ##### plugin huge + - thread_separate_haproxy: + swarm-test/env-name-suffix: "haproxy-detach" + swarm-test/custom-overrides-plain-properties: | + MULTIPLE_NETWORKS=true + USE_HAPROXY_TEMPLATE=true \ No newline at end of file diff --git a/maintenance-ci/mos/macroses/download-plugins.yaml b/maintenance-ci/mos/macroses/download-plugins.yaml new file mode 100644 index 0000000..ae4fb9b --- /dev/null +++ b/maintenance-ci/mos/macroses/download-plugins.yaml @@ -0,0 +1,22 @@ +- builder: + name: download-plugins + builders: + + - inject: + properties-content: | + PLUGINS=${WORKSPACE}/plugins_data + PLUGINS_URL=http://maintenance-ci.scc.mirantis.net/job/9.0.build-fuel-plugins/lastSuccessfulBuild/artifact/built_plugins/ + + - inject: + properties-content: | + EXAMPLE_PLUGIN_PATH=${PLUGINS}/fuel_plugin_example-1.0.0.fp + EXAMPLE_PLUGIN_V3_PATH=${PLUGINS}/fuel_plugin_example_v3-3.0-3.0.0-1.noarch.rpm + EXAMPLE_PLUGIN_V4_PATH=${PLUGINS}/fuel_plugin_example_v4_hotpluggable-4.0-4.0.0-1.noarch.rpm + SEPARATE_SERVICE_DB_PLUGIN_PATH=${PLUGINS}/detach-database-1.1-1.1.0-1.noarch.rpm + SEPARATE_SERVICE_RABBIT_PLUGIN_PATH=${PLUGINS}/detach-rabbitmq-1.1-1.1.2-1.noarch.rpm + SEPARATE_SERVICE_KEYSTONE_PLUGIN_PATH=${PLUGINS}/detach-keystone-1.0-1.0.2-1.noarch.rpm + SEPARATE_SERVICE_HAPROXY_PLUGIN_PATH=${PLUGINS}/detach_haproxy-2.0-2.0.0-1.noarch.rpm + SEPARATE_SERVICE_BALANCER_PLUGIN_PATH=${PLUGINS}/external_loadbalancer-2.0-2.0.0-1.noarch.rpm + + - shell: + !include-raw: '../scripts/download_fuel_plugins.sh' diff --git a/maintenance-ci/mos/scripts/download_fuel_plugins.sh b/maintenance-ci/mos/scripts/download_fuel_plugins.sh new file mode 100755 index 0000000..f7109ac --- /dev/null +++ b/maintenance-ci/mos/scripts/download_fuel_plugins.sh @@ -0,0 +1,21 @@ +#!/bin/bash +set -ex + +: "${PLUGINS_URL?}" +: "${PLUGINS?}" + +rm -rvf "${PLUGINS}" +mkdir -p "${PLUGINS}" + +for _p in EXAMPLE_PLUGIN_PATH \ + EXAMPLE_PLUGIN_V3_PATH \ + EXAMPLE_PLUGIN_V4_PATH \ + SEPARATE_SERVICE_DB_PLUGIN_PATH \ + SEPARATE_SERVICE_RABBIT_PLUGIN_PATH \ + SEPARATE_SERVICE_KEYSTONE_PLUGIN_PATH \ + SEPARATE_SERVICE_HAPROXY_PLUGIN_PATH \ + SEPARATE_SERVICE_BALANCER_PLUGIN_PATH ; do + _plugin_path="${!_p}" + _plugin_name="${_plugin_path##*\/}" + curl -s "${PLUGINS_URL}${_plugin_name}" -o "${_plugin_path}" +done \ No newline at end of file diff --git a/maintenance-ci/mos/templates/swarm-test.yaml b/maintenance-ci/mos/templates/swarm-test.yaml index 95193ea..5c8dd52 100644 --- a/maintenance-ci/mos/templates/swarm-test.yaml +++ b/maintenance-ci/mos/templates/swarm-test.yaml @@ -87,6 +87,7 @@ properties-content: $MOS_MIRROR_OVERWRITES - inject-text-parameter: properties-content: $EXTRA_OPTS + - download-plugins - 9x-run-sys-test publishers: -- 2.45.2