diff options
author | Simo Sorce <simo@redhat.com> | 2015-10-19 15:38:14 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-10-23 14:10:59 -0400 |
commit | 5e94ab9a37a94db1a66d2db25d16a87d8e0a997a (patch) | |
tree | cd2b8c9d278b0f65369db9a2a4bb3a678f25f482 /custodia | |
parent | dd552a022da0dbea04d3eb210b1df0ea33d4c686 (diff) | |
download | custodia-5e94ab9a37a94db1a66d2db25d16a87d8e0a997a.tar.gz custodia-5e94ab9a37a94db1a66d2db25d16a87d8e0a997a.tar.xz custodia-5e94ab9a37a94db1a66d2db25d16a87d8e0a997a.zip |
Change tests to be more self contained
Use custom configuration and databases, do not rely on in-tree data.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'custodia')
-rw-r--r-- | custodia/forwarder.py | 3 | ||||
-rw-r--r-- | custodia/httpd/server.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/custodia/forwarder.py b/custodia/forwarder.py index e5028c5..47dda59 100644 --- a/custodia/forwarder.py +++ b/custodia/forwarder.py @@ -14,7 +14,8 @@ class Forwarder(HTTPConsumer): super(Forwarder, self).__init__(*args, **kwargs) self.client = CustodiaHTTPClient(self.config['forward_uri']) self.headers = json.loads(self.config.get('forward_headers', '{}')) - self.use_prefix = self.config.get('prefix_remote_user', True) + self.use_prefix = self.config.get('prefix_remote_user', + 'True').lower() == 'true' self.uuid = str(uuid.uuid4()) self.headers['X-LOOP-CUSTODIA'] = self.uuid diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py index c1df0cb..b1440ab 100644 --- a/custodia/httpd/server.py +++ b/custodia/httpd/server.py @@ -377,8 +377,6 @@ class HTTPServer(object): if url.scheme == 'http+unix': # Unix socket serverclass = ForkingUnixHTTPServer - if address[0] != '/': - raise ValueError('Must use absolute unix socket name') if os.path.exists(address): os.remove(address) elif url.scheme == 'http': |