Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Num Num Num Str Num Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Dict Str Dict Str Str attr Assign AttributeStore NameLoad attr Dict Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Str TupleLoad Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad Str Str decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num Assign NameStore Call NameLoad Call NameLoad Num Assign NameStore Dict Str ListLoad Dict Str Str Str Str Str Str Assign NameStore Dict Str Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num NameLoad NameLoad Str Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad NameLoad Str Str NameLoad TupleLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Str Dict Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore ListLoad Dict Str Str Str Dict Str Str Str Str Num Num Str Num Num Dict Str Str Str Str Num Num Num Num Dict Str Str Str Dict Str Str Str Str Num Num Str Num Num Dict Str Str Str Str Num Num Num Num Dict Str Str Str Dict Str Str Str Str Num Num Str Num Num Dict Str Str Str Str Num Num Num Num Dict Str Str Str Dict Str Str Str Str Num Num Str Num Num Dict Str Str Str Str Num Num Num Num For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword Num keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Num Num Num Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Dict Str Dict Str Str attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Num Assign AttributeStore NameLoad attr Dict Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A jsonschema N/A mock rally.plugins.common.runners constant rally.task runner tests.unit fakes tests.unit test N/A RUNNERS_BASE rally.task.runner. N/A RUNNERS rally.plugins.common.runners. ConstantScenarioRunnerTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ConstantScenarioRunnerTestCase self setUp N/A N/A self config N/A times concurrency timeout type max_cpu_count 4 2 2 constant 2 N/A N/A self context N/A N/A N/A fakes FakeContext N/A task N/A uuid uuid context N/A N/A self args N/A a 1 N/A N/A self task N/A N/A mock MagicMock N/A test_validate N/A N/A self N/A N/A N/A N/A N/A N/A constant ConstantScenarioRunner validate N/A self config N/A test_validate_failed N/A N/A self N/A N/A N/A N/A N/A self config N/A new_key should fail N/A N/A N/A self assertRaises N/A jsonschema ValidationError N/A N/A runner ScenarioRunner validate N/A self config N/A test__run_scenario_once_with_unpack_args N/A N/A self mock_runner N/A N/A N/A result N/A N/A constant _run_scenario_once_with_unpack_args N/A FOO N/A BAR QUUZ N/A N/A N/A self assertEqual N/A N/A mock_runner _run_scenario_once return_value result N/A N/A N/A N/A mock_runner _run_scenario_once assert_called_once_with FOO N/A BAR QUUZ N/A N/A N/A mock patch N/A RUNNERS constant.runner test__worker_process N/A N/A self mock_runner mock_queue mock_thread mock_time N/A N/A N/A mock_thread_instance N/A N/A mock MagicMock isAlive N/A N/A mock MagicMock return_value False N/A N/A mock_thread return_value mock_thread_instance N/A mock_event N/A N/A mock MagicMock is_set N/A N/A mock MagicMock return_value False N/A times 4 N/A fake_ram_int N/A iter N/A range 10 N/A context N/A users N/A N/A tenant_id credential id t1 c1 uuid1 N/A info N/A processes_to_start processes_counter 1 1 N/A N/A N/A constant _worker_process mock_queue fake_ram_int 1 2 times context Dummy dummy N/A mock_event info N/A N/A N/A self assertEqual N/A times 1 N/A mock_thread call_count N/A N/A N/A self assertEqual N/A times 1 N/A N/A mock_thread_instance start call_count N/A N/A N/A self assertEqual N/A times 1 N/A N/A mock_thread_instance join call_count N/A N/A N/A self assertEqual times N/A N/A mock_runner _get_scenario_context call_count N/A i N/A range times N/A N/A scenario_context N/A N/A mock_runner _get_scenario_context i context N/A call N/A N/A mock call args N/A mock_queue Dummy dummy scenario_context N/A target N/A mock_runner _worker_thread N/A N/A N/A self assertIn call N/A mock_thread mock_calls N/A N/A N/A mock patch N/A RUNNERS constant.time N/A N/A mock patch N/A RUNNERS constant.threading.Thread N/A N/A mock patch N/A RUNNERS constant.multiprocessing.Queue N/A N/A mock patch N/A RUNNERS constant.runner test__worker_thread N/A N/A self mock__run_scenario_once N/A N/A N/A mock_queue N/A N/A mock MagicMock N/A args N/A fake_cls fake_method_name fake_context_obj N/A N/A N/A N/A runner _worker_thread mock_queue args N/A N/A N/A self assertEqual 1 N/A N/A mock_queue put call_count N/A expected_calls N/A N/A N/A mock call args N/A N/A N/A self assertEqual expected_calls N/A mock__run_scenario_once mock_calls N/A N/A N/A mock patch N/A RUNNERS_BASE _run_scenario_once test__run_scenario N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantScenarioRunner N/A self task N/A self config N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario do_it N/A self context N/A self args N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue N/A N/A self config N/A times N/A result_batch N/A runner_obj result_queue N/A N/A result result_batch N/A N/A N/A N/A self assertIsNotNone result N/A test__run_scenario_exception N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantScenarioRunner N/A self task N/A self config N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario something_went_wrong N/A self context N/A self args N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue N/A N/A self config N/A times N/A result_batch N/A runner_obj result_queue N/A N/A result result_batch N/A N/A N/A N/A self assertIsNotNone result N/A N/A N/A self assertIn error N/A N/A N/A runner_obj result_queue N/A 0 N/A 0 N/A test__run_scenario_aborted N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantScenarioRunner N/A self task N/A self config N/A N/A N/A runner_obj abort N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario do_it N/A self context N/A self args N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue 0 N/A test_that_cpu_count_is_adjusted_properly N/A N/A self mock__join_processes mock__create_process_pool mock__log_debug_info mock_cpu_count mock_queue N/A N/A N/A samples N/A N/A input real_cpu expected N/A times concurrency type max_cpu_count 20 20 constant 1 2 N/A max_cpu_used processes_to_start concurrency_per_worker concurrency_overhead 1 1 20 0 N/A input real_cpu expected N/A times concurrency type max_cpu_count 20 15 constant 3 2 N/A max_cpu_used processes_to_start concurrency_per_worker concurrency_overhead 2 2 7 1 N/A input real_cpu expected N/A times concurrency type max_cpu_count 20 1 constant 3 2 N/A max_cpu_used processes_to_start concurrency_per_worker concurrency_overhead 2 1 1 0 N/A input real_cpu expected N/A times concurrency type max_cpu_count 2 5 constant 4 4 N/A max_cpu_used processes_to_start concurrency_per_worker concurrency_overhead 4 2 2 1 N/A sample samples N/A N/A N/A N/A mock__log_debug_info reset_mock N/A N/A N/A mock_cpu_count reset_mock N/A N/A N/A mock__create_process_pool reset_mock N/A N/A N/A mock__join_processes reset_mock N/A N/A N/A mock_queue reset_mock N/A N/A mock_cpu_count return_value N/A sample N/A real_cpu N/A runner_obj N/A N/A constant ConstantScenarioRunner N/A self task N/A sample N/A input N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario do_it N/A self context N/A self args N/A N/A N/A mock_cpu_count assert_called_once_with N/A N/A N/A mock__log_debug_info assert_called_once_with times N/A N/A sample N/A input N/A times concurrency N/A N/A sample N/A input N/A concurrency timeout 0 max_cpu_used N/A N/A sample N/A expected N/A max_cpu_used processes_to_start N/A N/A sample N/A expected N/A processes_to_start concurrency_per_worker N/A N/A sample N/A expected N/A concurrency_per_worker concurrency_overhead N/A N/A sample N/A expected N/A concurrency_overhead N/A N/A args kwargs N/A mock__create_process_pool call_args N/A N/A N/A self assertIn N/A N/A sample N/A expected N/A processes_to_start args N/A N/A N/A self assertIn N/A constant _worker_process args N/A N/A N/A mock__join_processes assert_called_once_with N/A mock__create_process_pool return_value N/A mock_queue return_value N/A N/A N/A mock patch N/A RUNNERS constant.multiprocessing.Queue N/A N/A mock patch N/A RUNNERS constant.multiprocessing.cpu_count N/A N/A mock patch N/A RUNNERS constant.ConstantScenarioRunner._log_debug_info N/A N/A mock patch N/A RUNNERS constant.ConstantScenarioRunner._create_process_pool N/A N/A mock patch N/A RUNNERS constant.ConstantScenarioRunner._join_processes test_abort N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantScenarioRunner N/A self task N/A self config N/A N/A N/A self assertFalse N/A N/A N/A runner_obj aborted is_set N/A N/A N/A runner_obj abort N/A N/A N/A self assertTrue N/A N/A N/A runner_obj aborted is_set N/A N/A ConstantForDurationScenarioRunnerTestCase N/A N/A test TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ConstantForDurationScenarioRunnerTestCase self setUp N/A N/A self config N/A duration concurrency timeout type 0 2 2 constant_for_duration N/A N/A self context N/A N/A N/A fakes FakeContext N/A task N/A uuid uuid context N/A N/A N/A self context N/A iteration 14 N/A N/A self args N/A a 1 N/A test_validate N/A N/A self N/A N/A N/A N/A N/A N/A constant ConstantForDurationScenarioRunner validate N/A self config N/A test_validate_failed N/A N/A self N/A N/A N/A N/A N/A self config N/A times gagaga N/A N/A N/A self assertRaises N/A jsonschema ValidationError N/A N/A runner ScenarioRunner validate N/A self config N/A test_run_scenario_constantly_for_duration N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantForDurationScenarioRunner None N/A self config N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario do_it N/A self context N/A self args N/A expected_times 1 N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue expected_times N/A result_batch N/A runner_obj result_queue N/A N/A result result_batch N/A N/A N/A N/A self assertIsNotNone result N/A test_run_scenario_constantly_for_duration_exception N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantForDurationScenarioRunner None N/A self config N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario something_went_wrong N/A self context N/A self args N/A expected_times 1 N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue expected_times N/A result_batch N/A runner_obj result_queue N/A N/A result result_batch N/A N/A N/A N/A self assertIsNotNone result N/A N/A N/A self assertIn error N/A N/A N/A runner_obj result_queue N/A 0 N/A 0 N/A test_run_scenario_constantly_for_duration_timeout N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantForDurationScenarioRunner None N/A self config N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario raise_timeout N/A self context N/A self args N/A expected_times 1 N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue expected_times N/A result_batch N/A runner_obj result_queue N/A N/A result result_batch N/A N/A N/A N/A self assertIsNotNone result N/A N/A N/A self assertIn error N/A N/A N/A runner_obj result_queue N/A 0 N/A 0 N/A test__run_scenario_constantly_aborted N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantForDurationScenarioRunner None N/A self config N/A N/A N/A runner_obj abort N/A N/A N/A runner_obj _run_scenario N/A fakes FakeScenario do_it N/A self context N/A self args N/A N/A N/A self assertEqual N/A len N/A runner_obj result_queue 0 N/A test_abort N/A N/A self N/A N/A N/A runner_obj N/A N/A constant ConstantForDurationScenarioRunner None N/A self config N/A N/A N/A self assertFalse N/A N/A N/A runner_obj aborted is_set N/A N/A N/A runner_obj abort N/A N/A N/A self assertTrue N/A N/A N/A runner_obj aborted is_set N/A N/A