Fixed objectstore test.

This commit is contained in:
Brian Lamar 2011-06-21 11:50:28 -04:00
parent 742c21e4e7
commit 7c846ea890
2 changed files with 7 additions and 4 deletions

View File

@ -332,8 +332,8 @@ class WSGIService(object):
self.name = name
self.loader = loader or wsgi.Loader()
self.app = self.loader.load_app(name)
self.host = getattr(FLAGS, '%s_listen' % name, None)
self.port = getattr(FLAGS, '%s_listen_port' % name, None)
self.host = getattr(FLAGS, '%s_listen' % name, "0.0.0.0")
self.port = getattr(FLAGS, '%s_listen_port' % name, 0)
self.server = wsgi.Server(name,
self.app,
host=self.host,

View File

@ -70,8 +70,11 @@ class S3APITestCase(test.TestCase):
os.mkdir(FLAGS.buckets_path)
router = s3server.S3Application(FLAGS.buckets_path)
self.server = wsgi.Server()
self.server.start(router, host=FLAGS.s3_host, port=FLAGS.s3_port)
self.server = wsgi.Server("S3 Objectstore",
router,
host=FLAGS.s3_host,
port=FLAGS.s3_port)
self.server.start()
if not boto.config.has_section('Boto'):
boto.config.add_section('Boto')