Files
mongo/buildscripts/resmokelib/testing/hooks/change_collection_consistency.py
Juan Gu 7209d62b77 SERVER-99522 Delete dead py linters (#31760)
GitOrigin-RevId: 3aedfa559dda734d4d89fefe0fe1154a5a3cf04d
2025-04-09 19:33:45 +00:00

20 lines
863 B
Python

"""Test hook for verifying members of a replica set have consistent config.system.change_collection for each tenant."""
import os.path
from buildscripts.resmokelib.testing.hooks import jsfile
class CheckReplChangeCollectionConsistency(jsfile.PerClusterDataConsistencyHook):
"""Check that config.system.change_collection is consistent between the primary and secondaries for all tenants."""
IS_BACKGROUND = False
def __init__(self, hook_logger, fixture, shell_options=None):
"""Initialize CheckReplChangeCollectionConsistency."""
description = "Check change_collection(s) of all replica set members"
js_filename = os.path.join("jstests", "hooks", "run_check_repl_change_collection.js")
jsfile.JSHook.__init__(
self, hook_logger, fixture, js_filename, description, shell_options=shell_options
)