@@ -11,7 +11,7 @@ import (
1111
1212func TestResolveToken_PrefersEnv (t * testing.T ) {
1313 d := t .TempDir ()
14- p := filepath .Join (d , "credentials .json" )
14+ p := filepath .Join (d , "config .json" )
1515 _ = os .MkdirAll (d , 0o700 )
1616 _ = os .WriteFile (p , []byte (`{"api_url":"https://file.example","token":"filetok"}` ), 0o600 )
1717 t .Setenv ("MCP_RUNTIME_CONFIG_DIR" , d )
@@ -42,7 +42,7 @@ func TestConfigDir_RespectsEnv(t *testing.T) {
4242func TestSaveLoadRoundTrip (t * testing.T ) {
4343 t .Parallel ()
4444 d := t .TempDir ()
45- p := filepath .Join (d , "credentials .json" )
45+ p := filepath .Join (d , "config .json" )
4646 orig := & Credentials {
4747 APIBaseURL : "https://platform.example.com" ,
4848 Token : "secret-token-value" ,
@@ -89,7 +89,7 @@ func TestSaveLoadRoundTrip(t *testing.T) {
8989
9090func TestSaveProfilePreservesMultipleAccounts (t * testing.T ) {
9191 d := t .TempDir ()
92- p := filepath .Join (d , "credentials .json" )
92+ p := filepath .Join (d , "config .json" )
9393 if err := SaveProfile (p , "admin" , CredentialAccount {APIBaseURL : "https://platform.example.com" , Token : "admin-token" , Role : "admin" }); err != nil {
9494 t .Fatal (err )
9595 }
@@ -122,7 +122,7 @@ func TestResolveToken_UsesSelectedProfile(t *testing.T) {
122122 d := t .TempDir ()
123123 t .Setenv ("MCP_RUNTIME_CONFIG_DIR" , d )
124124 t .Setenv (EnvAPIProfile , "admin" )
125- p := filepath .Join (d , "credentials .json" )
125+ p := filepath .Join (d , "config .json" )
126126 if err := SaveProfile (p , "admin" , CredentialAccount {APIBaseURL : "https://platform.example.com" , Token : "admin-token" }); err != nil {
127127 t .Fatal (err )
128128 }
@@ -150,7 +150,7 @@ func TestLoad_Missing(t *testing.T) {
150150func TestLoad_InvalidJSON (t * testing.T ) {
151151 t .Parallel ()
152152 d := t .TempDir ()
153- p := filepath .Join (d , "credentials .json" )
153+ p := filepath .Join (d , "config .json" )
154154 if err := os .WriteFile (p , []byte (`{"api_url"` ), 0o600 ); err != nil {
155155 t .Fatal (err )
156156 }
@@ -167,7 +167,7 @@ func TestLoad_InvalidJSON(t *testing.T) {
167167func TestLoad_IncompleteCredentials (t * testing.T ) {
168168 t .Parallel ()
169169 d := t .TempDir ()
170- p := filepath .Join (d , "credentials .json" )
170+ p := filepath .Join (d , "config .json" )
171171 if err := os .WriteFile (p , []byte (`{"api_url":"https://platform.example.com"}` ), 0o600 ); err != nil {
172172 t .Fatal (err )
173173 }
0 commit comments