mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-26 06:03:19 +00:00
test(ui): name the expected grant in the alias revocation test
This commit is contained in:
parent
41c0155f97
commit
488ea19355
1 changed files with 6 additions and 5 deletions
|
|
@ -355,15 +355,16 @@ describe("customer payload", () => {
|
|||
...toCustomerFormValues(stored),
|
||||
mcp_servers_and_groups: { servers: [keptServer.server_id], accessGroups: [], toolsets: [] },
|
||||
};
|
||||
|
||||
expect(
|
||||
buildCustomerPayload(values, stored, [sharedServer, anotherSharedServer, keptServer], []).object_permission,
|
||||
).toEqual({
|
||||
const grant = {
|
||||
mcp_servers: [keptServer.server_id],
|
||||
mcp_access_groups: [],
|
||||
mcp_toolsets: [],
|
||||
mcp_tool_permissions: {},
|
||||
});
|
||||
};
|
||||
|
||||
expect(
|
||||
buildCustomerPayload(values, stored, [sharedServer, anotherSharedServer, keptServer], []).object_permission,
|
||||
).toEqual(grant);
|
||||
});
|
||||
|
||||
it("keeps the stored ID of an existing customer exactly as stored", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue