Fixed objectstore test.
This commit is contained in:
parent
742c21e4e7
commit
7c846ea890
@ -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,
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user