Files
mongo/buildscripts/resmokelib/testing/hooks/validate.py
Uladzimir Makouski 0ac5f682c8 Revert "SERVER-94991 Make ValidateCollections faster (#28069)" (#28513)
GitOrigin-RevId: 088a94e4519e76ca9bb499916c7a22f8c25805b8
2024-10-25 16:13:30 +00:00

26 lines
912 B
Python

"""Test hook for verifying the consistency and integrity of collection and index data."""
import os.path
from buildscripts.resmokelib.testing.hooks import jsfile
class ValidateCollections(jsfile.PerClusterDataConsistencyHook):
"""Run full validation.
This will run on all collections in all databases on every stand-alone
node, primary replica-set node, or primary shard node.
"""
IS_BACKGROUND = False
def __init__( # pylint: disable=super-init-not-called
self, hook_logger, fixture, shell_options=None
):
"""Initialize ValidateCollections."""
description = "Full collection validation"
js_filename = os.path.join("jstests", "hooks", "run_validate_collections.js")
jsfile.JSHook.__init__( # pylint: disable=non-parent-init-called
self, hook_logger, fixture, js_filename, description, shell_options=shell_options
)