1) Make the docstring pep8-compatible (add single-line description & :param:)
2) Make the log messages more readable for the user
Change-Id: I567ac32fadf9adf45c754fd9856160bc5244eae2
1) Rename the 'sleep' parameter to 'check_interval' for more clarity;
2) Add another test for the case when update_resource=None (better coverage);
3) Reduce the running time of the method call in the tests.
Change-Id: If2c6770fb18714fc8fbee0ac0493fb02bbdfea08
The patch simplifies the logic of rally.utils.sync_execute(), removing
the function call from this method. It is assumed that the function call
to create the desired resource will be performed by the developers before
calling wait_for(), which would result in a bit of code duplicate but would
significantly improve the overall code readability.
Blueprint benchmark-scenarios
Change-Id: Ieeb365d394b6dad6016047c3b4e6eb0e2543a613
This patch reduces the time it takes for the test method
tests.test_utils.SyncExecuteTestCase.test_sync_execute to
complete its work. The runnig time gets reduced from ~5.0 sec
to ~0.3 sec.
Change-Id: I83bbdea4d12aa1ad5aeeccd1a15c4838ef9c419b
Closes-Bug: #1235791
This is small and pretty class for with statement that measure time.
Example of usage:
with Timer() as timer:
#do some dirty stuff
time_in_seconds = timer.duration()
It will be used at least by our Test engine.
Change-Id: I3bf0075df807c2118d5872dd425aae0061232133
The patch introduces a wrapper for an asynchronous function call that turns
this call into a synchronous one. The wrapper assumes that the called function
immediately returns an object for which it takes some time to get to the
'ready for use' state.
Change-Id: I5a9182e2218112b65b58f478d1d5b51f58b05e16
First of all these two mixins will be used not only for rally.consts
So move it to rally.utils
Improve ImmutableMixin, to be able to set parameters in __init__() method
Relax EnumMixin consts type, were supported only string values
Add tests for ImnutableMixin and EnumMixin
Change-Id: I52a0d3810c62855024bc3da34db1134e8ebde149
Add function import_modules_from_package into rally.utils
Use import_modules_from_package in deplog and vmprovide for load engines and providers
Change-Id: I42400db8cc8f1d8ba2a14f3195df71dc60cae036
We add rally.benchmark module that contains Tester.
This is base of our benchmark framework. It allows us to easy write
test scenarios that could call any test N times simuntaneously and collect results
Add rally.utils stdout captures that allows us to caputre stdout and stderr in easy
way using "with" expression.
Add test for our benchmark base and rally.utils