Commit Graph

23 Commits

Author SHA1 Message Date
Andreas Jaeger 24d98abd3e Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I658efd028f1b23bc21b327fc55d39a7fa5824ec1
2019-12-18 09:48:08 +01:00
Cao Xuan Hoang 8520aeafd9 Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I5b4bdcb674b58ab419d00ca9c6bff105ce19aca8
2016-09-07 13:28:38 +07:00
Tatyana Leontovich ff9a20a192 Add usage of namedtuples for run and tests status
To get possibility to change status in one place,
add consts.py with enum usage.

Closes-Bug: #1404866

Change-Id: I6a7873bc2de919ed4cc99dcfe8e3e1febda606c0
2016-04-04 14:02:23 +03:00
Alexandr Kostrikov 415efd1d09 Fix problem with race condition of forked ostf
When there is a more then one check in ostf it fails
and only one process works. Other forks are dead because
they can not fetch information from database.
Eventually information is flushed in database, but only
after forks are dead.
Sleep helped to wait for information to propagate to
other processes. This fix flush and commit information
to database so it is available for other forks.

Change-Id: Ib8540309dee00f7f0ea7cd65215c4872c4147b6f
Closes-bug: #1520218
2015-12-10 15:54:33 +03:00
Dmitry Teselkin 23b7ae2a1a Workaround to get ostf working
Temporary solution, after stabilisation
should be removed.

Related-Bug: #1522941
Change-Id: Ida45bea2ba979748bf6853ef947fc665f865ed42
2015-12-04 19:36:10 +00:00
Dmitry Teselkin a98973482f Support for new oslo namespaces
Compatible with CentOS6 & CentOS7 master node

Blueprint: master-on-centos7

Related-Bug: #1516621

Change-Id: I06bf0dc8406ac6551632702f90b427f5a42f8088
2015-11-29 17:13:17 +00:00
Sebastian Kalinowski cbe0ea30d9 Added hacking checks to tox
Fixed all places where hacking rules (v0.7) was failing
Replaced ''' with """ to make them consistent

Change-Id: I9c1c20f910df696056d2a6a91c33ff7bad266b9f
Related-Bug: #1404892
Closes-Bug: #1408240
2015-01-19 12:36:14 +00:00
Sebastian Kalinowski 727cd3cc93 Add logging to file for OSTF tests
After that change  when performing a OSTF test its result will be
logged to a file under /var/log/ostf directory.
Each file has name in format cluseter_CLUSTER_ID_TESTSET.log,
for example: cluster_1_smoke.log

* added ResultsLogger for logging tests restuts
* removed deprecation because of wrong import in models

Change-Id: If69a4292fcc66565ba969396d591e38eddba92ce
Closes-Bug: #1297958
2014-09-29 08:25:18 +00:00
Dima Shulyak 74ecb4a85f Token passthrough for nailgun client in ostf
- Ostf config generator makes api requests to nailgun
- Changed requirements of pecan to version that used in production (0.4.5)

related to blueprint access-control-master-node
Related-Bug: #1339082
Change-Id: I96861ef75adbb813a9c91a88e1db16211dac9c4c
2014-07-08 17:32:04 +03:00
Artem Roma 6f514d3487 OS access credentials processing added
What is done:
- os access credentials retriving from POST request body on wsgi
  controller for TestRun entity added;
- needed environment variables setting added in nose StoragePlugin;
- settuping process for HealthCheck updated;
- integration tests for ostf adapter updated;
- unit tests also updated;
- change was tested on deployed env.

Change-Id: I96580e4e59db0314a75c27f2dda49cf268b05b95
Closes-Bug: #1281838
2014-07-02 14:12:51 +03:00
Dima Shulyak 5d24a68269 Ostf config refactoring
- Use oslo.config as single configuration option
- some tests usage clarification

Closes-Bug: #1326351
Change-Id: Ibff61181f338d28cb43eb61d6a73e5b80d6dbe7f
2014-06-24 15:21:39 +03:00
Artem Roma 353f918197 Fix bug with cleanup running for locked tests
Code for lock aquiring modified.

- locks are aquired inside try statement,
 prevents from being interrupted outside of main flow
- prevent 500 error in case process was already stopped
- remove SIGUSR1 interrupt handler with SIG_DFL
 which simply returns 0

Change-Id: Icc31510db705b11c2b628604d0480d8da6aedeca
Closes-Bug: #1318631
2014-05-15 14:40:47 +03:00
Artem Roma a729a7d53f Row tests exectuion via locking mechanism added
Now testruns are created at the same time but first of dependent aquire
lock on file descriptor. This allows to separate execution of dependent
testruns. Lock is corresponding to particular set of tests.

Each of dependent testsets store names of series that it belongs to on
exclusive_testsets attribute. In this case testrun have to aquire
all locks which are corresponding to those series.

Change-Id: Ia248058dbec336ba2fad7703cc6a1aaf67d8e36e
Closes-Bug: #1301362
2014-04-02 16:00:49 +03:00
Artem Roma 94386ff7fe Flake8 errors fix
Fix for flake8 errors (mostly in comments) added.

Change-Id: I868172b521809eb2aafe8e80102ab4e96d0f6f0e
2014-03-27 15:43:33 +02:00
Artem Roma 8b8ae7bccd Cleanup managenement via system signal handling
Now cleanup is executed alongside with testrun code in subprocess. This
approach is more flexible and logical. To properly trigger cleanup
action signal mechanism was implemented. Also code which manages
restarting of test runs were revisited in order to tune it for
supporting new changes.

Change-Id: I5bec9cc3433b1126fb85201d9f6e5b59b29f50ce
2014-03-18 15:19:26 +02:00
Artem Roma b296839ccc Complete session hadling refactoring
All parts of system have been refactored. Session creation has been
simplified. Now session is created only when it is desperately needed and
its using is maximized instead of uncontrollable producing for each and
every block of code which is supposed to communicate with db.

This refactoring simplifies db data transfer management and makes it
more explicit for further developing.

Unit and functional tests have been updated.

Change-Id: I15a980432f9da5cac5f04b1f4f4af64d1a002b60
2014-02-28 14:58:44 +02:00
Artem Roma 9f87dc93f8 Fix bug with no test status updating while standalone run.
Sometimes when single test from testrun is started or restarted its
status is not updated by nose storage plugin. In those conditions
session from nose storage plugin can not access data that were provided
by session of higher level in models.py logic of parent process.
Explicitly closing parent process session before start test running
does help but some additional code modification required in
this case.

Change-Id: Ie5415963c189b66cca58986370982f814f2a7431
2013-12-03 18:19:13 +02:00
Artem Roma fdf8007eab Unittests refactoring for ci
Logic that supports automated execution of unit tests for ci purpose
were added via setUp/tearDownPackage functions in
testing/tests/__init__.py file. Now when tests started via nose in
package setUp function nailgunmimic server is setting up in separate
process and terminating in tearDown. This functionality provides unified
way to execute unit tests.

Change-Id: I4a033757c8d902c90b0a6c7eb54c1511ab721f99
2013-11-22 18:55:46 +02:00
Artem Roma fd89458b09 Fix pep8 for ostf_adapter
PEP8 fix has been added for ostf_adapter scripts. Fix is incomplete
(especially for E501 "Line is too long") because of meaningless of such
fixing.

Fix unit tests

Several unit tests have been fixed in order to support new discovery
behaviour - new deployment tag which is indicates network manager for
deployment (nova-network or quantum).

Change-Id: Id7b39477e33719695bfcc99173825d75b304c5b3
2013-10-18 19:31:12 +03:00
Artem Roma 10a770c7ec Fix cleanup for testsets
Logic that introduces cleaning up actions after manual stop of testset
has been fixed. For smoke testset cleanup_path was added to
__profile__. cleanup function from cleanup.py has been modified so that
it now properly treats situations when different additional components
is not installed. To NoseDriver's method _clean_up was added
functionality that retrieves deployment tags for current cluster and
passes it to cleanup function which in turn perform proper cleaning
actions.

Change-Id: Ib7bd3c37d8b4cf57d1608f9ab3bb44f3b046e582
2013-10-15 18:48:25 +03:00
Artem Roma 8c0fa6ed46 Field 'deployment_tags' for tests and test_sets alongside with migration to
support these changes were added. To fabfile task that performs creation
of new alembic migration was added. Additional refactoring and non-major
fixes.

cluster_id field was added for test_sets (migration script was
supplied). Logic of discovering test_sets and tests was moved to
controllers (test-set controller). Nose plugin was refactored. Tests was not be
supplied for new features.

Test discovering in controllers. Models description and discovery logic changing

New pure init revision for alembic (other have been deleted). Some non-major refactoring to other files

All system was refactored in order to support new logic of discovering test_sets and tests in ostf runtime

Non-major fix in fabfile. For unit tests logic that controlls data writing to db from tests has been added. Test for nose_discovery have been supplied

Some non-major fixes to nose_discovery plugin. Unit tests for nose_discovery have been finished

deployments_types_tests were added for the purpose of testing new discovery behaviour and with intesions to keep logic defined with dummy_tests. Unit tests for nose discovery have been fixed.

New fake empty tests were added just to keep logic defined in dummy_tests

Unit tests for wsgi_controllers have been fixed

unit tests for wsgi controllers have been finished

Some fixes to wsgi contorollers (now test_set controller returns non
first result from query but all; test controller return all tests with
no test_run id present within it). Nose discovery function was fixed:
now it searches for test_sets for given cluster id without checking data
in db (in this case sqlalchemy merge should prevent from making
dublicates). Some methods in nose_storage_plugin were fixed for the sake
of supporting new behaviour of get_description function (with new
addition value returning - deployment_tags). Attemptings to rewrite
functional tests were made thus TestingAdapterClient was modified. Some
other non-major fixes were added.

New changes to nose_discovery func (checking out of cluster's
redeploying, implementing is not finished). Some changed to controllers
(mostly to returning value). Nose discovery tests were changed in order
to implement future changes. Proper processing of debug_tests path was
added to wsgi_utils.

Some fixes to discovery logic and different tests

BaseTestingAdapter was simplified. Several functional tests have been
fixed.

For Test class new element 'disabled' for statuses enumerate was added.
New initial_migration was added (since models were modified). Functional
tests were fixed to support new logic.

Smth strange with wsgi_utils.

Test for redeployed cluster were added to test_wsgi_controllers.py.
multinode_deployment_tests were fixed.

Change-Id: Ie9acfc6b57c4c3d2d1e5a7480929328fb193bf2c
2013-10-08 14:55:40 +03:00
Dmitry Shulyak 82a873222b cleaning up, improvements, etc 2013-09-20 16:19:09 +03:00
Tatyanka afbe1ea46c Move plugin from ostf_plugin repo 2013-09-18 14:20:11 +03:00