9d841bc947
* automation unit tests * row processor tests * update executeQuery test * update groups assertion * some more worker tests * plugin tests and tidying up * linting * temporarily disable group tests * more tests * fix import * fix backup tests * add pro mocks to worker * check for app existence in import test * test new tsconfig * testing changes * Pro test utils (#9020) * Pro test utils changes * Add test fixes * Remove ts-ignore Co-authored-by: mike12345567 <me@michaeldrury.co.uk> Co-authored-by: Rory Powell <rory.codes@gmail.com>
51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
import TestConfiguration from "../TestConfiguration"
|
|
import { AccountAPI } from "./accounts"
|
|
import { AuthAPI } from "./auth"
|
|
import { ConfigAPI } from "./configs"
|
|
import { EmailAPI } from "./email"
|
|
import { SelfAPI } from "./self"
|
|
import { UserAPI } from "./users"
|
|
import { EnvironmentAPI } from "./environment"
|
|
import { MigrationAPI } from "./migrations"
|
|
import { StatusAPI } from "./status"
|
|
import { RestoreAPI } from "./restore"
|
|
import { TenantAPI } from "./tenants"
|
|
import { GroupsAPI } from "./groups"
|
|
import { RolesAPI } from "./roles"
|
|
import { TemplatesAPI } from "./templates"
|
|
import { LicenseAPI } from "./license"
|
|
export default class API {
|
|
accounts: AccountAPI
|
|
auth: AuthAPI
|
|
configs: ConfigAPI
|
|
emails: EmailAPI
|
|
self: SelfAPI
|
|
users: UserAPI
|
|
environment: EnvironmentAPI
|
|
migrations: MigrationAPI
|
|
status: StatusAPI
|
|
restore: RestoreAPI
|
|
tenants: TenantAPI
|
|
groups: GroupsAPI
|
|
roles: RolesAPI
|
|
templates: TemplatesAPI
|
|
license: LicenseAPI
|
|
|
|
constructor(config: TestConfiguration) {
|
|
this.accounts = new AccountAPI(config)
|
|
this.auth = new AuthAPI(config)
|
|
this.configs = new ConfigAPI(config)
|
|
this.emails = new EmailAPI(config)
|
|
this.self = new SelfAPI(config)
|
|
this.users = new UserAPI(config)
|
|
this.environment = new EnvironmentAPI(config)
|
|
this.migrations = new MigrationAPI(config)
|
|
this.status = new StatusAPI(config)
|
|
this.restore = new RestoreAPI(config)
|
|
this.tenants = new TenantAPI(config)
|
|
this.groups = new GroupsAPI(config)
|
|
this.roles = new RolesAPI(config)
|
|
this.templates = new TemplatesAPI(config)
|
|
this.license = new LicenseAPI(config)
|
|
}
|
|
}
|