-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(support more backends): add ocis compatibility
smoke tests now can also use ocis as backend, to do so add OCIS=true env before running the tests. More info in readme
- Loading branch information
Showing
20 changed files
with
251 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/* eslint-disable */ | ||
export * as http from './http' | ||
export * as user from './user' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './misc' | ||
/* eslint-disable */ | ||
export * as sidebar from './sidebar' | ||
export * from './misc' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/* eslint-disable */ | ||
export * as files from './files' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,35 @@ | ||
import { User } from '../../types' | ||
const passwords = { | ||
admin: process.env.ADMIN_PASSWORD || 'admin', | ||
regular: process.env.REGULAR_USER_PASSWORD || '123456', | ||
alt1: process.env.ALT1_USER_PASSWORD || '1234', | ||
alt2: process.env.ALT2_USER_PASSWORD || 'AaBb2Cc3Dd4', | ||
alt3: process.env.ALT3_USER_PASSWORD || 'aVeryLongPassword42TheMeaningOfLife', | ||
alt4: process.env.ALT4_USER_PASSWORD || 'ThisIsThe4thAlternatePwd', | ||
alt11: process.env.ALT11_USER_PASSWORD || 'E-leven' | ||
} | ||
|
||
const users: User[] = [ | ||
{ | ||
id: 'admin', | ||
displayName: process.env.ADMIN_USERNAME || 'admin', | ||
password: passwords.admin | ||
}, | ||
{ | ||
id: 'regularuser', | ||
displayName: 'Regular User', | ||
password: passwords.regular, | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'user0', | ||
displayName: 'Regular User', | ||
password: passwords.regular, | ||
email: '[email protected]' | ||
password: 'admin' | ||
}, | ||
{ | ||
id: 'Alice', | ||
displayName: 'Alice Hansen', | ||
password: passwords.alt1, | ||
password: '1234', | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'Brian', | ||
displayName: 'Brian Murphy', | ||
password: passwords.alt2, | ||
password: '1234', | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'Carol', | ||
displayName: 'Carol King', | ||
password: passwords.alt3, | ||
password: '1234', | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'David', | ||
displayName: 'David Lopez', | ||
password: passwords.alt4, | ||
password: '1234', | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'user11', | ||
displayName: 'User Eleven', | ||
password: passwords.alt11, | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'usergrp', | ||
displayName: 'User Grp', | ||
password: passwords.regular, | ||
email: '[email protected]' | ||
}, | ||
{ | ||
id: 'sharee1', | ||
displayName: 'Sharee One', | ||
password: passwords.regular, | ||
email: '[email protected]' | ||
}, | ||
// These users are available by default only in ocis backend when not using ldap | ||
{ | ||
id: 'Einstein', | ||
displayName: 'Albert Einstein', | ||
|
@@ -96,7 +56,7 @@ const users: User[] = [ | |
} | ||
] | ||
|
||
export abstract class Users { | ||
export class Users { | ||
static get({ id }: { id: string }): User { | ||
const user = users.find(user => user.id === id) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* eslint-disable */ | ||
export * as apiHelper from './api' | ||
export * as ctaHelper from './cta' | ||
export * as fixtures from './fixtures' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.