Test my validators
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
"""User account simulation."""
|
||||
from enum import Enum
|
||||
from typing import Callable, Dict, List, TypeAlias
|
||||
from typing import Any, Callable, Dict, List
|
||||
|
||||
from primaite import getLogger
|
||||
from primaite.simulator.core import SimComponent
|
||||
@@ -8,9 +8,6 @@ from primaite.simulator.core import SimComponent
|
||||
_LOGGER = getLogger(__name__)
|
||||
|
||||
|
||||
__temp_node = TypeAlias() # placeholder while nodes don't exist
|
||||
|
||||
|
||||
class AccountType(Enum):
|
||||
"""Whether the account is intended for a user to log in or for a service to use."""
|
||||
|
||||
@@ -20,19 +17,6 @@ class AccountType(Enum):
|
||||
"User accounts are used to allow agents to log in and perform actions"
|
||||
|
||||
|
||||
class AccountGroup(Enum):
|
||||
"""Permissions are set at group-level and accounts can belong to these groups."""
|
||||
|
||||
local_user = 1
|
||||
"For performing basic actions on a node"
|
||||
domain_user = 2
|
||||
"For performing basic actions to the domain"
|
||||
local_admin = 3
|
||||
"For full access to actions on a node"
|
||||
domain_admin = 4
|
||||
"For full access"
|
||||
|
||||
|
||||
class AccountStatus(Enum):
|
||||
"""Whether the account is active."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user