As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit bbb1fb56 authored by kmcknight's avatar kmcknight
Browse files

Update test cases

parent 59c44668
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -128,12 +128,6 @@ func TestExecuteManual(t *testing.T) {
answer: "yes\n",
expectedOutput: manualQuestion + manualErrorHeader + "Internal API error (500)\n",
},
{
desc: "With missing arguments",
arguments: &commandargs.Shell{},
answer: "yes\n",
expectedOutput: manualQuestion + manualErrorHeader + "who='' is invalid\n",
},
}
for _, tc := range testCases {
Loading
Loading
Loading
Loading
@@ -75,12 +75,6 @@ func TestExecutePush(t *testing.T) {
answer: "",
expectedOutput: pushQuestion + "Push OTP validation successful. Git operations are now allowed.\n",
},
{
desc: "With bad response",
arguments: &commandargs.Shell{GitlabKeyId: "-1"},
answer: "",
expectedOutput: pushQuestion + pushErrorHeader + "Parsing failed\n",
},
{
desc: "With API returns an error",
arguments: &commandargs.Shell{GitlabKeyId: "error"},
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment