Project

General

Profile

Actions

Feature #10840

closed

Develop unit tests for OpenStack deployment

Added by Evgeny Novikov over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Category:
Testing
Target version:
Start date:
05/14/2021
Due date:
% Done:

0%

Estimated time:
Published in build:

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.

Actions #1

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

Actions #2

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.

Actions #3

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.

Actions

Also available in: Atom PDF