rally/tests/unit/benchmark/context
Boris Pavlovic 83c9309ded Introudce benchmark.context() decorator
Before this patch we have to specify:

__ctx_name__, __ctx_order__ and __ctx_hidden__ by hands as attributes
of context class.

This thing produced few issues:

1) It looks ugly
2) It is absolutelly unclear. So you don't know what they mean, and
   there is no easy way to find information about it. So now it's
   much simpler e.g. you should just take a look at decorator
   implementation
3) This was source of bugs, cause it was not tested by syntax
   of language => so we have to have mad tests to check that
   all __ctx_name__, __ctx_order__ were specified

* Use decorator instead of direct setting attributes

* Rename attributes:
  __ctx_name__ -> _ctx_name
  __ctx_order__ -> _ctx_order
  __ctx_hidden__ -> _ctx_hidden

  This was done cause of unification with other parts of code

* Improve a bit "servers" get uuid of image and flavor only once

* Impove order of context

* Make secgroup and allow_ssh not hidden context. There is no
  need to hide them, and probably somebody would like to use
  them.

* Docs are updated

Change-Id: Ib089b398ba0c7f54d5246eb6ba29f5bbcfd2deee
2014-11-27 16:42:06 +04:00
..
cleanup Merge "Refactor generic cleanup mechanism part 3" 2014-11-15 08:44:25 +00:00
quotas Reorganize test module structure 2014-10-07 13:50:40 +00:00
sahara Refactor generic cleanup mechanism part 3 2014-11-14 16:44:00 +04:00
__init__.py Reorganize test module structure 2014-10-07 13:50:40 +00:00
test_base.py Introudce benchmark.context() decorator 2014-11-27 16:42:06 +04:00
test_images.py Refactor generic cleanup mechanism part 3 2014-11-14 16:44:00 +04:00
test_keypair.py Refactor generic cleanup mechanism part 3 2014-11-14 16:44:00 +04:00
test_roles.py Reorganize test module structure 2014-10-07 13:50:40 +00:00
test_secgroups.py Reorganize test module structure 2014-10-07 13:50:40 +00:00
test_servers.py Add a servers context and a cinder stress scenario 2014-11-26 09:53:13 -08:00
test_tempest.py Refactor tempest verification and tests for it 2014-10-24 17:32:01 +03:00
test_users.py Improve unit tests for UserGenerator 2014-11-24 03:41:52 +04:00
test_volumes.py Refactor generic cleanup mechanism part 3 2014-11-14 16:44:00 +04:00