-
Notifications
You must be signed in to change notification settings - Fork 16
test: fix Victoria dashboard tests in KOF UI #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
AndrejsPon00
commented
Sep 10, 2025
- Fix tests that failed due to a new metrics structure
e60bc96 to
74b52cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes failing tests in the KOF UI's Victoria dashboard by updating test expectations to match a new metrics data structure. The changes address test failures that occurred after Victoria's metrics response format was updated from simple key-value pairs to arrays of metric objects with labels and values.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
tests/victoria_tests/VictoriaTable.test.tsx |
Updated pod name expectations and cluster selection to match new fake data structure |
tests/victoria_tests/VictoriaList.test.tsx |
Fixed expected pod count from 6 to 2 for mothership cluster |
tests/victoria_tests/VictoriaDetailsPage.test.tsx |
Updated component type names and tab count expectations |
tests/fake_data/fake_victoria_response.ts |
Completely restructured fake data to use new array-based metric format |
tests/MetricsCard.test.tsx |
Updated component imports and metric expectations to match new data structure |
src/components/pages/victoriaPage/victoria-details/VictoriaDetailsPage.tsx |
Fixed TabsContent wrapping for Raw Metrics tab |
src/components/pages/collectorPage/components/collector-details/CollectorContent.tsx |
Fixed TabsContent wrapping for Raw Metrics tab |
74b52cb to
10b9ffa
Compare
|
@AndrejsPon00 please add a step in CI to run tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we don't run these tests in CI, so they might be broken in future, please add a step to the CI
|