Project

Profile

Help

Issue #1794

closed

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

Added by rbarlow about 8 years ago. Updated about 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
Actions #1

Updated by rbarlow about 8 years ago

  • Subject changed from Unit test fails if the system clock is set to be after March 27, 2016. It is after March 27, 2016. to A Pulp unit test is failing to find a certificate to be valid

jcline pointed out to me that the year on the notBefore was 2012 (not 2016 as I had thought) so I was incorrect about the reason for this failure.

Actions #2

Updated by jcline@redhat.com about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to jcline@redhat.com
Actions #3

Updated by jcline@redhat.com about 8 years ago

  • Status changed from ASSIGNED to POST
  • Triaged changed from No to Yes

Added by Jeremy Cline about 8 years ago

Revision 39e1f12d | View on GitHub

Update the test certs to expire after I'm dead

closes #1794

Added by Jeremy Cline about 8 years ago

Revision 39e1f12d | View on GitHub

Update the test certs to expire after I'm dead

closes #1794

Actions #4

Updated by Anonymous about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #5

Updated by semyers about 8 years ago

  • Platform Release set to 2.8.3
Actions #6

Updated by semyers almost 8 years ago

  • Status changed from MODIFIED to 5
Actions #7

Updated by semyers almost 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #8

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF