16 lines
531 B
TypeScript
16 lines
531 B
TypeScript
|
|
import { readFile } from 'node:fs/promises';
|
||
|
|
import { resolve } from 'node:path';
|
||
|
|
|
||
|
|
export interface Fixture {
|
||
|
|
runtime: string;
|
||
|
|
pod: string;
|
||
|
|
ports: { http: number; https: number; management: number; imap: number; smtp: number };
|
||
|
|
issuer: string;
|
||
|
|
origins: string[];
|
||
|
|
hostNs: string;
|
||
|
|
podNs: string;
|
||
|
|
frontend: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const fixture = JSON.parse(await readFile(resolve(process.env.MAIL_RUN!, 'fixture.json'), 'utf8')) as Fixture;
|
||
|
|
export const evidence = (name: string): string => resolve(fixture.runtime, name);
|