-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
40 lines (36 loc) · 857 Bytes
/
types.ts
File metadata and controls
40 lines (36 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export enum TestStage {
IDLE = 'IDLE',
PRE_FETCHER = 'PRE_FETCHER',
PRE_VALIDATION = 'PRE_VALIDATION',
TASK_TRIGGER = 'TASK_TRIGGER',
POST_VALIDATION = 'POST_VALIDATION',
COMPLETED = 'COMPLETED',
FAILED = 'FAILED'
}
export interface LogEntry {
id: string;
timestamp: string;
level: 'INFO' | 'WARN' | 'ERROR' | 'SUCCESS' | 'MOCK';
message: string;
source: string; // e.g., "Main", "Thread-1", "Thread-2"
}
export interface TestCaseState {
id: string;
name: string;
status: TestStage;
logs: LogEntry[];
targetVs: string;
progress: number;
}
export interface AviResource {
name: string;
uuid: string;
type: 'VirtualService' | 'Pool' | 'ServiceEngine' | 'Tenant';
enabled?: boolean;
}
export interface AutomationConfig {
baseUrl: string;
username: string;
parallelThreads: number;
targetVsName: string;
}