blob: 9850438eb0ae935325cffe650ef51c02b42c5512 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
"""unittest.TestCase for multi-statement transaction passthrough tests."""
from buildscripts.resmokelib.testing.testcases import jsrunnerfile
class MultiStmtTxnTestCase(jsrunnerfile.JSRunnerFileTestCase):
"""Test case for mutli statement transactions."""
REGISTERED_NAME = "multi_stmt_txn_passthrough"
def __init__(self, logger, multi_stmt_txn_test_file, shell_executable=None, shell_options=None):
"""Initilize MultiStmtTxnTestCase."""
jsrunnerfile.JSRunnerFileTestCase.__init__(
self, logger, "Multi-statement Transaction Passthrough", multi_stmt_txn_test_file,
test_runner_file="jstests/libs/txns/txn_passthrough_runner.js",
shell_executable=shell_executable, shell_options=shell_options)
@property
def multi_stmt_txn_test_file(self):
"""Return the name of the test file."""
return self.test_name
def _populate_test_data(self, test_data):
test_data["multiStmtTxnTestFile"] = self.multi_stmt_txn_test_file
test_data["peerPids"] = self.fixture.pids()
|