mongo/buildscripts/resmokelib/testing/fixtures
Steve McClure 32e8f260de SERVER-124136 Format markdown via prettier: wrap lines and use width of 100 (#52231)
GitOrigin-RevId: 3305c1e2ee3a6a2c3a5b2b7883b0f491a59ed646
2026-04-21 19:20:11 +00:00
..
__init__.py SERVER-94077 Use isort in Ruff configs (#27865) 2024-10-10 19:33:49 +00:00
_builder.py SERVER-120178 add unixDomainSocket support to resmoke (#49009) 2026-03-06 16:21:18 +00:00
bulk_write.py SERVER-110918 Add resmoke flag to generate extension .conf files (#41495) 2025-09-22 15:27:46 +00:00
external.py SERVER-96622 fix ValidateCollections with ExternalFixture (#28848) 2024-11-06 18:55:12 +00:00
fixturelib.py SERVER-119906: Enable UP006 ruff rule (#48284) 2026-02-20 18:55:17 +00:00
interface.py SERVER-122537 stop_balancer in between-test hooks lacks retry logic (#50369) 2026-03-27 15:02:05 +00:00
mongot.py SERVER-110918 Add resmoke flag to generate extension .conf files (#41495) 2025-09-22 15:27:46 +00:00
multi_replica_set.py SERVER-99750 Use generated certificates in jstests (#46650) 2026-01-28 18:44:45 +00:00
multi_sharded_cluster.py SERVER-99750 Use generated certificates in jstests (#46650) 2026-01-28 18:44:45 +00:00
OWNERS.yml SERVER-114147: Exlucde more collections from internode validation (#44205) 2025-11-21 19:30:54 +00:00
README.md SERVER-124136 Format markdown via prettier: wrap lines and use width of 100 (#52231) 2026-04-21 19:20:11 +00:00
replicaset.py SERVER-123445 Remove vector_search_extension suites and extension loading code (#51244) 2026-04-07 20:03:17 +00:00
shardedcluster.py SERVER-123445 Remove vector_search_extension suites and extension loading code (#51244) 2026-04-07 20:03:17 +00:00
standalone.py SERVER-123445 Remove vector_search_extension suites and extension loading code (#51244) 2026-04-07 20:03:17 +00:00
yesfixture.py SERVER-110918 Add resmoke flag to generate extension .conf files (#41495) 2025-09-22 15:27:46 +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.