Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

tanzu test plugin <plugin-name> should throw proper error when the test plugin is not installed #3473

Open
anujc25 opened this issue Sep 22, 2022 · 0 comments
Labels
area/core-cli kind/bug PR/Issue related to a bug

Comments

@anujc25
Copy link
Contributor

anujc25 commented Sep 22, 2022

Bug description

Currently, when we run tanzu test plugin <plugin-name> it runs the test plugin binary of a given plugin.
However, if the test plugin is not installed for the given plugin it doesn't mention about missing test plugin but just shows help text as below:

$ tanzu test plugin cluster
Plugin tests

Usage:
  tanzu test plugin [command]

Available Commands:
  test        Test the CLI

Flags:
  -h, --help   help for plugin

Use "tanzu test plugin [command] --help" for more information about a command.

Showing a proper error message instead of showing helptext would make lot of sense in this case.

Affected product area (please put an X in all that apply)

  • ( ) APIs
  • ( ) Addons
  • (x) CLI
  • ( ) Docs
  • ( ) IAM
  • ( ) Installation
  • ( ) Plugin
  • ( ) Security
  • ( ) Test and Release
  • ( ) User Experience
  • ( ) Developer Experience

Expected behavior

  • Show proper error message if the test plugin is not installed

Steps to reproduce the bug

Version (include the SHA if the version is not obvious)

Environment where the bug was observed (cloud, OS, etc)

Relevant Debug Output (Logs, manifests, etc)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/core-cli kind/bug PR/Issue related to a bug
Projects
None yet
Development

No branches or pull requests

1 participant