10 Commits

Author SHA1 Message Date
Alexander Maretskiy
2c9b99aee6 [Tests] Improve RallyCliError exception
This adds cli command to RallyCliError message -
sometimes this information is helpful.

Change-Id: I05d2b036f73705a891826b5bb67b13a1723c4cfc
2016-10-10 15:12:07 +03:00
Sergey Skripnick
1f1e8fe5b3 Remove unnecessary shell=True in subprocess calls
All calls was using shell=True, but there are no shell features used.
Also use tox instead of setup.py in install tempest.

Change-Id: I2eb35fb8899c528d4e141d3a447eac53ce5d1a39
2015-11-27 10:59:31 +00:00
Sergey Skripnick
4d128251dd Run test_task_samples in separate sqlite db
Add optinal attribute 'force_new_db' to tests.functional.utils.Rally and
use it.

Change-Id: Ia7f0faedb5b5f6323c5e0ed00948b03a36e4f341
2015-09-30 15:12:06 +03:00
Andrey Kurilin
0f96f9cce7 Don't change global environment in functionaltests
Change-Id: Ifab9260fd8d195a61e6b22ce54e9fe2f3015d523
2015-06-18 18:26:12 +03:00
Sergey Skripnick
54350da689 Rename rally.cmd to rally.cli
There is module 'cmd' in standard library, and unittest's discover
does modify sys.path when running tests. This cause errors when running
unit tests in some environments (E.g. pycharm)

Change-Id: I4fd2d271da1b7fd300fbbeb6107aa958e716fd2b
Closes-Bug: 1457162
2015-05-21 18:14:19 +03:00
Hugh Ma
6a3f210375 Data structs declared with constructor replaced with literal
Changes:
  - list() declarations replaced with []
  - dict() declarations replaced with {}
  - Added N351 to hacking for literal rule along with checks, test hacking, and to readme
  - Minor fix to incorrect path in hacking guidelines pointing to test_hacking.py

Change-Id: Ie7b9201d61b6f2024217b6f4117605eb52fa916a
Closes-Bug: #1437515
2015-04-14 10:49:17 -07:00
Andrey Kurilin
b048519485 Add Python 3.4 as supported interpreters
Rally code is python 3.4 compatible(required several small fixes, see a list
below for more details), so we can mention this great information in
setup.cfg file.

Fixed py34 incompatibe issues:
 - usage of OrderedDict for storing task results. Order of such results as
AtomicActions is important.
 - printed sla results are sorted by criterea name, so the results are equal
in all envs

Change-Id: I5f031170218ef4c2daf0ce0c2c391822218643dd
2015-03-10 14:43:01 +02:00
Oleh Anufriiev
89bd4aa865 Publishing functional tests reports
Change-Id: I4b7543e7244ecc776e6d0955c0428423cca3ad3c
2015-02-10 06:49:46 +02:00
Sergey Skripnick
487cc5538b Add option to keep db settings in functional tests
Also use six.configparser to fix py3 compatibility

Change-Id: If75b5c5439f679e5b01078f18faecede0d104916
2015-02-03 23:49:56 +02:00
Sergey Skripnick
7f85fe911c Display proper missing argument name
Find and show argument name instead of showing argument of 'dest'
Add functional test for this
Remove test_cli_utils.py -> utils.py because this actually utils,
not tests.

Change-Id: Icc138ecf40b4929826efcad52c135c8809348d20
Closes-Bug: #1380562
2014-10-13 20:48:13 +03:00