Update README to reflect WIP
This commit is contained in:
32
test/workflows/interfaces/ITestContext.ts
Normal file
32
test/workflows/interfaces/ITestContext.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export interface ITestContext {
|
||||
readonly applicationCredentials: {
|
||||
readonly id: string;
|
||||
readonly secret: string;
|
||||
};
|
||||
readonly uri: {
|
||||
readonly pcast: string;
|
||||
readonly ingest: string;
|
||||
readonly channel: string;
|
||||
};
|
||||
readonly streamKind: string;
|
||||
readonly cleanup: (() => Promise<void>)[];
|
||||
|
||||
addCleanupTask(task: () => Promise<void>): void;
|
||||
executeCleanup(): Promise<void>;
|
||||
}
|
||||
|
||||
export interface IChannelTestContext extends ITestContext {
|
||||
channel: any; // Mutable for test setup
|
||||
readonly pcastApi: any; // Replace 'any' with proper PCastApi type
|
||||
}
|
||||
|
||||
export interface IPublisherTestContext extends IChannelTestContext {
|
||||
readonly publishSource: any; // Replace 'any' with proper RtmpPush type
|
||||
}
|
||||
|
||||
export interface ISubscriberTestContext extends IChannelTestContext {
|
||||
publishDestination: { // Mutable for test setup
|
||||
token: string;
|
||||
readonly capabilities: string[];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user