swift/bin
Christian Schwede 24657b2b39 Add tests for swift-ring-builder
Add some tests for essential methods in swift-ring-builder.
Tests for removing or changing device settings are executed
with different search values to cover many possible command
line arguments.

Currently tested methods:

- create ring
- add device
- remove device
- set weight
- set info
- set min_part_hours
- set replicas

Tests use swift.common.ring.RingBuilder to verify actions.

Catching and testing output from print statements is not
tested, because this requires redirecting sys.stdout during
tests and that might have some sideeffects for testing tools.

bin/swift-ring-builder has been moved to swift/cli/ringbuilder.py
and slightly modified to work as before (mainly due to no more
existing global variables since that part of the code has been
moved inside a main() function).

Change-Id: Ia63f59a8faca1fad990784f27532ca07a2125454
2014-02-05 16:20:09 +00:00
..
swift-account-audit Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-reaper Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-replicator Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-account-server Return an exit code for configuration errors 2013-11-22 19:01:10 -07:00
swift-config Update swift-config paste appconfig inspection 2013-12-13 16:39:55 -08:00
swift-container-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-container-replicator Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-container-server Return an exit code for configuration errors 2013-11-22 19:01:10 -07:00
swift-container-sync Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-container-updater Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-dispersion-populate Merge "Faster swift-dispersion-populate" 2013-10-22 17:55:59 +00:00
swift-dispersion-report Fix swift-dispersion-report when partitions overlap 2014-01-17 11:45:57 -08:00
swift-drive-audit Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-form-signature Add missing copyright license headers 2013-08-07 17:50:32 -03:00
swift-get-nodes Revert "Refactor common/utils methods to common/ondisk" 2013-10-07 17:18:09 -04:00
swift-init Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-object-auditor Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-object-expirer Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-object-info Let swift-object-info skip etag verification 2014-01-16 12:55:50 -08:00
swift-object-replicator Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-object-server Return an exit code for configuration errors 2013-11-22 19:01:10 -07:00
swift-object-updater Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
swift-oldies Add missing copyright license headers 2013-08-07 17:50:32 -03:00
swift-orphans Add missing copyright license headers 2013-08-07 17:50:32 -03:00
swift-proxy-server Return an exit code for configuration errors 2013-11-22 19:01:10 -07:00
swift-recon-cron Don't report async pendings on exception 2014-01-04 00:19:22 -06:00
swift-temp-url Added discoverable capabilities. 2013-11-22 15:54:13 -06:00