@testcontainers/gcloud
Version:
GCloud module for Testcontainers
22 lines (21 loc) • 893 B
TypeScript
import { AbstractStartedContainer, StartedTestContainer } from "testcontainers";
import { AbstractGcloudEmulator } from "./abstract-gcloud-emulator";
export declare class PubSubEmulatorContainer extends AbstractGcloudEmulator {
private projectId?;
constructor(image: string);
withProjectId(projectId: string): this;
start(): Promise<StartedPubSubEmulatorContainer>;
}
export declare class StartedPubSubEmulatorContainer extends AbstractStartedContainer {
private readonly projectId;
constructor(startedTestContainer: StartedTestContainer, projectId: string);
/**
* @return a <code>host:port</code> pair corresponding to the address on which the emulator is
* reachable from the test host machine.
*/
getEmulatorEndpoint(): string;
/**
* @returns the project ID associated with the Pub/Sub emulator.
*/
getProjectId(): string;
}