46 Commits

Author SHA1 Message Date
Andrey Kurilin
0a6dac5cec [requirements] Add helper for managing requirements
While we are not depend on OpenStack global-requirements, we need to be synced
with it to be sure that Rally compatible with all OpenStack related stuff.

This patch provides new helper script, which checks versions from g-r, correct
license and latest version from pypi.

The usage is simple:

   # sync rally requirements with g-r
   tox -e requirements

   # just format rally requirements
   tox -e requirements -- --format

    # sync rally requirements with g-r & add upper limits for all packages
   tox -e requirements -- --add-uppers

Also, this patch formats Rally requirements in unified form, puts right
licenses to requirements and adds rally licenses in correct way in setup.cfg

Change-Id: Ia50694f636d9f80f08d90cc8133ebac8bb3f8671
2016-07-20 17:58:55 +03:00
Alexander Maretskiy
c11108a6e3 [CI] Fix coverage job
Changes:
  * start using pytest-cov library
  * if there are uncommitted changes then do not try to
    stash them automatically but exit with error message

Co-Authored-By: Andrey Kurilin <andr.kurilin@gmail.com>
Co-Authored-By: Alexander Maretskiy <amaretskiy@mirantis.com>

Change-Id: Id5f396550a600fe0ab899b09aceff60b3d98dc0e
2016-06-27 15:39:13 +03:00
Boris Pavlovic
4ceeb79646 Use pytest instead of testr
- pytest is used by everybody
- pytest works on MacOS and Windows without any issues
- pytest doesn't require bash scripts in and .testrconfig in repo
- pytest has built-in colorizer
- pytest shows out of box slowest test
- pytest shows progress

This patch does 3 things:
1) Remove testr config file & requirments
2) Add pytest requirments
3) Change tox.ini to use pytest instead of testr

To add parameters to py.test you should add -- and than all args.
For example,
  tox -e py27 -- -k "db"

Change-Id: Ide3ddd58a2d1635651fc53404cb5cc7c1c4bab5e
2016-06-23 15:25:06 +03:00
OpenStack Proposal Bot
dabf166c31 Updated from global requirements
Change-Id: I0d7ab260359ef43a048db033b90dfb317743dc51
2016-05-28 00:39:43 +00:00
OpenStack Proposal Bot
3d46c829b2 Updated from global requirements
Change-Id: I7a4216311f364c561b2dfa15fbec4d942ea72cd8
2016-01-21 17:47:44 +00:00
OpenStack Proposal Bot
8b25f3ae32 Updated from global requirements
Change-Id: Id49a839f5dab2f82e21fccd2d3444f3c0b74cf5d
2015-12-23 00:37:41 +00:00
OpenStack Proposal Bot
0676d896e7 Updated from global requirements
Change-Id: I49b63fd88b733eb67501c62e6eb021f9e3591fd4
2015-11-20 04:59:47 +00:00
Igor Degtiarov
c30cb231f7 Add timestamps and metadata into creating samples
add timestamps with certain interval and resource_metadata into creating
samples in sample_generator

Change-Id: Id24487eb1cd86da065e2d21584b7dda8ebe112cb
2015-11-06 11:09:52 +02:00
Bertrand Lallau
5407e7b3f6 Removing unused dependency: discover
Change-Id: Iacfa2717d26783084e6bd56bf83924bed5401ad8
2015-08-28 21:45:49 +02:00
OpenStack Proposal Bot
02423a487b Updated from global requirements
Change-Id: Iebabb775505769683f4dd0b4a9178768e88fc405
2015-08-04 18:19:11 +00:00
OpenStack Proposal Bot
4a69b94de6 Updated from global requirements
Change-Id: Ic51bf721295be1dcf224c76a99d109d8b20d0882
2015-08-01 02:20:43 +00:00
OpenStack Proposal Bot
431546a408 Updated from global requirements
Change-Id: I6564e4f0bf43e3e46e7c6f7802126b2563da68fe
2015-07-22 05:00:03 +00:00
OpenStack Proposal Bot
92422c4a9a Updated from global requirements
Change-Id: I598d23f992c308cabe6506c5ae20f473ee7be61f
2015-07-17 16:18:33 +00:00
OpenStack Proposal Bot
419cdcdcde Updated from global requirements
Change-Id: I6ce62925586e555c53023ee3289274c6b7c12197
2015-07-15 20:46:17 +00:00
OpenStack Proposal Bot
0977949583 Updated from global requirements
Change-Id: I4b357145f7a907965be3c264bd39e63cfd8481c3
2015-07-12 15:22:40 +00:00
Andrey Kurilin
64c511bda5 Fix broken unit-tests
Also, this patch turn off coverage job to allow merge this patch.

Closes-bug: #1473362
Depends-On: I0cfab6d13e5d9e744cb302c86a2c21269923e75d
Change-Id: I13ba7b2e20016666d4e0eab4560e2e522f038a15
2015-07-11 23:32:00 +08:00
OpenStack Proposal Bot
f98b735cf5 Updated from global requirements
Change-Id: I496909e3f6fed962c8443d13453ef8e9382744ae
2015-06-24 13:21:06 -07:00
Valeriy Ponomaryov
06a442a603 [Manila] Add base benchmark for list shares operation
List of changes:
- Added general support of Manila project.
- Added support of 'list' operation for shares.
- Added benchmark for listing of shares.
- Added two different manila jobs scripts that will be used for two
different Manila installtions. Current benchmark is used without changes in
both installations.

Change-Id: Ie29be6162e788c880aea6816803c9ddea340bcf7
2015-06-12 21:21:11 +03:00
OpenStack Proposal Bot
f51d8391de Updated from global requirements
Change-Id: I7f0f1dfac7fa1030cd4822bca6a45e9c7fb0d26a
2015-05-04 21:12:14 +00:00
OpenStack Proposal Bot
6a5ecde0b5 Updated from global requirements
Change-Id: Ic93f18bba0e10c7c826b587ce71fd56aaaff4798
2015-03-21 00:19:36 +00:00
OpenStack Proposal Bot
8d0cde9c7f Updated from global requirements
Change-Id: I038e4b5406bb3419a96be8450c47d82d90fe9aa6
2014-11-20 14:13:38 +00:00
OpenStack Proposal Bot
6da20d68f6 Updated from global requirements
Change-Id: I791782c6d508c04485e8ce55c7d7b6cbdf6e9cd3
2014-11-18 19:46:28 +00:00
OpenStack Proposal Bot
f6c4f71a53 Updated from global requirements
Change-Id: Ib5194aad4fe4c50f1499438b0959d1458fa6e3e3
2014-11-16 15:08:19 +00:00
OpenStack Proposal Bot
bee14708f7 Updated from global requirements
Change-Id: I5840fce83406973cb45d95a667256eb1472ad7ba
2014-11-05 08:37:05 +00:00
OpenStack Proposal Bot
b151cb7ddb Updated from global requirements
Change-Id: Ib24489face1fcfbf036d57665d81d5c1a7f54b99
2014-10-22 19:18:32 +00:00
OpenStack Proposal Bot
8f04e6313b Updated from global requirements
Change-Id: Ia70bbde29c81f9fbfa0def64e46eba309ef6a147
2014-09-19 09:24:18 +00:00
OpenStack Proposal Bot
e2f67f4f3c Updated from global requirements
Change-Id: I792874c5e8bc6665c5c92e6817859bbfbfc0fdb0
2014-09-11 00:32:33 +00:00
OpenStack Proposal Bot
9a983799af Updated from global requirements
Change-Id: I31c7e355a15351031df59e81f671ca93f4b32787
2014-09-09 04:34:47 +00:00
OpenStack Proposal Bot
9ab07f4069 Updated from global requirements
Change-Id: I82180e7608abeac1ebd0ceb04254ec94bf8f152a
2014-08-22 23:45:41 +00:00
Mikhail Dubov
6f1a895e24 Add "rally info" command
Here we add a new "rally info" command, which, based on the input,
prints descriptions for different entities in Rally (in this patch -
benchmark scenarios & scenario groups, more entities are to follow
(deployment engines etc.)). This command makes use of docstrings by
parsing them and printing them in CLI in human-readable form.

The command should be called as "rally info find <query>" (or, in case
of an explicit parameter setting, "rally info find --query=<query>").

Samples:

    $ rally info find create_meter_and_get_stats
    CeilometerStats.create_meter_and_get_stats (benchmark scenario).

    Test creating a meter and fetching its statistics.

    Meter is first created and then statistics is fetched for the same
    using GET /v2/meters/(meter_name)/statistics.

    Parameters:
        - name_length: length of generated (random) part of meter name
        - kwargs: contains optional arguments to create a meter

    $ rally info find Authenticate
    Authenticate (benchmark scenario group).

    This class should contain authentication mechanism.

    For different types of clients like Keystone.

Change-Id: Icf3545c0666d99ab7fd0eaabce8bbe572834e485
2014-08-18 12:08:30 -04:00
Kumar Rishabh
d4a8ed80f8 Patched version of hacking library
updated version of hacking library for tests

Change-Id: I90dbded90f7bae03b9087c910ce542c2b3642da4
2014-07-09 10:06:45 +00:00
Rohan Kanade
3ed98ecec0 Changes tempest subunit log handling
* Remove subunit2junitxml dependency and code from rally
* Convert raw subunit stream from tempest tests to json and store only
  json in DB
* Run tempest scenario (smoke) in rally gate

Change-Id: I6628375d83da9af3984819dfc5815ae0c06ec1aa
Implements: blueprint tempest-subunit-to-json
2014-06-20 09:11:42 +02:00
OpenStack Proposal Bot
458ff954ca Updated from global requirements
Change-Id: I3d3203f09baf1b9873fb52747931decc333e1635
2014-06-18 14:11:19 +00:00
chen-li
51c8707415 Integrate the new oslotest library
There is a new support library named 'oslotest'
extracted from oslo incubator. So, we add it to
test-requirements.txt and remove deprecated modules
from rally.openstack.common

Change-Id: I1d9efaf2f8a5a4948c454ea3f2e75262479133e8
2014-04-25 23:18:30 +04:00
OpenStack Jenkins
a96e7010de Updated from global requirements
Change-Id: Ica764eb6b1b420975ca91b9f9253109c251d940f
2014-04-17 00:24:24 +04:00
Doug Hellmann
a513b3fae2 Switch to oslosphinx
Use the version of the doc theme without the namespace
package.

Partial-bug: #1277168
Change-Id: I7788a9d6b5984fdfcc4678f2182104d2eb8a2be0
2014-03-12 10:19:46 -07:00
OpenStack Jenkins
67b824e98e Updated from global requirements
Change-Id: I8795eb0e89e9dd443837be341a6b0f2bbf2d6029
2014-02-23 09:33:39 +00:00
OpenStack Jenkins
3c05953eea Updated from global requirements
Change-Id: I9b3bd9e3818fcf4d60757be3b02abf622d6a9f3c
2014-02-22 03:37:47 +00:00
Boris Pavlovic
908ef71979 Temporary fix testtols version to unblock gate
Gate is broken now due to the bug 1274056

Change-Id: I72e1192263d90c4f1aaf794b332b69d35c3889e8
2014-01-29 21:55:11 +04:00
Ilya Kharin
ac234be543 Add support to build docs by Sphinx
The patch introduce configuration files for building documentations by
Sphinx. Also added a simple tree of static documents for test ability of
autobuilding documentation from source code.

bp rally-sphinx-docs

Change-Id: I2a225b1bdb4ae0640428b438a0c9779e28586546
2014-01-15 19:11:11 +04:00
Sergey Lukjanov
33d1b1a776 Sync with global requirements
* versions of all other used libs updated

Change-Id: I6f71c965505037c6dde1241bd01453325beea3ed
2014-01-01 23:08:07 +04:00
Boris Pavlovic
1435225554 Remove mox
Change-Id: Idec9b0848f0412510a8823223566e94d86109e98
2013-12-26 15:35:22 +04:00
Boris Pavlovic
2230975732 Move fixtures from test-requirments to requirments
Fixtures are required by oslo.lockutils so we should move them to
requirments.

And could move it back after this patch
https://review.openstack.org/#/c/52612/
Will be merged

Change-Id: I018a603c994cf8573020cca28b77fa5716038d8e
Closes-bug: #1241581
2013-10-18 17:28:28 +04:00
Mikhail Dubov
8f75894bad Benchmark test framework for Rally
This patch introduces the benchmark test framework for rally. The presented
framework relies heavily on the usage of test configuration files which allow
to set up which tests should be run in which order and how many times, as well
as parameterize them (e.g., to configure, say, the number of compute nodes used
in load testing). The test configuration also allows to set whether the
benchmark tests should be launched concurrently in several threads.

Test configuration processing is provided by the further development of
TestEngine, which now also can validate the test configuration passed to its
constructor.

The patch also contains some refactoring of the Tester class which makes it
configurable through the test configuration. This functionality is supported
by the TestConfigManager class, another child class of the base ConfigManager
defined in one of the previous patches.

Blueprint test-engine
Change-Id: Idd1296537d5a65c0b353ee9812d2e360d3c8ea39
2013-09-18 01:35:44 +04:00
Boris Pavlovic
01b8ee1029 Fix test-requirements.txt
Force subunit version to <=0.0.13

There is some bug in new version of subuntit (0.0.14)
https://bugs.launchpad.net/subunit/+bug/1216163
So we should use older version to be able to test
2013-08-24 13:53:19 +04:00
Boris Pavlovic
8e31103305 Add tox, pep and requirements to project
Adding minimal amount of things to be able to run
tox against code and check all unit tests + pep
2013-08-14 12:23:42 +04:00