You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
- Update provision-infrastructure test to use invalid environment parameter
- Prevents script from reaching sudo caching logic during CI testing
- Test now fails early during parameter validation instead of at infrastructure stage
- Maintains error handling test coverage without requiring interactive sudo prompts
Problem:
- make test-ci was prompting for sudo password when cache expired
- Caused by test calling provision-infrastructure.sh with parameters that trigger apply action
- Apply action requires sudo for libvirt operations via ensure_sudo_cached()
Solution:
- Changed test to use 'invalid-env' parameter instead of 'local'
- Script fails during environment validation before reaching sudo logic
- CI tests now run completely non-interactively
Benefits:
- CI tests run without user interaction
- Faster test execution (3s vs 19s)
- Maintains test validation of error handling behavior
- Clean separation between CI tests and system operations
0 commit comments