diff --git a/resources/scripts/nap_install.py b/resources/scripts/nap_install.py index 6c109aa..5b66e19 100644 --- a/resources/scripts/nap_install.py +++ b/resources/scripts/nap_install.py @@ -82,7 +82,7 @@ INSTALL_PATHS = { "terminal_protocol.py": "terminal/protocol.py", "terminal_pty_manager.py": "terminal/pty_manager.py", } -CLI_GENERATED_SOURCE_REPO = os.environ.get("NAPSEER_CLI_SOURCE_REPO", "https://github.com/napseer/nap-cli") +CLI_GENERATED_SOURCE_REPO = os.environ.get("NAPSEER_CLI_SOURCE_REPO", "https://gitea.powc-r.com/napseer/nap-cli") CLI_GENERATED_SOURCE_REVISION = os.environ.get("NAPSEER_CLI_SOURCE_REVISION", "unresolved") CLI_GENERATED_SOURCE_REVISION_STATUS = os.environ.get("NAPSEER_CLI_SOURCE_REVISION_STATUS", "unresolved") HELP_TOKENS = {"help", "-h", "--help"} diff --git a/tests/test_bootstrap_entrypoint.py b/tests/test_bootstrap_entrypoint.py index 6916c4a..ddeaf62 100644 --- a/tests/test_bootstrap_entrypoint.py +++ b/tests/test_bootstrap_entrypoint.py @@ -21,7 +21,7 @@ def test_stdin_bootstrap_installs_verified_runtime_and_preserves_credentials(tmp content = (source / installer.INSTALL_PATHS[name]).read_text() item = {"name": name, "version": installer.CLI_RELEASE_VERSION, "bytes": len(content.encode()), "sha256": hashlib.sha256(content.encode()).hexdigest(), - "source_repo": "https://github.com/napseer/nap-cli", "source_revision": revision, + "source_repo": "https://gitea.powc-r.com/napseer/nap-cli", "source_revision": revision, "source_revision_status": "resolved", "contract_version": installer.CLI_DISTRIBUTION_CONTRACT_VERSION, "minimum_contract_version": installer.CLI_MINIMUM_CONTRACT_VERSION, "install_path": installer.INSTALL_PATHS[name], "mode": "0755"} @@ -30,7 +30,7 @@ def test_stdin_bootstrap_installs_verified_runtime_and_preserves_credentials(tmp payloads["/v1/scripts"] = {"schema_version": installer.CLI_BUNDLE_SCHEMA_VERSION, "bundle_id": "synthetic-bootstrap", "release_version": installer.CLI_RELEASE_VERSION, "contract": {"current": installer.CLI_DISTRIBUTION_CONTRACT_VERSION, "minimum_supported": installer.CLI_MINIMUM_CONTRACT_VERSION}, - "source": {"repo": "https://github.com/napseer/nap-cli", "revision": revision, "revision_status": "resolved"}, "items": items} + "source": {"repo": "https://gitea.powc-r.com/napseer/nap-cli", "revision": revision, "revision_status": "resolved"}, "items": items} class Provider(BaseHTTPRequestHandler): def log_message(self, *_args): diff --git a/tests/test_cli_command_system.py b/tests/test_cli_command_system.py index 2c4264d..2d2550a 100644 --- a/tests/test_cli_command_system.py +++ b/tests/test_cli_command_system.py @@ -395,7 +395,7 @@ def fake_bundle(module, revision="a" * 40, broken_name=None): "version": module.CLI_RELEASE_VERSION, "bytes": len(content.encode("utf-8")), "sha256": digest, - "source_repo": "https://github.com/napseer/nap-cli", + "source_repo": "https://gitea.powc-r.com/napseer/nap-cli", "source_revision": revision, "source_revision_status": "resolved", "contract_version": module.CLI_DISTRIBUTION_CONTRACT_VERSION, @@ -418,7 +418,7 @@ def fake_bundle(module, revision="a" * 40, broken_name=None): "minimum_supported": module.CLI_MINIMUM_CONTRACT_VERSION, }, "source": { - "repo": "https://github.com/napseer/nap-cli", + "repo": "https://gitea.powc-r.com/napseer/nap-cli", "revision": revision, "revision_status": "resolved", },