Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/config/config_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ audience = "https://example.com"
require.Error(t, err)
assert.Nil(t, cfg)
assert.Contains(t, err.Error(), "auth")
assert.Contains(t, err.Error(), "HTTP")
assert.Contains(t, err.Error(), "Remove the auth configuration or change the server type to \"http\"")
}

// TestLoadFromFile_NegativePayloadSizeThresholdRejected verifies that TOML configs with
Expand Down
4 changes: 2 additions & 2 deletions internal/config/config_stdin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func TestConvertStdinServerConfig_ValidationError(t *testing.T) {
Type: "github-oidc",
},
},
errorContains: "auth is only supported for HTTP servers",
errorContains: "server type \"stdio\"",
},
}

Expand Down Expand Up @@ -320,7 +320,7 @@ func TestConvertStdinServerConfig_StdioWithAuth(t *testing.T) {
var valErr *rules.ValidationError
require.True(t, errors.As(err, &valErr), "expected a *rules.ValidationError, got %T: %v", err, err)
assert.Equal(t, "auth", valErr.Field)
assert.Contains(t, valErr.Message, "auth is only supported for HTTP servers")
assert.Contains(t, valErr.Message, "server type \"stdio\"")
assert.Contains(t, valErr.JSONPath, "mcpServers.my-server")
assert.NotEmpty(t, valErr.Suggestion)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/config/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ func TestValidateAuthConfig(t *testing.T) {
},
},
shouldErr: true,
errMsg: "auth is only supported for HTTP servers",
errMsg: "server type \"stdio\"",
},
{
name: "unknown auth type is rejected",
Expand Down
Loading