keycloak-testcontainer
Version:
Run a Keycloak testcontainer with node.js
28 lines (27 loc) • 1.12 kB
TypeScript
import { GenericContainer } from 'testcontainers';
import { DatabaseOptions } from '../configuration/commands.js';
import { AdminUser } from '../configuration/environment.js';
import { StartedKeycloakContainer } from './started-container.js';
interface KeycloakContainerOptions {
registry?: string;
tag?: string;
}
export declare class KeycloakContainer extends GenericContainer {
private configuration;
constructor(options?: KeycloakContainerOptions);
getImageName(): import("testcontainers").ImageName;
withHostname(hostname: string): this;
withHealth(): this;
withRealmImport(source: string): this;
withProviders(source: string): this;
withDatabase(options: DatabaseOptions): this;
withMetrics(): this;
withFeatures(features: string[]): this;
withDisabledFeatures(disabledFeatures: string[]): this;
withAdminUser(adminUser: AdminUser): this;
withManagementPort(managementPort: number): this;
withManagementPath(managementPath: string): this;
withHostnamePath(hostnamePath: string): this;
start(): Promise<StartedKeycloakContainer>;
}
export {};