Skip to content

Commit

Permalink
Merge pull request #17786 from serathius/robustness-watch-validation-…
Browse files Browse the repository at this point in the history
…tests

Add tests to watch validation
  • Loading branch information
serathius committed Apr 15, 2024
2 parents a7f5d4b + a95a307 commit 0cd5999
Show file tree
Hide file tree
Showing 3 changed files with 1,325 additions and 161 deletions.
10 changes: 8 additions & 2 deletions tests/robustness/validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ func ValidateAndReturnVisualize(t *testing.T, lg *zap.Logger, cfg Config, report
eventHistory, err := mergeWatchEventHistory(reports)
if err != nil {
t.Errorf("Failed merging watch history to create event history, err: %s", err)
validateWatch(t, lg, cfg, reports, nil)
err = validateWatch(lg, cfg, reports, nil)
if err != nil {
t.Errorf("Failed validating watch history, err: %s", err)
}
return visualize
}
validateWatch(t, lg, cfg, reports, eventHistory)
err = validateWatch(lg, cfg, reports, eventHistory)
if err != nil {
t.Errorf("Failed validating watch history, err: %s", err)
}
validateSerializableOperations(t, lg, patchedOperations, eventHistory)
return visualize
}
Expand Down
Loading

0 comments on commit 0cd5999

Please sign in to comment.