浏览代码

[core] Do not set a default path for SSL ca_certs

Jenny Kim 9 年之前
父节点
当前提交
c377043
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      apps/beeswax/src/beeswax/tests.py
  2. 1 1
      apps/impala/src/impala/tests.py
  3. 1 1
      desktop/core/src/desktop/conf.py

+ 1 - 1
apps/beeswax/src/beeswax/tests.py

@@ -3172,7 +3172,7 @@ def hive_site_xml(is_local=False, use_sasl=False, thrift_uris='thrift://darkside
 
 def test_ssl_cacerts():
   for desktop_kwargs, conf_kwargs, expected in [
-      ({'present': False}, {'present': False}, '/etc/hue/cacerts.pem'),
+      ({'present': False}, {'present': False}, ''),
       ({'present': False}, {'data': 'local-cacerts.pem'}, 'local-cacerts.pem'),
 
       ({'data': 'global-cacerts.pem'}, {'present': False}, 'global-cacerts.pem'),

+ 1 - 1
apps/impala/src/impala/tests.py

@@ -375,7 +375,7 @@ def create_saved_query(app_name, owner):
 
 def test_ssl_cacerts():
   for desktop_kwargs, conf_kwargs, expected in [
-      ({'present': False}, {'present': False}, '/etc/hue/cacerts.pem'),
+      ({'present': False}, {'present': False}, ''),
       ({'present': False}, {'data': 'local-cacerts.pem'}, 'local-cacerts.pem'),
 
       ({'data': 'global-cacerts.pem'}, {'present': False}, 'global-cacerts.pem'),

+ 1 - 1
desktop/core/src/desktop/conf.py

@@ -146,7 +146,7 @@ SSL_CACERTS = Config(
   key="ssl_cacerts",
   help=_('Path to default Certificate Authority certificates.'),
   type=str,
-  default='/etc/hue/cacerts.pem')
+  default='')
 
 SSL_VALIDATE = Config(
   key="ssl_validate",