2020-07-21 13:20:51 +00:00
|
|
|
import {UserProfile} from 'app/common/LoginSessionAPI';
|
|
|
|
|
|
|
|
export interface ITestingHooks {
|
2021-04-26 21:54:09 +00:00
|
|
|
getOwnPort(): Promise<number>;
|
|
|
|
getPort(): Promise<number>;
|
2020-07-21 13:20:51 +00:00
|
|
|
setLoginSessionProfile(gristSidCookie: string, profile: UserProfile|null, org?: string): Promise<void>;
|
|
|
|
setServerVersion(version: string|null): Promise<void>;
|
|
|
|
disconnectClients(): Promise<void>;
|
|
|
|
commShutdown(): Promise<void>;
|
|
|
|
commRestart(): Promise<void>;
|
2022-06-04 04:12:30 +00:00
|
|
|
commSetClientPersistence(ttlMs: number): Promise<number>;
|
2020-07-21 13:20:51 +00:00
|
|
|
closeDocs(): Promise<void>;
|
|
|
|
setDocWorkerActivation(workerId: string, active: 'active'|'inactive'|'crash'): Promise<void>;
|
|
|
|
flushAuthorizerCache(): Promise<void>;
|
2022-03-07 14:27:43 +00:00
|
|
|
flushDocs(): Promise<void>;
|
2020-07-21 13:20:51 +00:00
|
|
|
getDocClientCounts(): Promise<Array<[string, number]>>;
|
|
|
|
setActiveDocTimeout(seconds: number): Promise<number>;
|
2021-10-01 14:24:23 +00:00
|
|
|
setDiscourseConnectVar(varName: string, value: string|null): Promise<string|null>;
|
2021-11-26 10:43:55 +00:00
|
|
|
setWidgetRepositoryUrl(url: string): Promise<void>;
|
2020-07-21 13:20:51 +00:00
|
|
|
}
|