first commit
This commit is contained in:
38
tests/e2e/features/observability/observability.data.ts
Normal file
38
tests/e2e/features/observability/observability.data.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Test data factories for observability connector tests
|
||||
*/
|
||||
|
||||
/**
|
||||
* Observability connector configuration
|
||||
*/
|
||||
export interface ObservabilityConnectorConfig {
|
||||
type: 'otel' | 'maxim'
|
||||
enabled: boolean
|
||||
endpoint?: string
|
||||
apiKey?: string
|
||||
}
|
||||
|
||||
/**
|
||||
* Create OTEL connector configuration data
|
||||
*/
|
||||
export function createOtelConnectorData(overrides: Partial<ObservabilityConnectorConfig> = {}): ObservabilityConnectorConfig {
|
||||
return {
|
||||
type: 'otel',
|
||||
enabled: true,
|
||||
endpoint: 'http://localhost:4318',
|
||||
...overrides
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create Maxim connector configuration data
|
||||
*/
|
||||
export function createMaximConnectorData(overrides: Partial<ObservabilityConnectorConfig> = {}): ObservabilityConnectorConfig {
|
||||
return {
|
||||
type: 'maxim',
|
||||
enabled: true,
|
||||
endpoint: 'http://localhost:8080',
|
||||
apiKey: 'test-api-key',
|
||||
...overrides
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user