]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Reintroduce plugins tests 44/41344/2
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Thu, 6 Jun 2019 09:20:04 +0000 (13:20 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Mon, 10 Jun 2019 06:28:14 +0000 (10:28 +0400)
Change-Id: Ib40e04f4fb129dda062cee3f6743ad2820a6e466

maintenance-ci/mos/jobs/9.x.swarm.tests.yaml
maintenance-ci/mos/macroses/download-plugins.yaml [new file with mode: 0644]
maintenance-ci/mos/scripts/download_fuel_plugins.sh [new file with mode: 0755]
maintenance-ci/mos/templates/swarm-test.yaml

index 314a25967aecfd39fe14767f424f2c1f67b2cd2a..7a2ecdc85d61b5608d44a8c377c40d612f11370b 100644 (file)
             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
                 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 (file)
index 0000000..ae4fb9b
--- /dev/null
@@ -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 (executable)
index 0000000..f7109ac
--- /dev/null
@@ -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
index 95193ea35a6bd21c6eb6e53f0fb4920a89836d2a..5c8dd52de245b5638cd4eb2bd1739738bdec427c 100644 (file)
@@ -87,6 +87,7 @@
         properties-content: $MOS_MIRROR_OVERWRITES
     - inject-text-parameter:
         properties-content: $EXTRA_OPTS
+    - download-plugins
     - 9x-run-sys-test
 
     publishers: