forked from ambient-code/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Epic: #1
Phase: 1 - Foundation & Code Changes
Dependencies: #2, #3
Estimate: 1 hour
Description
Add unit tests to verify single-namespace mode functionality works correctly.
Test Coverage
Operator Tests
- Operator starts with
SINGLE_NAMESPACE_MODE=true - Namespace watcher is NOT started in single-namespace mode
- watchAgenticSessions uses namespace-scoped watch
- watchProjectSettings uses namespace-scoped watch
- PVC created with configured storage class
- Pod security context included in Job template
Backend Tests
- CreateProject returns 501 when
SINGLE_NAMESPACE_MODE=true - CreateProject works normally when
SINGLE_NAMESPACE_MODE=false - Error message format is correct
Acceptance Criteria
- All tests pass
- Code coverage maintained or improved
- Tests run in CI pipeline
Files Changed
components/operator/main_test.go(create if needed)components/backend/internal/handlers/projects_test.go
Branch
feature/mpp-single-namespace-mode
Metadata
Metadata
Assignees
Labels
No labels