refactor: cli ()

* refactor(cli): upload asset

* chore: e2e tests
This commit is contained in:
Jason Rasmussen 2024-03-22 14:38:00 -04:00 committed by GitHub
parent db744f500b
commit 5b7417bf64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 341 additions and 410 deletions
e2e/src

View file

@ -404,9 +404,8 @@ export const utils = {
},
]),
cliLogin: async () => {
const admin = await utils.adminSetup();
const key = await utils.createApiKey(admin.accessToken);
cliLogin: async (accessToken: string) => {
const key = await utils.createApiKey(accessToken);
await immichCli(['login-key', app, `${key.secret}`]);
return key.secret;
},