Adapt tests for pod_executor package and clean up mcp_forge
- Created tests/pod_executor/ with adapted tests from old locations - tests/pod_executor/simple/test_executor.py: 17/17 tests passing - tests/pod_executor/security/test_resource_limits.py: 22/23 tests passing - Removed old test locations (will be deleted with mcp_forge cleanup) - Fixed all corrupted files from sed/quote issues using Python scripts - Removed mcp_forge dependencies from pod_executor: - Removed ForgeConfig from backend.py (explicit parameters) - Removed SessionConfig from sessions.py (explicit parameters) - Fixed all audit logger calls to use string-based events - Updated mcp_forge/security/__init__.py: - Removed resource_limits imports (now in pod_executor) - Added comment directing to pod_executor.security.resource_limits - Deleted from mcp_forge: - src/mcp_forge/execution/ (simple and jupyter backends) - src/mcp_forge/podman/ (container management) - src/mcp_forge/security/resource_limits.py Total: 39/40 tests passing in pod_executor package
This commit is contained in:
parent
63d9b55a00
commit
3a6bd01272
25 changed files with 1390 additions and 3166 deletions
|
|
@ -1,11 +1,8 @@
|
|||
"""Security module for resource validation and enforcement."""
|
||||
|
||||
from .resource_limits import (
|
||||
parse_memory_string,
|
||||
parse_cpu_quota,
|
||||
parse_storage_string,
|
||||
ResourceLimits,
|
||||
)
|
||||
# Resource limits moved to pod_executor package
|
||||
# Import from pod_executor.security.resource_limits instead
|
||||
|
||||
from .allowlist import (
|
||||
SecurityError,
|
||||
OperationValidator,
|
||||
|
|
@ -17,10 +14,6 @@ from .audit import (
|
|||
)
|
||||
|
||||
__all__ = [
|
||||
"parse_memory_string",
|
||||
"parse_cpu_quota",
|
||||
"parse_storage_string",
|
||||
"ResourceLimits",
|
||||
"SecurityError",
|
||||
"OperationValidator",
|
||||
"AuditEventType",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue