swift/test/unit/cli
Alistair Coles f7fd99a880 Use ContainerSharderConf class in sharder and manage-shard-ranges
Change the swift-manage-shard-ranges default expansion-limit to equal
the sharder daemon default merge_size i.e 750000. The previous default
of 500000 had erroneously differed from the sharder default value.

Introduce a ContainerSharderConf class to encapsulate loading of
sharder conf and the definition of defaults. ContainerSharder inherits
this and swift-manage-shard-ranges instantiates it.

Rename ContainerSharder member vars to match the equivalent vars and
cli options in manage_shard_ranges:

  shrink_size -> shrink_threshold
  merge_size -> expansion_limit
  split_size -> rows_per_shard

(This direction of renaming is chosen so that the manage_shard_ranges
cli options are not changed.)

Rename ContainerSharder member vars to match the conf file option name:
  scanner_batch_size -> shard_scanner_batch_size

Remove some ContainerSharder member vars that were not used outside of
the __init__ method:

  shrink_merge_point
  shard_shrink_point

Change-Id: I8a58a82c08ac3abaddb43c11d26fda9fb45fe6c1
2021-05-20 20:59:56 +01:00
..
__init__.py Add some tests for bin/swift-recon 2014-01-31 15:34:37 +00:00
test_container_deleter.py Fix __exit__ calls 2021-01-13 12:42:23 -08:00
test_default_output.stub Add Composite Ring Functionality 2017-05-15 16:42:00 -07:00
test_default_output_id_assigned.stub Add Composite Ring Functionality 2017-05-15 16:42:00 -07:00
test_default_sorted_output.stub Order devices in the output of swift-ring-builder 2017-06-22 16:06:48 -07:00
test_dispersion_report.py Test placeholder for dispersion_report module 2017-09-13 16:49:00 -06:00
test_form_signature.py pep8: Turn on E305 2020-04-03 21:22:38 +02:00
test_info.py swift-get-nodes: move --path-as-is to end of curl commands 2021-05-12 12:41:20 +01:00
test_ipv6_output.stub Add Composite Ring Functionality 2017-05-15 16:42:00 -07:00
test_manage_shard_ranges.py Use ContainerSharderConf class in sharder and manage-shard-ranges 2021-05-20 20:59:56 +01:00
test_recon.py Add sharding to swift-recon 2021-04-28 11:05:15 -07:00
test_relinker.py relinker: Rehash the parts actually touched when relinking 2021-05-12 10:02:35 +01:00
test_ring_builder_analyzer.py Use more specific asserts in test/unit/cli tests 2016-08-03 12:19:40 +00:00
test_ringbuilder.py Treat add/remove/rebalance during part-power increase as error 2020-07-23 17:00:16 -07:00
test_ringcomposer.py Py3: Port test/unit/test_ringcomposer.py 2018-12-01 03:28:52 +01:00