Skip to content

test(integrations): make unknown integration checks independent of network - #5486

Merged
mnriem merged 1 commit into
github:mainfrom
dlwlgnsrhy:test/offline-unknown-integration
Nov 19, 2026
Merged

mnriem merged 1 commit into
github:mainfrom
dlwlgnsrhy:test/offline-unknown-integration

Conversation

@dlwlgnsrhy

Copy link
Copy Markdown
Contributor

Summary

The unknown-integration CLI tests for init, integration install, and integration switch currently depend on the public integration catalogs. Without network access, catalog lookup fails before the CLI can report the unknown name. Reuse the existing catalog test helper to supply an empty successful response and keep the exit-code and diagnostic assertions.

Testing

All three cases failed on 617e9a0 in the restricted environment. All 247 tests in the three affected modules passed with the patch.

AI disclosure

OpenAI Codex (GPT-6.2, default reasoning settings, autonomous under contributor direction) reproduced the failures, prepared the test changes and this description, and ran the validation.

…twork

Use the existing catalog test helper to supply an empty successful response when testing init, install and switch with an unknown integration.

Assisted-by: OpenAI Codex (model: GPT-6.2, autonomous)
@dlwlgnsrhy
dlwlgnsrhy requested a review from mnriem as a code owner November 18, 2026 23:39
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 23:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified, and the changes isolate the regression tests from network-backed catalogs while preserving their existing assertions.

No open issues 🎉

What changed in this PR

This pull request makes unknown-integration CLI regression tests deterministic and independent of network-backed catalogs while preserving their existing exit-code and diagnostic assertions.

Changes:

  • Reuses the shared catalog-stubbing test base for the install, switch, and init tests.
  • Provides empty successful catalog responses before testing unknown integrations.
  • Leaves production CLI behavior unchanged.
File Description
tests/​specify_cli/​integrations/​test_command_switch.py Uses the catalog helper to isolate the unknown switch-target test from network access.
tests/​specify_cli/​integrations/​test_command_install.py Uses the catalog helper to isolate the unknown integration install test from network access.
tests/​integrations/​test_cli.py Uses the catalog helper to isolate the unknown init integration test from network access.

Review effort: Lite (adaptive)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes eliminate network dependence in the affected unknown-integration tests while preserving their existing exit-code, validation, and diagnostic assertions.

No open issues 🎉

Review effort: Lite (adaptive)

@mnriem
mnriem merged commit 7240d3a into github:main Nov 19, 2026
14 checks passed
@mnriem

mnriem commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants