This ticket is to add test coverage for this assertion in ShardingCatalogManager::checkChunkMatchesRequest.
It could be done through a unit test or integration test. We have unit these two related unit test files:
that call methods on ShardingCatalogManager, so it might make sense to create an analogous sharding_catalog_manager_move_chunks_test.cpp.
Alternatively, it could be tested in an integration test by directly sending commitChunkMigration to the config server without a ChunkVersion when the config server is in FCV 4.4. SeeĀ this class that represents a commiitChunkMigration request.