Skip to content

mcp: add missing test coverage for Remove help resources#3747

Closed
thonmay wants to merge 1 commit into
knative:mainfrom
thonmay:fix/mcp-remove-help-resource-tests
Closed

mcp: add missing test coverage for Remove help resources#3747
thonmay wants to merge 1 commit into
knative:mainfrom
thonmay:fix/mcp-remove-help-resource-tests

Conversation

@thonmay
Copy link
Copy Markdown

@thonmay thonmay commented May 15, 2026

Changes

The Remove help resources for config volumes, config labels, and config envs were registered correctly in mcp.go but had no test coverage. Regressions in the command paths could go undetected.

Adds three test cases to TestResource_Help verifying the correct URIs and command args:

  • func://help/config/volumes/remove maps to config volumes remove --help
  • func://help/config/labels/remove maps to config labels remove --help
  • func://help/config/envs/remove maps to config envs remove --help

/kind bug

Fixes #3711

Add missing test coverage for MCP Remove help resources (config volumes/labels/envs)

The Remove help resources for config volumes, labels, and envs were
registered correctly in mcp.go but had no test coverage, making it
impossible to catch regressions.

Adds three test cases to TestResource_Help verifying the correct
command paths for config volumes/labels/envs remove help resources.

Fixes knative#3711

Signed-off-by: Thonmay <mdthoriqulislam384@gmail.com>
@knative-prow knative-prow Bot added the kind/bug Bugs label May 15, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 15, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: thonmay
Once this PR has been reviewed and has the lgtm label, please assign dprotaso for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow Bot requested review from dsimansk and jrangelramos May 15, 2026 08:59
@knative-prow knative-prow Bot added the size/S 🤖 PR changes 10-29 lines, ignoring generated files. label May 15, 2026
@knative-prow
Copy link
Copy Markdown

knative-prow Bot commented May 15, 2026

Hi @thonmay. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@knative-prow knative-prow Bot added the needs-ok-to-test 🤖 Needs an org member to approve testing label May 15, 2026
@thonmay
Copy link
Copy Markdown
Author

thonmay commented May 15, 2026

Closing in favor of #3712 by @xenonnn4w which fixes the underlying bug. Thanks.

@thonmay thonmay closed this May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Bugs needs-ok-to-test 🤖 Needs an org member to approve testing size/S 🤖 PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: 'Remove Help' resources for config volumes/labels/envs invoke wrong command

1 participant