Test --skip-ssh-key is captured correctly
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
parent
0a77c56c44
commit
8839ee7ddf
1 changed files with 17 additions and 0 deletions
|
|
@ -204,6 +204,23 @@ func Test_NewCmdLogin(t *testing.T) {
|
|||
InsecureStorage: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "tty skip-ssh-key",
|
||||
stdinTTY: true,
|
||||
cli: "--skip-ssh-key",
|
||||
wants: LoginOptions{
|
||||
SkipSSHKeyPrompt: true,
|
||||
Interactive: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "nontty skip-ssh-key",
|
||||
cli: "--skip-ssh-key",
|
||||
wants: LoginOptions{
|
||||
Hostname: "github.com",
|
||||
SkipSSHKeyPrompt: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue