8 Commits

Author SHA1 Message Date
Oleh Anufriiev
3a89b0eb3b Context tenants refactoring
Optimize tenants and their resources in context.
  Implement tenant related resources tree with tenant
  as root.

Change-Id: I974f3a02eeade3de6f6208642fa593832f7c62d9
2014-12-15 16:02:53 +02:00
Mikhail Dubov
83d0ee1a40 Further improvements in rally info
* Add more info about basic entities in rally, add samples
* Fix wrong multiline :param: handling
* Fix "rally info BenchmarkScenarios" output so that it contains
  no base classes with no scenarios
* Sort entity tables (BenchmarkScenarios/DeployEngines/...) by names
* Enable search for SLA by config option name (not only by class name)
  and print this config option name in "rally info SLA"
* Fix SLA desciption in the basic "rally info" call
* Rename "rally info DeployEngines" -> "rally info DeploymentEngines",
  but leave an alias (so that "DeployEngines" still works)
* Handle unicode bugs
* Modify the cliutils code so that it does not print traces in case of
  excessive CLI arguments
* Other cosmetic improvements

Change-Id: I2ca2b5e7f00b503a1b60d2103596ab1dfa64ac46
Closes-Bug: #1392895
2014-12-01 18:29:05 +04:00
Andrey Kurilin
20534c78c6 Add several new hacking rules
Rules:
 N311 - Validate that debug level logs are not translated
 N320 - Ensure that ``assertTrue(isinstance(A, B))``  is not used
 N321 - Ensure that ``assertEqual(type(A), B)`` is not used
 N322 - Ensure that ``assertEqual(A, None)`` and ``assertEqual(None, A)``
        are not used
 N323 - Ensure that ``assertTrue/assertFalse(A in/not in B)`` are not
        used with collection contents

Also, small bug related to logging in verification was fixed.

Change-Id: Ieabe1b23d0c02cc13bb6cad106ab855507359ddc
2014-11-29 22:54:43 +02:00
Jenkins
f37164082b Merge "Improve plugins and apply loading for runners and contexts plugins" 2014-10-24 13:09:02 +00:00
Olga Kopylova
2c368272c9 Improve plugins and apply loading for runners and contexts plugins
Provide plugins loading for runners and contexts, improve samples.
Plugins now can be loaded from ~/.rally/plugins and /opt/rally/plugins
and any it's subdirectories.

Closes-Bug: #1320942

Change-Id: I213086e7eae17e297c398c301f5ed8d2331d951e
2014-10-24 10:25:10 +00:00
liyingjun
9089ea4e56 Port to use oslo.i18n
Module gettextutils from oslo-incubator was graduated to separate
library (oslo.i18n) and removed from repository, so we should use
new library.

Change-Id: I9bfe95c7995c47715151386c602ef954499bb2ea
2014-10-23 19:32:56 +03:00
Mikhail Dubov
61a6e46e29 Add misspellings handling to "rally info"
Before:
    $ rally info find ExistingServert
    Failed to find any docs for query: 'ExistinfServert'

After:
    $ rally info find ExistinfServert
    Failed to find any docs for query: 'ExistinfServert'
    Did you mean one of these?
        ExistingServers

Two types of misspellings supported as of now:
1. Queries with typos ('ExistinfServert' -> 'ExistingServers')
2. Truncated queries ('Nova' -> 'NovaServers')

We also improve the base.Scenario.get_scenario_by_name() method to ensure
that only scenarios can be returned from it. We simplify the code by adding
the is_scenario() method there.

Change-Id: I093ddef154daeb7cbcd757e35d0e853f70401bee
2014-10-13 13:24:18 +04:00
Sergey Skripnick
f752ac9add Reorganize test module structure
Moved test modules:
 tests/             ->  tests/unit
 test_ci/           ->  tests/ci
 tests_functional   ->  tests/functional
 rally/hacking      ->  tests/hacking

Add testing read me file

Co-Authored-By: Boris Pavlovic <boris@pavlovic.me>
Co-Authored-By: Andrey Kurilin <akurilin@mirantis.com>

Change-Id: I57c09d892da4adf863c358a4d63e3543b50d10b7
2014-10-07 13:50:40 +00:00