Remove licensing repository dependency and standalone submodule proxy from tests and CI
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 1m35s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Failing after 1m35s
This commit is contained in:
@@ -11,7 +11,6 @@ from unittest.mock import MagicMock, patch
|
||||
|
||||
from src.hub import server_enrollment as enrollment
|
||||
from src.hub.pki_manager import PKIManager
|
||||
from src.hub import License_Authority
|
||||
|
||||
|
||||
class TestHubEnrollmentPKIDeep(unittest.TestCase):
|
||||
@@ -96,16 +95,6 @@ class TestHubEnrollmentPKIDeep(unittest.TestCase):
|
||||
self.assertEqual(lic_data["format"], "LOGAR_LICENSE_REQUEST")
|
||||
self.assertIn("csr", lic_data)
|
||||
|
||||
def test_license_authority_cli_dispatch(self):
|
||||
"""Tests License Authority helper and CLI options."""
|
||||
try:
|
||||
with patch("sys.argv", ["License_Authority.py", "--help"]):
|
||||
ret = License_Authority.main()
|
||||
if ret is not None:
|
||||
self.assertEqual(ret, 0)
|
||||
except SystemExit as cm:
|
||||
self.assertEqual(cm.code, 0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user