Skip to content

Commit e07c36f

Browse files
committed
test: update card-instance-status spec to match new event-based query
1 parent d35ec68 commit e07c36f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libs/domains/observability/feature/src/lib/service/service-dashboard/card-instance-status/card-instance-status.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,16 @@ describe('CardInstanceStatus', () => {
178178
expect(useInstantMetrics).toHaveBeenCalledTimes(2)
179179
expect(useInstantMetrics).toHaveBeenCalledWith({
180180
clusterId: 'test-cluster-id',
181-
query: expect.stringContaining('kube_pod_container_status_restarts_total'),
181+
query: expect.stringContaining('k8s_event_logger_q_k8s_events_total'),
182182
startTimestamp: expect.any(String),
183183
endTimestamp: expect.any(String),
184184
boardShortName: 'service_overview',
185185
metricShortName: 'card_instance_status_error_count',
186186
})
187187

188188
const call = useInstantMetrics.mock.calls[0][0].query
189-
expect(call).toContain('test-container-name')
190-
expect(call).toContain('kube_pod_container_status_waiting_reason')
189+
expect(call).toContain('test-service-id')
190+
expect(call).toContain('k8s_event_logger_q_k8s_events_total')
191191
})
192192

193193
it('should always show modal link', () => {

0 commit comments

Comments
 (0)