@@ -4016,7 +4016,7 @@ _test_insert_validate (insert_fn_t insert_fn)
4016
4016
}
4017
4017
4018
4018
static void
4019
- test_insert_bulk_validate (void )
4019
+ test_insert_bulk_validate (void * ctx )
4020
4020
{
4021
4021
mongoc_client_t * client ;
4022
4022
mongoc_collection_t * collection ;
@@ -4067,14 +4067,14 @@ test_insert_bulk_validate (void)
4067
4067
4068
4068
4069
4069
static void
4070
- test_insert_one_validate (void )
4070
+ test_insert_one_validate (void * ctx )
4071
4071
{
4072
4072
_test_insert_validate (insert_one );
4073
4073
}
4074
4074
4075
4075
4076
4076
static void
4077
- test_insert_many_validate (void )
4077
+ test_insert_many_validate (void * ctx )
4078
4078
{
4079
4079
_test_insert_validate (insert_many );
4080
4080
}
@@ -6674,10 +6674,24 @@ test_collection_install (TestSuite *suite)
6674
6674
NULL ,
6675
6675
test_framework_skip_if_slow_or_live );
6676
6676
TestSuite_AddLive (suite , "/Collection/many_return" , test_many_return );
6677
- TestSuite_AddLive (
6678
- suite , "/Collection/insert_one_validate" , test_insert_one_validate );
6679
- TestSuite_AddLive (
6680
- suite , "/Collection/insert_many_validate" , test_insert_many_validate );
6677
+ TestSuite_AddFull (
6678
+ suite ,
6679
+ "/Collection/insert_one_validate" ,
6680
+ test_insert_one_validate ,
6681
+ NULL ,
6682
+ NULL ,
6683
+ TestSuite_CheckLive ,
6684
+ /* TODO: remove checks when removing validation for dots and dollars */
6685
+ test_framework_skip_if_max_wire_version_more_than_9 );
6686
+ TestSuite_AddFull (
6687
+ suite ,
6688
+ "/Collection/insert_many_validate" ,
6689
+ test_insert_many_validate ,
6690
+ NULL ,
6691
+ NULL ,
6692
+ TestSuite_CheckLive ,
6693
+ /* TODO: remove checks when removing validation for dots and dollars */
6694
+ test_framework_skip_if_max_wire_version_more_than_9 );
6681
6695
TestSuite_AddMockServerTest (suite , "/Collection/limit" , test_find_limit );
6682
6696
TestSuite_AddMockServerTest (
6683
6697
suite , "/Collection/batch_size" , test_find_batch_size );
@@ -6729,8 +6743,15 @@ test_collection_install (TestSuite *suite)
6729
6743
TestSuite_AddLive (suite ,
6730
6744
"/Collection/estimated_document_count_live" ,
6731
6745
test_estimated_document_count_live );
6732
- TestSuite_AddLive (
6733
- suite , "/Collection/insert_bulk_validate" , test_insert_bulk_validate );
6746
+ TestSuite_AddFull (
6747
+ suite ,
6748
+ "/Collection/insert_bulk_validate" ,
6749
+ test_insert_bulk_validate ,
6750
+ NULL ,
6751
+ NULL ,
6752
+ TestSuite_CheckLive ,
6753
+ /* TODO: remove checks when removing validation for dots and dollars */
6754
+ test_framework_skip_if_max_wire_version_more_than_9 );
6734
6755
TestSuite_AddMockServerTest (suite ,
6735
6756
"/Collection/aggregate_with_batch_size" ,
6736
6757
test_aggregate_with_batch_size );
0 commit comments