mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2026-11-28 03:10:46 -06:00
ITSD-611934: Compare cached/supplied versions case-insensitively
LooseVersion only tokenises lowercase letters, so an uppercase qualifier such as 11.0.0-CONFDCDEV-4353-m02 became a single '-CONFDCDEV-' component that sorted above the GA '-z' marker. The cached milestone therefore won over the supplied GA release and upgrades silently reinstalled the milestone. Lowercase both values before comparing (comparison only). Adds product_install/confluence_cached_with_upgrade as a regression test.
This commit is contained in:
@@ -30,7 +30,7 @@ pipelines:
|
||||
- step:
|
||||
name: Pre Parallelization stage
|
||||
script:
|
||||
- echo "Running tests in 38 batches"
|
||||
- echo "Running tests in 39 batches"
|
||||
|
||||
- step:
|
||||
name: Check if the template is up-to-date
|
||||
@@ -38,7 +38,7 @@ pipelines:
|
||||
- |
|
||||
actual_scenario_count=$(find ./roles -type f -name "molecule.yml" -exec dirname {} ';' | wc -l | sed -e 's/^[[:space:]]*//')
|
||||
if ! grep -q "Running tests in ${actual_scenario_count} batches" bitbucket-pipelines.yml; then
|
||||
echo "Mismatch between expected (38) and actual number (${actual_scenario_count}) of scenarios. Please look at https://bitbucket.org/atlassian/dc-deployments-automation/src/master/DEVELOPMENT.md for instructions on how to fix this error."
|
||||
echo "Mismatch between expected (39) and actual number (${actual_scenario_count}) of scenarios. Please look at https://bitbucket.org/atlassian/dc-deployments-automation/src/master/DEVELOPMENT.md for instructions on how to fix this error."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -295,6 +295,20 @@ pipelines:
|
||||
- ./bin/install-ansible --dev
|
||||
- cd roles/product_install
|
||||
- pipenv run molecule test -s bitbucket_latest
|
||||
- step:
|
||||
name: product_install/confluence_cached_with_upgrade
|
||||
caches:
|
||||
- ansible-collections
|
||||
- docker
|
||||
- pip
|
||||
services:
|
||||
- docker
|
||||
script:
|
||||
- apt-get update && apt-get install -y rsync
|
||||
- export ANSIBLE_CONFIG=./ansible.cfg
|
||||
- ./bin/install-ansible --dev
|
||||
- cd roles/product_install
|
||||
- pipenv run molecule test -s confluence_cached_with_upgrade
|
||||
- step:
|
||||
name: product_install/confluence_latest
|
||||
caches:
|
||||
|
||||
Reference in New Issue
Block a user