Feature #10840
closedDevelop unit tests for OpenStack deployment
0%
Description
Klever in OpenStack performs most verification. That's why it has sense to test corresponding deployment scripts as one more CI action. From my point of view quite important thing to test is correct operation of deployment scripts with instances created with their old version.
Updated by Ilya Shchepetkov over 3 years ago
- Status changed from New to Open
- Target version set to 3.3
I believe we will be able to implement this for Klever 3.3
Updated by Ilya Shchepetkov over 3 years ago
- Status changed from Open to Resolved
Some tests are implemented in the feature-10840
branch. More tests can be added later if the need arises.
Tests can be launched using the following command:
pytest -s -x tests/test_openstack.py
where -s
prints logging output directly to the terminal, and -x
stops tests after first failure.
You can also specify Openstack username and key file using the following environment variables:
OPENSTACK_USER=shchepetkov OPENSTACK_KEY=/home/shchepetkov/.ssh/cloud.key pytest -s -x tests/test_openstack.py
Note that Openstack password must be stored on the disk using --store-password
beforehand.
Updated by Evgeny Novikov over 3 years ago
- Status changed from Resolved to Closed
Testing is a great technique to ensure proper behavior of programs and to catch regressions. This is also the case for this work. After some minor fixes I merged the branch to master in ce0bf92f6.