Browse Source

docs: update the upgrade tests instruction

keep-around/b20fd39444566ac137ca647354cb009d4b33699d
Loïc Dachary 7 months ago
committed by some
parent
commit
b20fd39444
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 13
      docs/community/contribute.rst

13
docs/community/contribute.rst

@ -209,19 +209,20 @@ Upgrade testing
---------------
To verify that a service (`icinga` for instance) can be upgraded from
a given Enough version (`2.0.7` for instance), use:
a given Enough version (`2.1.14` for instance), use:
::
$ export ENOUGH_API_TOKEN=XXXXXXX
$ tests/run-upgrade-tests.sh 2.0.7 icinga
$ tests/run-upgrade-tests.sh 2.1.14 icinga -- \
--enough-no-destroy \
--enough-driver=libvirt playbooks/icinga/tests
...
`run-upgrade-tests.sh` performs the following steps:
* checkout the ``2.0.7`` tag into ``../infrastructure-versions/2.0.7/infrastructure``
* run ``tox -e icinga`` from the ``2.0.7`` directory and keep the hosts
* run ``tox -e icinga`` from the current version, re-using the hosts with the icinga version installed from ``2.0.7``
* checkout the ``2.1.14`` tag into ``../infrastructure-versions/2.1.14/infrastructure``
* run ``tox -e icinga`` from the ``2.1.14`` directory and keep the hosts because of ``--enough-no-destroy``
* run ``tox -e icinga`` from the current version, re-using the hosts with the icinga version installed from ``2.1.14``
ssh to a host under test
------------------------

Loading…
Cancel
Save