File 0001-Fix-functional-tests-to-respect-insecure-SSL-option.patch of Package python-manilaclient

From f132c486488edffdfaec3139c4f4ec4f0955f899 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@suse.com>
Date: Mon, 15 Feb 2016 13:41:03 +0100
Subject: [PATCH] Fix functional tests to respect insecure SSL option

People might want to run functional tests with SSL, but without
certificates that can be verified.

Change-Id: Id9151178d8c5e62247d55058a3f78fe17075aebe
Closes-Bug: #1545697
---
 manilaclient/config.py                | 3 +++
 manilaclient/tests/functional/base.py | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/manilaclient/config.py b/manilaclient/config.py
index a9ebf1b..586beb9 100644
--- a/manilaclient/config.py
+++ b/manilaclient/config.py
@@ -54,6 +54,9 @@ auth_opts = [
                default=None,
                help="URL for where to find the OpenStack Identity admin "
                     "API endpoint."),
+    cfg.BoolOpt("insecure",
+                default=False,
+                help="Disable SSL certificate verification."),
 ]
 
 base_opts = [
diff --git a/manilaclient/tests/functional/base.py b/manilaclient/tests/functional/base.py
index e74e9ec..45d764b 100644
--- a/manilaclient/tests/functional/base.py
+++ b/manilaclient/tests/functional/base.py
@@ -117,6 +117,7 @@ class BaseTestCase(base.ClientTestBase):
             password=CONF.admin_password,
             tenant_name=CONF.admin_tenant_name,
             uri=CONF.admin_auth_url or CONF.auth_url,
+            insecure=CONF.insecure,
             cli_dir=CONF.manila_exec_dir)
         # Set specific for admin project share network
         manilaclient.share_network = CONF.admin_share_network
@@ -129,6 +130,7 @@ class BaseTestCase(base.ClientTestBase):
             password=CONF.password,
             tenant_name=CONF.tenant_name,
             uri=CONF.auth_url,
+            insecure=CONF.insecure,
             cli_dir=CONF.manila_exec_dir)
         # Set specific for user project share network
         manilaclient.share_network = CONF.share_network
-- 
2.7.1

openSUSE Build Service is sponsored by