File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -424,7 +424,6 @@ func LoginBuilder() *cobra.Command {
424
424
opts .SyncWithOAuthAccessProfile (defaultProfile ),
425
425
opts .InitFlow (defaultProfile ),
426
426
opts .LoginPreRun (cmd .Context ()),
427
- validate .NoAPIKeys ,
428
427
validate .NoAccessToken ,
429
428
)
430
429
},
Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ func TestConfig(t *testing.T) {
77
77
if err = cmd .Start (); err != nil {
78
78
t .Fatal (err )
79
79
}
80
+ if _ , err = c .ExpectString ("Select authentication type" ); err != nil {
81
+ t .Fatal (err )
82
+ }
83
+ if _ , err := c .Send ("\x1B [B" ); err != nil {
84
+ t .Fatalf ("Send(Down) = %v" , err )
85
+ }
86
+ if _ , err := c .SendLine ("" ); err != nil {
87
+ t .Fatalf ("SendLine() = %v" , err )
88
+ }
80
89
81
90
if _ , err = c .ExpectString ("Public API Key" ); err != nil {
82
91
t .Fatal (err )
You can’t perform that action at this time.
0 commit comments