You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a validation to check if there is any extra argument in 'argv._' which may be due to leading space in flag values
Signed-off-by: Aayush Chouhan <achouhan@redhat.com>
Updated the code after Romy's PR is merged
Signed-off-by: Aayush Chouhan <achouhan@redhat.com>
Updated the logic and tests
Signed-off-by: Aayush Chouhan <achouhan@redhat.com>
Updated to enum, added examples and error msg
Signed-off-by: Aayush Chouhan <achouhan@redhat.com>
Update the function name and unit tests
Signed-off-by: Aayush Chouhan <achouhan@redhat.com>
expect(JSON.parse(res.stdout).error.code).toBe(ManageCLIError.InvalidAccountNewBucketsPath.code);// should get this error if space is also quoted with the value
@@ -2218,6 +2251,52 @@ async function exec_manage_cli_add_empty_option(command, option) {
2218
2251
returnres;
2219
2252
}
2220
2253
2254
+
/**
2255
+
* exec_manage_cli_add_leading_space_option modifies the command by appending a flag with a value(quoted or non-quoted) that includes a leading space to test CLI parsing behavior
0 commit comments