Skip to content

test: cover FME rollout prompt, governance CRUD scopes, infra deep link fallbacks - #839

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-088b
Draft

test: cover FME rollout prompt, governance CRUD scopes, infra deep link fallbacks#839
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-088b

Conversation

@cursor

@cursor cursor Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Description

Adds regression tests for recently merged production paths that lacked coverage:

Risky behavior now covered

  1. Agents invoking the rollout prompt without valid scope get a clear error instead of generating broken MCP call instructions.
  2. Account/org scoped OPA policy CRUD no longer relies solely on list-path tests — write paths are pinned.
  3. Infrastructure openInHarness links stay correct when API responses omit top-level environmentRef.

Validation

pnpm test tests/prompts/feature-flag-rollout.test.ts tests/registry/governance.test.ts tests/registry/infrastructure.test.ts
# 78 tests passed

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other — test coverage

Checklist

  • pnpm test passes (targeted files)
  • pnpm typecheck passes
  • pnpm build passes
  • pnpm standards:check passes
  • pnpm docs:check passes
Open in Web View Automation 

…nk fallbacks

Add regression tests for recently merged production paths:
- feature-flag-rollout prompt dual-mode scope validation (#806)
- policy/policy_set get/create/update/delete resource_scope (#819)
- infrastructure openInHarness param and nested response fallbacks (#809)

Co-authored-by: Rohan Gupta <thisrohangupta@users.noreply.github.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants