mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-11 23:55:07 -05:00
fix mcp test
This commit is contained in:
@@ -231,7 +231,7 @@ func TestMcpEndpointWithoutInitialized(t *testing.T) {
|
||||
"id": "tools-call-tool4",
|
||||
"error": map[string]any{
|
||||
"code": -32600.0,
|
||||
"message": "unauthorized Tool call: Please make sure you specify correct auth headers: <nil>",
|
||||
"message": "unauthorized Tool call: Please make sure you specify correct auth headers",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -834,7 +834,7 @@ func TestMcpEndpoint(t *testing.T) {
|
||||
"id": "tools-call-tool4",
|
||||
"error": map[string]any{
|
||||
"code": -32600.0,
|
||||
"message": "unauthorized Tool call: Please make sure you specify correct auth headers: <nil>",
|
||||
"message": "unauthorized Tool call: Please make sure you specify correct auth headers",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -97,7 +97,7 @@ func (h *masterRestoreBackupHandler) ServeHTTP(w http.ResponseWriter, r *http.Re
|
||||
default:
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
json.NewEncoder(w).Encode(map[string]string{
|
||||
_ = json.NewEncoder(w).Encode(map[string]string{
|
||||
"error": "source project and instance are required when restoring via backup ID",
|
||||
})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user