Skip to content

[WIP] Ensure Offline Testing for kcl run, kcl mod add, kcl mod pull, kcl mod push #621

@7h3-3mp7y-m4n

Description

@7h3-3mp7y-m4n

Background

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions