Skip to content

Commit

Permalink
Merge pull request #3865 from pilou-/fix_test_openssl_1.1.0
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored May 1, 2017
2 parents 5ba1856 + 977947f commit 4c2f899
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _parse_cert(self):
continue

elif l.startswith('Subject:'):
# O=system:nodes, CN=system:node:m01.example.com
# O = system:nodes, CN = system:node:m01.example.com
self.subject = FakeOpenSSLCertificateSubjects(l.partition(': ')[-1])

def get_serial_number(self):
Expand Down Expand Up @@ -202,7 +202,7 @@ def __init__(self, subject_string):
"""
self.subjects = []
for s in subject_string.split(', '):
name, _, value = s.partition('=')
name, _, value = s.partition(' = ')
self.subjects.append((name, value))

def get_components(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

@pytest.fixture(scope='module')
def fake_valid_cert(valid_cert):
cmd = ['openssl', 'x509', '-in', str(valid_cert['cert_file']), '-text']
cmd = ['openssl', 'x509', '-in', str(valid_cert['cert_file']), '-text',
'-nameopt', 'oneline']
cert = subprocess.check_output(cmd)
return FakeOpenSSLCertificate(cert.decode('utf8'))

Expand Down

0 comments on commit 4c2f899

Please sign in to comment.