Implement identity trust module
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import unittest
|
||||
|
||||
from govoplan_core.core.identity_trust import (
|
||||
CAPABILITY_IDENTITY_TRUST_ASSURANCE,
|
||||
CAPABILITY_IDENTITY_TRUST_DIRECTORY,
|
||||
)
|
||||
from govoplan_identity_trust.backend.manifest import get_manifest
|
||||
|
||||
|
||||
class IdentityTrustManifestTests(unittest.TestCase):
|
||||
def test_manifest_exposes_headless_trust_capabilities(self) -> None:
|
||||
manifest = get_manifest()
|
||||
self.assertEqual("identity_trust", manifest.id)
|
||||
self.assertEqual((), manifest.dependencies)
|
||||
self.assertIn(
|
||||
CAPABILITY_IDENTITY_TRUST_DIRECTORY,
|
||||
manifest.capability_factories,
|
||||
)
|
||||
self.assertIn(
|
||||
CAPABILITY_IDENTITY_TRUST_ASSURANCE,
|
||||
manifest.capability_factories,
|
||||
)
|
||||
self.assertIsNone(manifest.frontend)
|
||||
self.assertIsNotNone(manifest.migration_spec)
|
||||
self.assertEqual("vertical_slice", manifest.architecture.maturity)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user