-
Notifications
You must be signed in to change notification settings - Fork 794
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tests for slm collector (#928)
- Remove up, totalScrapes, and jsonParseFailures metrics. They are not useful. - Move fixtures to individual files - Base tests on the metric output for better testing the expected output instead of the internals. Signed-off-by: Joe Adams <[email protected]>
- Loading branch information
Showing
4 changed files
with
120 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"retention_runs": 9, | ||
"retention_failed": 0, | ||
"retention_timed_out": 0, | ||
"retention_deletion_time": "1.2m", | ||
"retention_deletion_time_millis": 72491, | ||
"total_snapshots_taken": 103, | ||
"total_snapshots_failed": 2, | ||
"total_snapshots_deleted": 20, | ||
"total_snapshot_deletion_failures": 0, | ||
"policy_stats": [ | ||
{ | ||
"policy": "everything", | ||
"snapshots_taken": 50, | ||
"snapshots_failed": 2, | ||
"snapshots_deleted": 20, | ||
"snapshot_deletion_failures": 0 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |