CalejoControl/tests/integration
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
..
test_end_to_end_workflow.py Phase 6: Integration & System Testing COMPLETED 2025-10-28 15:10:53 +00:00
test_failsafe_operations.py Phase 6 Integration Testing: Complete safety workflow and optimization-to-SCADA integration tests 2025-10-28 17:25:00 +00:00
test_flexible_client.py Phase 6: Integration & System Testing COMPLETED 2025-10-28 15:10:53 +00:00
test_optimization_to_scada.py Complete REST API architectural refactoring for testability 2025-10-28 18:06:18 +00:00
test_phase1_integration_sqlite.py Phase 6: Integration & System Testing COMPLETED 2025-10-28 15:10:53 +00:00
test_protocol_security.py Phase 5: Complete Protocol Server Security Enhancement 2025-10-27 20:59:19 +00:00
test_safety_workflows.py Phase 6 Integration Testing: Complete safety workflow and optimization-to-SCADA integration tests 2025-10-28 17:25:00 +00:00