CalejoControl/src/core
openhands 20b781feac Complete REST API architectural refactoring for testability
- Refactored REST API server to use non-blocking background task
- Fixed setpoint manager bug in get_all_current_setpoints() method
- Added proper authentication to REST API test
- All 6 optimization-to-SCADA integration tests now passing
- All 5 safety workflow tests continue to pass

Key changes:
1. REST API server now starts in background task using asyncio.create_task()
2. Added proper server state management (_is_running, _server_task, _server)
3. Implemented proper shutdown mechanism with task cancellation
4. Fixed dictionary iteration bug in setpoint manager
5. Updated test to use correct admin password (admin123)
6. Test now authenticates before accessing protected endpoints
2025-10-28 18:06:18 +00:00
..
auto_discovery.py Repository structure improvements and cleanup 2025-10-27 13:11:17 +00:00
compliance_audit.py Phase 4: Complete Security Layer Implementation 2025-10-27 20:07:37 +00:00
emergency_stop.py Repository structure improvements and cleanup 2025-10-27 13:11:17 +00:00
logging.py Complete Phase 1: Core Infrastructure & Database Setup 2025-10-26 19:04:51 +00:00
optimization_manager.py Repository structure improvements and cleanup 2025-10-27 13:11:17 +00:00
safety.py Repository structure improvements and cleanup 2025-10-27 13:11:17 +00:00
security.py Phase 4: Complete Security Layer Implementation 2025-10-27 20:07:37 +00:00
setpoint_manager.py Complete REST API architectural refactoring for testability 2025-10-28 18:06:18 +00:00
tls_manager.py Phase 4: Complete Security Layer Implementation 2025-10-27 20:07:37 +00:00