mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
tests: fix external_ca test suite failing due to missing SKI
external_ca test suite is failing during installation due to missing SKI extension. https://pagure.io/freeipa/issue/7099 Reviewed-By: Fraser Tweedale <ftweedal@redhat.com> Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
parent
d147948fcc
commit
4caabb140e
@ -17,11 +17,16 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import os
|
import os
|
||||||
|
import base64
|
||||||
|
|
||||||
from ipatests.pytest_plugins.integration import tasks
|
from ipatests.pytest_plugins.integration import tasks
|
||||||
from ipatests.test_integration.base import IntegrationTest
|
from ipatests.test_integration.base import IntegrationTest
|
||||||
|
|
||||||
|
|
||||||
|
EXTERNAL_CA_KEY_ID = base64.b64encode(os.urandom(64))
|
||||||
|
IPA_CA_KEY_ID = base64.b64encode(os.urandom(64))
|
||||||
|
|
||||||
|
|
||||||
class TestExternalCA(IntegrationTest):
|
class TestExternalCA(IntegrationTest):
|
||||||
"""
|
"""
|
||||||
Test of FreeIPA server installation with exernal CA
|
Test of FreeIPA server installation with exernal CA
|
||||||
@ -71,8 +76,9 @@ class TestExternalCA(IntegrationTest):
|
|||||||
'-m', '0',
|
'-m', '0',
|
||||||
'-v', '60',
|
'-v', '60',
|
||||||
'-z', noisefile,
|
'-z', noisefile,
|
||||||
'-2', '-1', '-5'
|
'-2', '-1', '-5', '--extSKID'
|
||||||
], stdin_text='5\n9\nn\ny\n10\ny\n5\n6\n7\n9\nn\n')
|
], stdin_text='5\n9\nn\ny\n10\ny\n{}\nn\n5\n6\n7\n9\nn\n'
|
||||||
|
''.format(EXTERNAL_CA_KEY_ID))
|
||||||
|
|
||||||
# Sign IPA cert request using the external CA
|
# Sign IPA cert request using the external CA
|
||||||
self.master.run_command([
|
self.master.run_command([
|
||||||
@ -82,11 +88,12 @@ class TestExternalCA(IntegrationTest):
|
|||||||
'-c', 'external',
|
'-c', 'external',
|
||||||
'-m', '1',
|
'-m', '1',
|
||||||
'-v', '60',
|
'-v', '60',
|
||||||
'-2', '-1', '-5',
|
'-2', '-1', '-3', '--extSKID',
|
||||||
'-i', '/root/ipa.csr',
|
'-i', '/root/ipa.csr',
|
||||||
'-o', external_cert_file,
|
'-o', external_cert_file,
|
||||||
'-a'
|
'-a'
|
||||||
], stdin_text='0\n1\n5\n9\ny\ny\n\ny\n5\n6\n7\n9\nn\n')
|
], stdin_text='0\n1\n5\n9\ny\ny\n\ny\ny\n{}\n-1\n\nn\n{}\nn\n'
|
||||||
|
''.format(EXTERNAL_CA_KEY_ID, IPA_CA_KEY_ID))
|
||||||
|
|
||||||
# Export external CA file
|
# Export external CA file
|
||||||
self.master.run_command(
|
self.master.run_command(
|
||||||
|
Loading…
Reference in New Issue
Block a user