swift/test
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
..
functional Merge "Privileged acct ACL header, new ACL syntax, TempAuth impl." 2014-02-03 22:40:52 +00:00
probe Remove swiftclient dep on direct_client 2013-12-24 03:11:43 -08:00
unit Add tests for swift-ring-builder 2014-02-05 16:20:09 +00:00
__init__.py Change OpenStack LLC to Foundation 2013-09-20 01:02:31 +08:00
sample.conf Add option to make probetests more brittle 2013-07-19 01:39:42 -07:00