Complete cleaning of db schema added before execution of integration
tests. The main reason of introducing such cleaning - issue with
applying alembic revisions with same uid but different content that are
stored in different git branches, which leads to erros while interaction
with db.
Change-Id: I94611015beb4dd83d036b813c9337958dc6af064
Closes-Bug: #1421164
Now version of release for which particular test is suitable can be
specified in test sets profile attribute and tests' docstrings. For now
we assume that test is available for releases that are == or >= in
comparison to release specified for test.
Change-Id: I568db380120e3a429bdd531f51a7301c49d41281
Implements: blueprint ostf-tests-versioning
Now cleaning of db is available trough command line interface via
ostfctl util. In order to clean db use "ostfctl cleandb --dbpath
db-connection-string". db-connection-string is optional flag and its
default is for ostf database.
Change-Id: I0e6161e5b1a4d892e4f092b7506ac2e08e1bc2f8
For ostf-server 'cleanup_db' command was added thus file cli_config and
adapter_api were modified in order to provide new behaivour of
ostf-server when mentioned command is supplied. New function clean_up_db
was added to nailgun_hooks.py file. This function performs cleaning
action for db.
Change-Id: Ifc88c2d3b617cc9e8f575182e5d4917280e9b7a2