def test_24_upload_incompatible_entitlement_certificate(): '''Bonus #2: Check incompatible certificate handling''' # an error message is printed right away RHUIManagerCLI.cert_upload(CONNECTION, "/tmp/extra_rhui_files/rhcert_incompatible.pem", "not compatible with the RHUI")
def test_08_upload_entitlement_certificate(): '''Upload the Atomic (the small) entitlement certificate''' RHUIManagerCLI.cert_upload(CONNECTION, "/tmp/extra_rhui_files/rhcert_atomic.pem", "Atomic")
def test_23_upload_expired_entitlement_certificate(): '''Bonus: Check expired certificate handling''' # currently, an error occurs RHUIManagerCLI.cert_upload(CONNECTION, "/tmp/extra_rhui_files/rhcert_expired.pem", "An unexpected error has occurred during the last operation") # a relevant traceback is logged, though; check it Expect.ping_pong(CONNECTION, "tail -1 /root/.rhui/rhui.log", "InvalidOrExpiredCertificate")