Project

Profile

Help

Issue #1794

closed

A Pulp unit test is failing to find a certificate to be valid

Added by rbarlow almost 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.3
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

$ time ./run-tests.py -x
Running flake8
Running Unit Tests
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S....S................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F
======================================================================
FAIL: Tests that verifying a cert with its signing CA returns true.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/fedora/devel/pulp/repoauth/test/test_repo_cert_utils.py", line 350, in test_valid
    self.assertTrue(self.utils.validate_certificate(CERT, VALID_CA))
AssertionError: False is not true
-------------------- >> begin captured logging << --------------------
pulp.repoauth.repo_cert_utils: INFO: Cert verification failed against 1 ca cert(s)
Current Time: <Mon Mar 28 18:39:00 2016>
Certificate to verify: 
        subject=</C=US/ST=NJ/L=Mickleton/O=Red Hat/OU=Pulp/CN=pulp-server>, issuer=</C=US/ST=NJ/L=Mickleton/O=Red Hat/OU=Pulp/CN=pulp-ca>, subject.as_hash=<2557872821>, issuer.as_hash=<4243317625>, fingerprint=<2C752A943B3C0DED3ADA30F2637D7716>, serial=<10>, version=<0>, check_ca=<0>, notBefore=<Mar 28 21:13:49 2012 GMT>, notAfter=<Mar 27 21:13:49 2016 GMT>
Using a CA Chain with 1 cert(s)
        CA: subject=</C=US/ST=NJ/L=Mickleton/O=Red Hat/OU=Pulp/CN=pulp-ca>, issuer=</C=US/ST=NJ/L=Mickleton/O=Red Hat/OU=Pulp/CN=pulp-ca>, subject.as_hash=<4243317625>, issuer.as_hash=<4243317625>, fingerprint=<A136BE24C6FFAF87C737C8227D7CF941>, serial=<18425886100070923486>, version=<2>, check_ca=<1>, notBefore=<Mar 28 21:07:31 2012 GMT>, notAfter=<Mar 27 21:07:31 2016 GMT>
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 2887 tests in 79.003s

FAILED (SKIP=2, failures=1)

real    2m23.518s
user    1m49.386s
sys     0m8.994s

Also available in: Atom PDF