mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-31 06:56:59 +00:00
fix(e2e): keep the api client and master key in UI global setup
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0e71513813
commit
c5c15d1c19
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ async function globalSetup() {
|
|||
// keeps the default "." a no-op.
|
||||
fs.mkdirSync(ARTIFACT_DIR, { recursive: true });
|
||||
|
||||
const masterKey = getMasterKey();
|
||||
const api = await request.newContext();
|
||||
const roles = [Role.ProxyAdmin, ...Object.values(Role).filter((role) => role !== Role.ProxyAdmin)];
|
||||
for (const role of roles) {
|
||||
const { email, password, seedApiRole } = users[role];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue