Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Dict Str Str Str Str Str Num Num Num Num ListLoad ListLoad ListLoad Str Str Num ListLoad Str Str Num ListLoad Str Str Num ListLoad Str Str Num ListLoad ListLoad Str Num Num ListLoad ListLoad Str Num ListLoad ListLoad Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad With Call AttributeLoad NameLoad attr Str NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Num Num Num Num ListLoad ListLoad ListLoad Str Str Num ListLoad Str Str Num ListLoad ListLoad Str Num Num ListLoad ListLoad Str Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str ListLoad ListLoad ListLoad Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Num Num Str Num Num Num ListLoad Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Num Num Str Num Num Num ListLoad ListLoad Str Num Num ListLoad ListLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Num Num Num Num ListLoad ListLoad ListLoad Str Str Num Assign NameStore Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Num Num Num Num ListLoad ListLoad ListLoad Str Str Num Assign NameStore Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Num Num Num Num ListLoad ListLoad ListLoad Str Str Num Assign NameStore Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Str Num Num Num Num ListLoad ListLoad ListLoad Str Str Num Assign NameStore Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword Dict Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad Dict Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Str Num Assign NameStore Str TryExcept body Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Str Num Assign NameStore Str TryExcept body Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str Num Num Num Num Assign NameStore Call NameLoad NameLoad keyword ListLoad ListLoad ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A os N/A json N/A mock N/A unittest StringIO StringIO test.unit with_tempdir swift.cli.ring_builder_analyzer parse_scenario run_scenario TestRunScenario N/A N/A unittest TestCase N/A test_it_runs N/A N/A self tempdir N/A N/A N/A builder_path N/A N/A N/A os path join tempdir test.builder N/A scenario N/A replicas part_power random_seed overload rounds 3 8 123 0 N/A N/A N/A add r1z2-3.4.5.6:7/sda8 100 N/A add z2-3.4.5.6:7/sda9 200 N/A add z2-3.4.5.6:7/sda10 200 N/A add z2-3.4.5.6:7/sda11 200 N/A N/A set_weight 0 150 N/A N/A remove 1 N/A N/A save builder_path N/A parsed N/A parse_scenario N/A N/A json dumps scenario N/A fake_stdout N/A StringIO N/A N/A N/A mock patch sys.stdout fake_stdout N/A N/A N/A run_scenario parsed N/A N/A N/A self assertTrue N/A Rebalance N/A N/A fake_stdout getvalue N/A N/A N/A self assertTrue N/A N/A N/A os path exists builder_path N/A with_tempdir N/A TestParseScenario N/A N/A unittest TestCase N/A test_good N/A N/A self N/A N/A N/A scenario N/A replicas part_power random_seed overload rounds 3 8 123 0 N/A N/A N/A add r1z2-3.4.5.6:7/sda8 100 N/A add z2-3.4.5.6:7/sda9 200 N/A N/A set_weight 0 150 N/A N/A remove 1 N/A parsed N/A parse_scenario N/A N/A json dumps scenario N/A N/A N/A self assertEqual N/A parsed N/A replicas 3 N/A N/A N/A self assertEqual N/A parsed N/A part_power 8 N/A N/A N/A self assertEqual N/A parsed N/A random_seed 123 N/A N/A N/A self assertEqual N/A parsed N/A overload 0 N/A N/A N/A self assertEqual N/A parsed N/A rounds N/A N/A N/A add N/A device ip meta port region replication_ip replication_port weight zone sda8 3.4.5.6 7 1 3.4.5.6 7 100.0 2 N/A add N/A device ip meta port region replication_ip replication_port weight zone sda9 3.4.5.6 7 1 3.4.5.6 7 200.0 2 N/A N/A set_weight 0 150.0 N/A N/A remove 1 N/A test_invalid_json N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError parse_scenario { N/A test_json_not_object N/A N/A self N/A N/A N/A N/A N/A self assertRaises ValueError parse_scenario [] N/A N/A N/A self assertRaises ValueError parse_scenario "stuff" N/A test_bad_replicas N/A N/A self N/A N/A N/A working_scenario N/A replicas part_power random_seed overload rounds 3 8 123 0 N/A N/A N/A add r1z2-3.4.5.6:7/sda8 100 N/A busted N/A dict working_scenario N/A N/A busted N/A replicas N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario replicas blahblah N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario replicas -1 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_part_power N/A N/A self N/A N/A N/A working_scenario N/A replicas part_power random_seed overload rounds 3 8 123 0 N/A N/A N/A add r1z2-3.4.5.6:7/sda8 100 N/A busted N/A dict working_scenario N/A N/A busted N/A part_power N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario part_power blahblah N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario part_power 0 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario part_power 33 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_random_seed N/A N/A self N/A N/A N/A working_scenario N/A replicas part_power random_seed overload rounds 3 8 123 0 N/A N/A N/A add r1z2-3.4.5.6:7/sda8 100 N/A busted N/A dict working_scenario N/A N/A busted N/A random_seed N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario random_seed blahblah N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_overload N/A N/A self N/A N/A N/A working_scenario N/A replicas part_power random_seed overload rounds 3 8 123 0 N/A N/A N/A add r1z2-3.4.5.6:7/sda8 100 N/A busted N/A dict working_scenario N/A N/A busted N/A overload N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario overload blahblah N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict working_scenario overload -0.01 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_rounds N/A N/A self N/A N/A N/A base N/A replicas part_power random_seed overload 3 8 123 0 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps base N/A busted N/A dict base rounds N/A N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A bork N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_add N/A N/A self N/A N/A N/A base N/A replicas part_power random_seed overload 3 8 123 0 N/A busted N/A dict base rounds N/A N/A N/A add N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A add r1z2-1.2.3.4:6200/d7 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A add r1z2-1.2.3.4:6200/d7 1 2 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A add not a good value 100 N/A expected Invalid device specifier (round 0, command 0): Invalid add value: not a good value N/A N/A N/A N/A parse_scenario N/A N/A json dumps busted N/A N/A N/A ValueError N/A err N/A N/A N/A N/A self assertEqual N/A str err expected N/A busted N/A dict base rounds N/A N/A N/A add r1z2-1.2.3.4:6200/d7 -1 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_remove N/A N/A self N/A N/A N/A base N/A replicas part_power random_seed overload 3 8 123 0 N/A busted N/A dict base rounds N/A N/A N/A remove N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A remove not an int N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A remove 1 2 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_set_weight N/A N/A self N/A N/A N/A base N/A replicas part_power random_seed overload 3 8 123 0 N/A busted N/A dict base rounds N/A N/A N/A set_weight N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A set_weight 0 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A set_weight not an int 90 N/A expected Invalid device ID in set_weight (round 0, command 0): invalid literal for int() with base 10: 'not an int' N/A N/A N/A N/A parse_scenario N/A N/A json dumps busted N/A N/A N/A ValueError N/A e N/A N/A N/A N/A self assertEqual N/A str e expected N/A busted N/A dict base rounds N/A N/A N/A set_weight 1 -1 N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A busted N/A dict base rounds N/A N/A N/A set_weight 1 bogus N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A test_bad_save N/A N/A self N/A N/A N/A base N/A replicas part_power random_seed overload 3 8 123 0 N/A busted N/A dict base rounds N/A N/A N/A save N/A N/A N/A self assertRaises ValueError parse_scenario N/A N/A json dumps busted N/A N/A