Files
mongo/buildscripts/resmokelib/testing/fixtures
Matthew Russotto 8d12269eec SERVER-109844 Basic support for disaggregated storage clusters (#40566)
Co-authored-by: Benety Goh <benety@mongodb.com>
Co-authored-by: Mathias Stearn <mathias@mongodb.com>
Co-authored-by: Kaitlin Mahar <kaitlin.mahar@mongodb.com>
Co-authored-by: Brandon Stoll <bstoll@users.noreply.github.com>
Co-authored-by: Vanessa Noia <54818020+nessnoia@users.noreply.github.com>
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Vishnu K <vishnu.kaushik@mongodb.com>
Co-authored-by: Sunil Narasimhamurthy <suniltheta@gmail.com>
Co-authored-by: Jiawei Yang <youngyang0820@gmail.com>
Co-authored-by: Will Korteland <korteland@users.noreply.github.com>
Co-authored-by: Saman Memaripour <amirsaman.memaripour@mongodb.com>
Co-authored-by: huayu-ouyang <huayu.ouyang@mongodb.com>
Co-authored-by: Suganthi Mani <38441312+smani87@users.noreply.github.com>
Co-authored-by: Thomas Goyne <thomas.goyne@mongodb.com>
Co-authored-by: Haley Connelly <haley.connelly@mongodb.com>
Co-authored-by: Billy Donahue <BillyDonahue@users.noreply.github.com>
Co-authored-by: Kirollos Morkos <kiro.morkos@mongodb.com>
Co-authored-by: Lingzhi Deng <lingzhi.deng@mongodb.com>
Co-authored-by: Hartek Sabharwal <hartek.sabharwal@mongodb.com>
Co-authored-by: Aaron Himelman <aaron.himelman@mongodb.com>
Co-authored-by: Moustafa Maher <m.maher@mongodb.com>
Co-authored-by: prathmesh-kallurkar <prathmesh.kallurkar@mongodb.com>
Co-authored-by: Dan Larkin-York <13419935+dhly-etc@users.noreply.github.com>
Co-authored-by: Shreyas Kalyan <35750327+shreyaskalyan@users.noreply.github.com>
Co-authored-by: Shreyas Kalyan <shreyas.kalyan@mongodb.com>
Co-authored-by: Jonathan Reams <jbreams@mongodb.com>
Co-authored-by: adriangzz <adriangonzalezmontemayor@gmail.com>
Co-authored-by: Eric Milkie <milkie@users.noreply.github.com>
Co-authored-by: Aaron B <aaron.balsara@mongodb.com>
Co-authored-by: Ali Mir <ali.mir@mongodb.com>
Co-authored-by: Alex Blekhman <alexander.blekhman@mongodb.com>
Co-authored-by: mpobrien <mpobrien005@gmail.com>
Co-authored-by: Mark Benvenuto <mark.benvenuto@mongodb.com>
Co-authored-by: Ruby Chen <ruby.chen@mongodb.com>
Co-authored-by: Jagadish Nallapaneni <146780625+jagadishmdb@users.noreply.github.com>
Co-authored-by: Jonas Bergler <jonas.bergler@mongodb.com>
Co-authored-by: Peter Macko <peter.macko@mongodb.com>
Co-authored-by: Nic <nic.hollingum@mongodb.com>
Co-authored-by: Jiawei Yang <jiawei.yang@mongodb.com>
Co-authored-by: Jordi Serra Torrens <jordist@users.noreply.github.com>
Co-authored-by: Sunil Narasimhamurthy <sunil.narasimhamurthy@mongodb.com>
GitOrigin-RevId: a1c6609c820052137e2aa759711e86c337ae6f9f
2025-08-29 22:00:57 +00:00
..

Fixtures

Fixtures define a specific topology that tests run against.

Supported Fixtures

Specify any of the following as the fixture in your Suite config:

  • BulkWriteFixture - Fixture which provides JSTests with a set of clusters to run tests against.
  • ExternalFixture - Fixture which provides JSTests capability to connect to external (non-resmoke) cluster.
  • ExternalShardedClusterFixture - Fixture to interact with external sharded cluster fixture.
  • MongoDFixture - Fixture which provides JSTests with a standalone mongod to run against.
  • MongoTFixture - Fixture which provides JSTests with a mongot to run alongside a mongod.
  • MultiReplicaSetFixture - Fixture which provides JSTests with a set of replica sets to run against.
  • MultiShardedClusterFixture - Fixture which provides JSTests with a set of sharded clusters to run against.
  • ReplicaSetFixture - Fixture which provides JSTests with a replica set to run against.
  • ShardedClusterFixture - Fixture which provides JSTests with a sharded cluster to run against.
    • Used when the MongoDB deployment is started by the JavaScript test itself with MongoRunner, ReplSetTest, or ShardingTest.
  • YesFixture - Fixture which spawns several yes executables to generate lots of log messages.

Interfaces

  • Fixture - Base class for all fixtures.
  • MultiClusterFixture - Base class for fixtures that may consist of multiple independent participant clusters.
    • The participant clusters can function independently without coordination, but are bound together only for some duration as they participate in some process such as a migration. The participant clusters are fixtures themselves.
  • NoOpFixture - A Fixture implementation that does not start any servers.
  • ReplFixture - Base class for all fixtures that support replication.