UNPKG

@testcontainers/azure-cosmosdb-emulator

Version:
29 lines (28 loc) 1.06 kB
import { AbstractStartedContainer, GenericContainer, StartedTestContainer } from "testcontainers"; type Protocol = "http" | "https"; export declare class AzureCosmosDbEmulatorContainer extends GenericContainer { private key; private protocol; private telemetryEnabled; private explorerEnabled; private portGenerator; constructor(image: string); withProtocol(protocol: Protocol): this; withTelemetryEnabled(telemetryEnabled: boolean): this; start(): Promise<StartedAzureCosmosDbEmulatorContainer>; } export declare class StartedAzureCosmosDbEmulatorContainer extends AbstractStartedContainer { private readonly key; private readonly port; private readonly protocol; constructor(startedContainer: StartedTestContainer, key: string, port: number, protocol: Protocol); getPort(): number; getKey(): string; getEndpoint(): string; /** * Returns a connection URI in the format: * AccountEndpoint=[protocol]://[host]:[port];AccountKey=[key]; */ getConnectionUri(): string; } export {};