summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorChristian Schwede <christian.schwede@enovance.com>2014-02-05 06:51:46 +0000
committerChristian Schwede <christian.schwede@enovance.com>2014-02-05 16:20:09 +0000
commit24657b2b39ae56fcd2b8a8089658ead84f9897c8 (patch)
tree5abbf6f5c838d905a5ea302ae3f9c2a4930e50c9 /setup.cfg
parentb1cacf4c938da33420da9a69f277380c993ea2b6 (diff)
downloadswift-24657b2b39ae56fcd2b8a8089658ead84f9897c8.tar.gz
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
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 38b828ac0..f42cf24fa 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -53,7 +53,6 @@ scripts =
bin/swift-orphans
bin/swift-proxy-server
bin/swift-recon-cron
- bin/swift-ring-builder
bin/swift-temp-url
[entry_points]
@@ -90,6 +89,7 @@ paste.filter_factory =
console_scripts =
swift-recon = swift.cli.recon:main
+ swift-ring-builder = swift.cli.ringbuilder:main
[build_sphinx]
all_files = 1