Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Fix `apm marketplace add` silently failing for private repos by using credentials when probing `marketplace.json` (#701)
- Stop `test_auto_detect_through_proxy` from making real `api.github.com` calls by passing a mock `auth_resolver`, fixing flaky macOS CI rate-limit failures (#759)
- Pin codex setup to `rust-v0.118.0` for security and reproducibility; update config to `wire_api = "responses"` (#663)
- Propagate headers and environment variables through OpenCode MCP adapter with defensive copies to prevent mutation (#622)
- Fix `apm install` hanging indefinitely when corporate firewalls silently drop SSH packets by setting `GIT_SSH_COMMAND` with `ConnectTimeout=30` (#652)
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/marketplace/test_marketplace_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,11 @@ def mock_entry(*args, **kwargs):
return None # first candidate not found
return json.dumps(self._MARKETPLACE_JSON).encode()

mock_resolver = MagicMock()
mock_resolver.try_with_fallback.return_value = None
with patch("apm_cli.deps.registry_proxy.RegistryConfig.from_env", return_value=cfg), \
patch("apm_cli.deps.artifactory_entry.fetch_entry_from_archive", side_effect=mock_entry):
path = client_mod._auto_detect_path(source)
path = client_mod._auto_detect_path(source, auth_resolver=mock_resolver)

assert path == ".github/plugin/marketplace.json"

Expand Down
Loading