mirror of https://github.com/vector-im/riot-web
20 lines
709 B
TypeScript
20 lines
709 B
TypeScript
|
/*
|
||
|
Copyright 2024 New Vector Ltd.
|
||
|
|
||
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
||
|
Please see LICENSE files in the repository root for full details.
|
||
|
*/
|
||
|
|
||
|
import { AbstractStartedContainer, GenericContainer } from "testcontainers";
|
||
|
|
||
|
import { StartedSynapseContainer } from "./synapse.ts";
|
||
|
import { HomeserverInstance } from "../plugins/homeserver";
|
||
|
|
||
|
export interface HomeserverContainer<Config> extends GenericContainer {
|
||
|
withConfigField(key: string, value: any): this;
|
||
|
withConfig(config: Partial<Config>): this;
|
||
|
start(): Promise<StartedSynapseContainer>;
|
||
|
}
|
||
|
|
||
|
export interface StartedHomeserverContainer extends AbstractStartedContainer, HomeserverInstance {}
|