-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
testIssues related to tests, test coverage, or test infrastructureIssues related to tests, test coverage, or test infrastructuretest:CLITest case related to the CLITest case related to the CLI
Description
Description
Verifies that all CLI commands that require authentication fail gracefully with a clear, actionable error message when no valid login session exists, rather than crashing or producing a confusing technical error.
Steps
- Delete or rename the CLI config file so no stored credentials exist (e.g.
mv ~/.synkronus.yaml ~/.synkronus.yaml.bak) - Run
synk app-bundle upload bundle.zip - Read the error message
- Run
synk data export exports.zip - Read the error message
- Run
synk app-bundle versions - Read the error message
Expected Result
Every command that requires authentication returns a clear, non-technical error message telling the operator what to do next - for example: "You are not logged in. Run synk login to authenticate." No command panics, crashes with a Go stack trace, or produces an obscure network error. Exit code is non-zero for all unauthenticated attempts.
Actual Result
(To be filled during testing)
Priority
High
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testIssues related to tests, test coverage, or test infrastructureIssues related to tests, test coverage, or test infrastructuretest:CLITest case related to the CLITest case related to the CLI