| |
@@ -0,0 +1,45 @@
|
| |
+ From a7521f9ee9627c80282fa59fffd8a43d8af94fb3 Mon Sep 17 00:00:00 2001
|
| |
+ From: Sérgio M. Basto <sergio@serjux.com>
|
| |
+ Date: Feb 23 2021 22:27:03 +0000
|
| |
+ Subject: ca cert was removed on koji-1.24.0
|
| |
+
|
| |
+
|
| |
+ Signed-off-by: Sérgio M. Basto <sergio@serjux.com>
|
| |
+
|
| |
+ ---
|
| |
+
|
| |
+ diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py
|
| |
+ index a3f5edd..126f0db 100644
|
| |
+ --- a/pyrpkg/__init__.py
|
| |
+ +++ b/pyrpkg/__init__.py
|
| |
+ @@ -276,7 +276,7 @@ class Commands(object):
|
| |
+ if authtype == 'ssl' or os.path.isfile(koji_config['cert']) and authtype is None:
|
| |
+ try:
|
| |
+ session.ssl_login(koji_config['cert'],
|
| |
+ - koji_config['ca'],
|
| |
+ + None,
|
| |
+ koji_config['serverca'],
|
| |
+ proxyuser=self.runas)
|
| |
+ except Exception as e:
|
| |
+ diff --git a/tests/test_commands.py b/tests/test_commands.py
|
| |
+ index c0ac6b3..e82a5d2 100644
|
| |
+ --- a/tests/test_commands.py
|
| |
+ +++ b/tests/test_commands.py
|
| |
+ @@ -625,7 +625,6 @@ class TestLoginKojiSession(CommandTestCase):
|
| |
+ 'authtype': 'ssl',
|
| |
+ 'server': 'http://localhost/kojihub',
|
| |
+ 'cert': '/path/to/cert',
|
| |
+ - 'ca': '/path/to/ca',
|
| |
+ 'serverca': '/path/to/serverca',
|
| |
+ }
|
| |
+ self.session = Mock()
|
| |
+ @@ -649,7 +648,7 @@ class TestLoginKojiSession(CommandTestCase):
|
| |
+
|
| |
+ self.session.ssl_login.assert_called_once_with(
|
| |
+ self.koji_config['cert'],
|
| |
+ - self.koji_config['ca'],
|
| |
+ + None,
|
| |
+ self.koji_config['serverca'],
|
| |
+ proxyuser=None,
|
| |
+ )
|
| |
+
|
| |