Fixed broken tests. One was broken by a merge from main, one was broken because the TLS verification changed. Without pinned deps (package lock) it's hard to track down the dep change actually caused this - fix was to use http instead of https example.com test urls.
This commit is contained in:
parent
26c9f60d43
commit
f2a34b67de
2 changed files with 4 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ describe("POST /fetch endpoint", () => {
|
|||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({
|
||||
url: "https://example.com/",
|
||||
url: "http://example.com/",
|
||||
init: { method: "GET" },
|
||||
}),
|
||||
});
|
||||
|
|
@ -64,7 +64,7 @@ describe("POST /fetch endpoint", () => {
|
|||
"X-MCP-Proxy-Auth": "Bearer wrong-token",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
url: "https://example.com/",
|
||||
url: "http://example.com/",
|
||||
init: { method: "GET" },
|
||||
}),
|
||||
});
|
||||
|
|
@ -79,7 +79,7 @@ describe("POST /fetch endpoint", () => {
|
|||
"X-MCP-Proxy-Auth": `Bearer ${TEST_TOKEN}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
url: "https://example.com/",
|
||||
url: "http://example.com/",
|
||||
init: { method: "GET" },
|
||||
}),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -807,6 +807,7 @@ describe("AuthDebugger", () => {
|
|||
|
||||
expect(mockDiscoverAuthorizationServerMetadata).toHaveBeenCalledWith(
|
||||
new URL("https://custom-auth.example.com/mcp/tenant"),
|
||||
{ fetchFn: undefined },
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue