Files
mongo/buildscripts/resmokelib/testing/hooks/oplog.py
Max Hirschhorn b8f6239094 SERVER-29560 Split hooks.py module into separate files.
Also defines a generic Registry metaclass for making class declarations
store a reference to the class along with a name so that they can be
looked up later.
2017-06-14 20:44:52 -04:00

26 lines
839 B
Python

"""
Testing hook for verifying members of a replica set have matching
oplogs.
"""
from __future__ import absolute_import
import os.path
from . import jsfile
class CheckReplOplogs(jsfile.JsCustomBehavior):
"""
Checks that local.oplog.rs matches on the primary and secondaries.
"""
def __init__(self, hook_logger, fixture, shell_options=None):
description = "Check oplogs of all replica set members"
js_filename = os.path.join("jstests", "hooks", "run_check_repl_oplogs.js")
jsfile.JsCustomBehavior.__init__(self,
hook_logger,
fixture,
js_filename,
description,
shell_options=shell_options)