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
Currently, the test cases for kcl run, kcl mod add, kcl mod pull, and kcl mod push may require network access. To improve reliability and reproducibility, we must ensure these tests run entirely offline by utilizing a local mock registry instead of external network dependencies.
Tasks
Identify Network Dependencies
Modify Tests to Use a Local Mock Registry
Ensure all kcl mod commands interact with a locally hosted OCI registry.
Use the reg.sh script to start the local registry before running tests.
Update Test Workflow
Modify test setup to initialize the local registry.
Verify that kcl mod push and kcl mod pull work without internet access.
Validate Offline Execution
Run tests without an internet connection to confirm they function correctly.
Expected Outcome
The tests complete successfully offline, using only local resources.
kcl run, kcl mod add, kcl mod pull, and kcl mod push interact solely with the mock OCI/Git registry.