swift/test/unit
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
..
account Use a tempfile.mkdtemp() based temporary directory 2014-01-19 16:29:45 -05:00
cli Add tests for swift-ring-builder 2014-02-05 16:20:09 +00:00
common Merge "Fix container quota MW for handling a bad source path" 2014-02-04 01:53:36 +00:00
container Container Sync: Simple HTTP Proxy load balancing 2014-01-23 01:16:05 +00:00
obj Reduce line count by two 2014-02-03 16:01:14 -05:00
proxy Merge "Fix up double mocking of swob.Request.__init__" 2014-02-04 20:25:44 +00:00
test_locale Move test.unit.locale out of gettext's way 2014-01-24 01:24:08 -08:00
__init__.py Merge "Fix bug in obj updater run_once()." 2013-11-27 17:52:49 +00:00