Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need testing for edge cases and idiosyncrasies #68

Open
1 of 2 tasks
pederhan opened this issue May 11, 2023 · 0 comments
Open
1 of 2 tasks

Need testing for edge cases and idiosyncrasies #68

pederhan opened this issue May 11, 2023 · 0 comments
Labels
tests Automated tests

Comments

@pederhan
Copy link
Member

pederhan commented May 11, 2023

The following situations need to have tests implemented for them:

  • No auth credentials should prompt: Launching the application with no Harbor auth credentials then running a command which requires credentials should prompt for credentials, then run the command with the given credentials. Test should ensure that a prompt is shown, the arguments are parsed successfully, and that the Harbor client is updated with said credentials. Finally, ensure the client uses the new credentials when running the command.
  • Global options overrides are reset between commands in REPL: When in the REPL, using a global option such as --json should only last for the duration of that command and should reset back to the original setting after the command has finished executing.

This list should be expanded with all such examples.

@pederhan pederhan added this to Harbor May 11, 2023
@pederhan pederhan added the tests Automated tests label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Automated tests
Projects
None yet
Development

No branches or pull requests

1 participant