コード例 #1
0
ファイル: test_CLI.py プロジェクト: Skullman/rhui3-automation
 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")
コード例 #2
0
ファイル: test_CLI.py プロジェクト: Skullman/rhui3-automation
 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")
コード例 #3
0
ファイル: test_CLI.py プロジェクト: Skullman/rhui3-automation
 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")