Commit Graph

14 Commits

Author SHA1 Message Date
wu.chunyang 93f35c7f04 Get rid of nose and Proboscis
they are not maintained for a long time, and trove already switch
the tests to templest.
This commit removes the usage of them. more details see story.

Story: 2010882
Task: 48606

Depends-On: https://review.opendev.org/c/openstack/trove/+/914228

Change-Id: Ie021e0bd708cf8ed13853dea632312af38190205
2024-03-28 07:07:15 +00:00
Lingxian Kong 7d78c74158 Add python-troveclient in requirements.txt
Change-Id: I2bd0d81171df85c05423e19ab2e4afa82fcf880e
2020-03-15 20:57:39 +13:00
Marcin Piwowarczyk e9cc6ca372 Execute functional test jobs running under python3
Functional tests are executed by trovestack script, which uses python
in default OS version which is 2.7.

This change wraps python in tox and executes trovestack int_tests in
virtual enviroment, starting them in python3.

Any future python version change could be managed by tox framework.

Change-Id: I3a849978241d3d0669ef9e1c802ff504ac3c32cb
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
2018-12-14 13:07:13 +01:00
yuhui_inspur cf3a867872 Fix a few typos
Fix a few typos.

Change-Id: I90678653d14afb0c21b7ca3f973ce8b417b22add
2017-03-30 03:43:59 +00:00
Ali Adil 191327ff06 Fix grammatical mistakes, "it's" to "its"
Noticed a  grammatical mistake in a log message where "it's" was being
used instead of "its". Corrected the message and searched for similar
mistakes in the project. Fixed others files which were mostly
related to comments.

Change-Id: I59b5b6d6ea59da670f793fb23fbd43523ca82a72
2016-05-06 13:28:38 -04:00
Anh Tran ceae9a336b Removing some redundant words
This patch removes some redundant words.

Change-Id: If3160bdb020a5a0cdca7bb6cc024bcf09f7ddd81
2016-03-28 09:23:17 +07:00
Matt Van Dijk 27a4e2c650 Move to oslo_db
Replace the sqlalchemy engine and session management with an oslo.db
facade. This does the work transparently and fixes connection
mismanagement.

The changes involve:
- modifying the sqlalchemy session script to use oslo_db functions
- adding the oslo_db engine configuration parameters
- tweaking the faked tests to pass*

* the faked tests are sensitive to sleep calls and oslo_db uses a
  sleep(0) hack which was causing issues. The coverage of the tests was
  not affected.

Implements: blueprint move-to-oslo-db
Change-Id: I59f1fc0fe1551b9a815a51e6a620fabf060b013f
2015-12-14 02:18:06 +00:00
Craig Vyvial d7cd1164f6 Adding more doc strings to event simulator
Since the event simulator is used in the tests this will help
outline what it does behind all the black magic.

Change-Id: If6659af31edc96a689cf09ae6545f0dca072a552
2015-10-14 23:31:52 -05:00
Sushil Kumar 843bb0cd53 Fixes hacking rules
This patchset helps reducing the ignored pep8 errors.

Fixed some ignored hacking rules, as listed follows:
- E111 indentation is not a multiple of four
- E122 continuation line missing indentation or outdented
- E123 closing bracket does not match indentation of opening bracket's line
- E128 continuation line under-indented for visual indent
- E251 unexpected spaces around keyword / parameter equals
- E265 block comment should start with '# '
- E713 test for membership should be 'not in'
- H105  Don't use author tags
- H306  imports not in alphabetical order

Change-Id: Iadf2af4f6ec90420153ad63b5a41650392ef2cbd
2015-05-29 07:27:59 +00:00
Tim Simpson 220e3e7255 Event simulator II
The previous event simulator simulated time by making all tasks that
would have been launched as threads run in the same thread. That only
worked to a point but didn't properly simulate more complex behaviors
such as clustering.

This new one handles things properly by still running tasks in
eventlet's greenthreads but forcing them to only run one at a time.

Change-Id: Ife834e8d55193da8416ba700e55e7b0c2496f532
2014-09-29 10:32:29 -05:00
Tim Simpson f997879cbe Fail a test if time.sleep called for no reason
If a mild error screws something up in task manager, an entire class
of tests will continue polling using GET requests until they hit their
rate limit, destroying any attempt to parse the test output to see
what is wrong. This pull request fixes that.

Change-Id: I7c00a174dfb7970357ee2bd71550983d68e0e8ae
Closes-Bug: 1315518
2014-05-02 15:35:47 -05:00
Sushil Kumar f39b08c8e6 Adds LOG in event_simulator.py
Reasons:
- Module method event_simulator_sleep uses LOG, but LOG was nowhere
  implemented in module.

Changes:
- Added LOG in the module.

Change-Id: I0ddee7a5d933317e3ad0add4b791e945f000629d
Closes-Bug: #1264721
2013-12-28 18:25:02 +00:00
Nikhil Manchanda 8a1db9b689 Fixed PEP8/flake8 issues
We need to fix PEP8/flake8 issues corresponding to the new
hacking rules that got added before we can update to the
new global requirements.

Change-Id: Iff995139d258549ff9a8e3e5018e964efa2ab152
2013-12-10 15:47:09 -08:00
Tim Simpson c157502a9c Simulates events so run_tests.py executes 10x faster
This restores some functionality that had been removed earlier to use
a class from Oslo. It turns out making it work with the new Oslo RPC
manager code wasn't too hard, plus the new version is hopefully easier
to follow.

Change-Id: I18e4d06359f28605cd764a10ace791997f534ed7
Implements: blueprint bring-back-event-simulator
2013-10-17 14:43:54 -05:00