@@ -583,13 +583,13 @@ func TestAuthLogin_KeyringFallback(t *testing.T) {
583583 t .Errorf ("Expected API key '%s', got '%s'" , expectedAPIKey , storedKey )
584584 }
585585
586- // Test whoami with file-only storage
587- output , err = executeAuthCommand ("auth" , "whoami " )
586+ // Test status with file-only storage
587+ output , err = executeAuthCommand ("auth" , "status " )
588588 if err != nil {
589- t .Fatalf ("Whoami failed with file storage: %v" , err )
589+ t .Fatalf ("Status failed with file storage: %v" , err )
590590 }
591591 if output != "Logged in (API key stored)\n " {
592- t .Errorf ("Unexpected whoami output: '%s'" , output )
592+ t .Errorf ("Unexpected status output: '%s'" , output )
593593 }
594594
595595 // Test logout with file-only storage
@@ -666,7 +666,7 @@ func TestAuthLogin_EnvironmentVariable_FileOnly(t *testing.T) {
666666 }
667667}
668668
669- func TestAuthWhoami_LoggedIn (t * testing.T ) {
669+ func TestAuthStatus_LoggedIn (t * testing.T ) {
670670 setupAuthTest (t )
671671
672672 // Store API key first
@@ -675,24 +675,24 @@ func TestAuthWhoami_LoggedIn(t *testing.T) {
675675 t .Fatalf ("Failed to store API key: %v" , err )
676676 }
677677
678- // Execute whoami command
679- output , err := executeAuthCommand ("auth" , "whoami " )
678+ // Execute status command
679+ output , err := executeAuthCommand ("auth" , "status " )
680680 if err != nil {
681- t .Fatalf ("Whoami failed: %v" , err )
681+ t .Fatalf ("Status failed: %v" , err )
682682 }
683683
684684 if output != "Logged in (API key stored)\n " {
685685 t .Errorf ("Unexpected output: '%s' (len=%d)" , output , len (output ))
686686 }
687687}
688688
689- func TestAuthWhoami_NotLoggedIn (t * testing.T ) {
689+ func TestAuthStatus_NotLoggedIn (t * testing.T ) {
690690 setupAuthTest (t )
691691
692- // Execute whoami command without being logged in
693- _ , err := executeAuthCommand ("auth" , "whoami " )
692+ // Execute status command without being logged in
693+ _ , err := executeAuthCommand ("auth" , "status " )
694694 if err == nil {
695- t .Fatal ("Expected whoami to fail when not logged in" )
695+ t .Fatal ("Expected status to fail when not logged in" )
696696 }
697697
698698 // Error should indicate not logged in
0 commit comments