mongo 2.21.0 → 2.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mongo/auth/aws/conversation.rb +1 -1
- data/lib/mongo/auth/credential_cache.rb +13 -6
- data/lib/mongo/client.rb +75 -28
- data/lib/mongo/client_encryption.rb +1 -1
- data/lib/mongo/cluster/sdam_flow.rb +1 -1
- data/lib/mongo/collection/view/aggregation.rb +1 -1
- data/lib/mongo/crypt/binary.rb +5 -5
- data/lib/mongo/crypt/binding.rb +65 -1
- data/lib/mongo/crypt/context.rb +55 -27
- data/lib/mongo/crypt/encryption_io.rb +4 -2
- data/lib/mongo/crypt/handle.rb +1 -1
- data/lib/mongo/cursor.rb +1 -1
- data/lib/mongo/error/kms_error.rb +9 -0
- data/lib/mongo/error/pool_cleared_error.rb +1 -0
- data/lib/mongo/error/sdam_error_detection.rb +3 -3
- data/lib/mongo/lint.rb +1 -1
- data/lib/mongo/monitoring/event/secure.rb +1 -1
- data/lib/mongo/monitoring.rb +1 -1
- data/lib/mongo/operation/shared/read_preference_supported.rb +2 -2
- data/lib/mongo/operation/shared/sessions_supported.rb +2 -2
- data/lib/mongo/protocol/compressed.rb +1 -1
- data/lib/mongo/protocol/msg.rb +1 -1
- data/lib/mongo/search_index/view.rb +4 -4
- data/lib/mongo/server/push_monitor.rb +1 -1
- data/lib/mongo/session/server_session/dirtyable.rb +1 -1
- data/lib/mongo/socket.rb +29 -22
- data/lib/mongo/uri/srv_protocol.rb +3 -1
- data/lib/mongo/version.rb +1 -1
- data/mongo.gemspec +4 -4
- metadata +19 -2799
- data/Rakefile +0 -196
- data/spec/NOTES.aws-auth.md +0 -296
- data/spec/README.aws-auth.md +0 -318
- data/spec/README.md +0 -733
- data/spec/USERS.md +0 -72
- data/spec/atlas/atlas_connectivity_spec.rb +0 -27
- data/spec/atlas/operations_spec.rb +0 -23
- data/spec/faas/ruby-sam-app/Gemfile +0 -9
- data/spec/faas/ruby-sam-app/mongodb/Gemfile +0 -4
- data/spec/faas/ruby-sam-app/mongodb/app.rb +0 -149
- data/spec/faas/ruby-sam-app/template.yaml +0 -48
- data/spec/integration/auth_spec.rb +0 -309
- data/spec/integration/awaited_ismaster_spec.rb +0 -31
- data/spec/integration/aws_auth_credentials_cache_spec.rb +0 -51
- data/spec/integration/aws_auth_request_spec.rb +0 -77
- data/spec/integration/aws_credentials_retriever_spec.rb +0 -136
- data/spec/integration/aws_lambda_examples_spec.rb +0 -68
- data/spec/integration/bson_symbol_spec.rb +0 -39
- data/spec/integration/bulk_insert_spec.rb +0 -83
- data/spec/integration/bulk_write_error_message_spec.rb +0 -74
- data/spec/integration/bulk_write_spec.rb +0 -86
- data/spec/integration/change_stream_examples_spec.rb +0 -208
- data/spec/integration/change_stream_spec.rb +0 -814
- data/spec/integration/check_clean_slate_spec.rb +0 -19
- data/spec/integration/client_authentication_options_spec.rb +0 -514
- data/spec/integration/client_connectivity_spec.rb +0 -41
- data/spec/integration/client_construction_aws_auth_spec.rb +0 -203
- data/spec/integration/client_construction_spec.rb +0 -381
- data/spec/integration/client_side_encryption/auto_encryption_bulk_writes_spec.rb +0 -360
- data/spec/integration/client_side_encryption/auto_encryption_command_monitoring_spec.rb +0 -306
- data/spec/integration/client_side_encryption/auto_encryption_mongocryptd_spawn_spec.rb +0 -75
- data/spec/integration/client_side_encryption/auto_encryption_old_wire_version_spec.rb +0 -82
- data/spec/integration/client_side_encryption/auto_encryption_reconnect_spec.rb +0 -260
- data/spec/integration/client_side_encryption/auto_encryption_spec.rb +0 -754
- data/spec/integration/client_side_encryption/automatic_data_encryption_keys_prose_spec.rb +0 -153
- data/spec/integration/client_side_encryption/bson_size_limit_spec.rb +0 -190
- data/spec/integration/client_side_encryption/bypass_mongocryptd_spawn_spec.rb +0 -81
- data/spec/integration/client_side_encryption/client_close_spec.rb +0 -66
- data/spec/integration/client_side_encryption/corpus_spec.rb +0 -273
- data/spec/integration/client_side_encryption/custom_endpoint_spec.rb +0 -132
- data/spec/integration/client_side_encryption/data_key_spec.rb +0 -258
- data/spec/integration/client_side_encryption/decryption_events_prose_spec.rb +0 -159
- data/spec/integration/client_side_encryption/explicit_encryption_spec.rb +0 -176
- data/spec/integration/client_side_encryption/explicit_queryable_encryption_spec.rb +0 -150
- data/spec/integration/client_side_encryption/external_key_vault_spec.rb +0 -144
- data/spec/integration/client_side_encryption/kms_tls_options_spec.rb +0 -436
- data/spec/integration/client_side_encryption/kms_tls_spec.rb +0 -92
- data/spec/integration/client_side_encryption/mongocryptd_prose_spec.rb +0 -105
- data/spec/integration/client_side_encryption/on_demand_aws_credentials_spec.rb +0 -49
- data/spec/integration/client_side_encryption/on_demand_azure_credentials_spec.rb +0 -46
- data/spec/integration/client_side_encryption/on_demand_gcp_credentials_spec.rb +0 -47
- data/spec/integration/client_side_encryption/queryable_encryption_examples_spec.rb +0 -114
- data/spec/integration/client_side_encryption/range_explicit_encryption_prose_spec.rb +0 -583
- data/spec/integration/client_side_encryption/rewrap_prose_spec.rb +0 -114
- data/spec/integration/client_side_encryption/unique_index_on_key_alt_names_prose_spec.rb +0 -89
- data/spec/integration/client_side_encryption/views_spec.rb +0 -47
- data/spec/integration/client_side_operations_timeout/encryption_prose_spec.rb +0 -131
- data/spec/integration/client_spec.rb +0 -54
- data/spec/integration/client_update_spec.rb +0 -161
- data/spec/integration/collection_indexes_prose_spec.rb +0 -58
- data/spec/integration/command_monitoring_spec.rb +0 -184
- data/spec/integration/command_spec.rb +0 -157
- data/spec/integration/connect_single_rs_name_spec.rb +0 -75
- data/spec/integration/connection/faas_env_spec.rb +0 -62
- data/spec/integration/connection_pool_populator_spec.rb +0 -327
- data/spec/integration/connection_spec.rb +0 -353
- data/spec/integration/crud_spec.rb +0 -378
- data/spec/integration/cursor_pinning_spec.rb +0 -80
- data/spec/integration/cursor_reaping_spec.rb +0 -143
- data/spec/integration/docs_examples_spec.rb +0 -207
- data/spec/integration/error_detection_spec.rb +0 -42
- data/spec/integration/find_options_spec.rb +0 -227
- data/spec/integration/fork_reconnect_spec.rb +0 -207
- data/spec/integration/get_more_spec.rb +0 -42
- data/spec/integration/grid_fs_bucket_spec.rb +0 -51
- data/spec/integration/heartbeat_events_spec.rb +0 -102
- data/spec/integration/map_reduce_spec.rb +0 -81
- data/spec/integration/mmapv1_spec.rb +0 -31
- data/spec/integration/mongos_pinning_spec.rb +0 -37
- data/spec/integration/ocsp_connectivity_spec.rb +0 -29
- data/spec/integration/ocsp_verifier_cache_spec.rb +0 -191
- data/spec/integration/ocsp_verifier_spec.rb +0 -358
- data/spec/integration/operation_failure_code_spec.rb +0 -29
- data/spec/integration/operation_failure_message_spec.rb +0 -91
- data/spec/integration/query_cache_spec.rb +0 -1343
- data/spec/integration/query_cache_transactions_spec.rb +0 -193
- data/spec/integration/read_concern_spec.rb +0 -92
- data/spec/integration/read_preference_spec.rb +0 -548
- data/spec/integration/reconnect_spec.rb +0 -200
- data/spec/integration/retryable_errors_spec.rb +0 -286
- data/spec/integration/retryable_reads_errors_spec.rb +0 -275
- data/spec/integration/retryable_writes/retryable_writes_36_and_older_spec.rb +0 -764
- data/spec/integration/retryable_writes/retryable_writes_40_and_newer_spec.rb +0 -405
- data/spec/integration/retryable_writes/shared/adds_diagnostics.rb +0 -18
- data/spec/integration/retryable_writes/shared/does_not_support_retries.rb +0 -27
- data/spec/integration/retryable_writes/shared/only_supports_legacy_retries.rb +0 -28
- data/spec/integration/retryable_writes/shared/performs_legacy_retries.rb +0 -220
- data/spec/integration/retryable_writes/shared/performs_modern_retries.rb +0 -235
- data/spec/integration/retryable_writes/shared/performs_no_retries.rb +0 -113
- data/spec/integration/retryable_writes/shared/supports_legacy_retries.rb +0 -22
- data/spec/integration/retryable_writes/shared/supports_modern_retries.rb +0 -28
- data/spec/integration/retryable_writes/shared/supports_retries.rb +0 -19
- data/spec/integration/retryable_writes_errors_spec.rb +0 -348
- data/spec/integration/sdam_error_handling_spec.rb +0 -490
- data/spec/integration/sdam_events_spec.rb +0 -178
- data/spec/integration/sdam_prose_spec.rb +0 -67
- data/spec/integration/search_indexes_prose_spec.rb +0 -172
- data/spec/integration/secondary_reads_spec.rb +0 -103
- data/spec/integration/server_description_spec.rb +0 -48
- data/spec/integration/server_monitor_spec.rb +0 -57
- data/spec/integration/server_selection_spec.rb +0 -39
- data/spec/integration/server_selector_spec.rb +0 -107
- data/spec/integration/server_spec.rb +0 -67
- data/spec/integration/shell_examples_spec.rb +0 -984
- data/spec/integration/size_limit_spec.rb +0 -118
- data/spec/integration/snappy_compression_spec.rb +0 -28
- data/spec/integration/snapshot_query_examples_spec.rb +0 -129
- data/spec/integration/srv_monitoring_spec.rb +0 -445
- data/spec/integration/srv_spec.rb +0 -60
- data/spec/integration/ssl_uri_options_spec.rb +0 -28
- data/spec/integration/step_down_spec.rb +0 -225
- data/spec/integration/time_zone_querying_spec.rb +0 -55
- data/spec/integration/transaction_pinning_spec.rb +0 -134
- data/spec/integration/transactions_api_examples_spec.rb +0 -64
- data/spec/integration/transactions_examples_spec.rb +0 -235
- data/spec/integration/truncated_utf8_spec.rb +0 -26
- data/spec/integration/versioned_api_examples_spec.rb +0 -120
- data/spec/integration/x509_auth_spec.rb +0 -112
- data/spec/integration/zlib_compression_spec.rb +0 -28
- data/spec/integration/zstd_compression_spec.rb +0 -29
- data/spec/kerberos/kerberos_spec.rb +0 -98
- data/spec/lite_spec_helper.rb +0 -211
- data/spec/mongo/address/ipv4_spec.rb +0 -102
- data/spec/mongo/address/ipv6_spec.rb +0 -137
- data/spec/mongo/address/unix_spec.rb +0 -45
- data/spec/mongo/address/validator_spec.rb +0 -54
- data/spec/mongo/address_spec.rb +0 -357
- data/spec/mongo/auth/aws/credential_cache_spec.rb +0 -63
- data/spec/mongo/auth/aws/credentials_retriever_spec.rb +0 -90
- data/spec/mongo/auth/aws/credentials_spec.rb +0 -46
- data/spec/mongo/auth/aws/request_region_spec.rb +0 -45
- data/spec/mongo/auth/aws/request_spec.rb +0 -79
- data/spec/mongo/auth/cr_spec.rb +0 -58
- data/spec/mongo/auth/gssapi/conversation_spec.rb +0 -124
- data/spec/mongo/auth/invalid_mechanism_spec.rb +0 -14
- data/spec/mongo/auth/ldap/conversation_spec.rb +0 -46
- data/spec/mongo/auth/ldap_spec.rb +0 -46
- data/spec/mongo/auth/scram/conversation_spec.rb +0 -205
- data/spec/mongo/auth/scram256/conversation_spec.rb +0 -174
- data/spec/mongo/auth/scram_negotiation_spec.rb +0 -532
- data/spec/mongo/auth/scram_spec.rb +0 -121
- data/spec/mongo/auth/stringprep/profiles/sasl_spec.rb +0 -116
- data/spec/mongo/auth/stringprep_spec.rb +0 -191
- data/spec/mongo/auth/user/view_spec.rb +0 -584
- data/spec/mongo/auth/user_spec.rb +0 -343
- data/spec/mongo/auth/x509/conversation_spec.rb +0 -72
- data/spec/mongo/auth/x509_spec.rb +0 -72
- data/spec/mongo/auth_spec.rb +0 -68
- data/spec/mongo/bson_spec.rb +0 -14
- data/spec/mongo/bulk_write/ordered_combiner_spec.rb +0 -287
- data/spec/mongo/bulk_write/result_spec.rb +0 -141
- data/spec/mongo/bulk_write/unordered_combiner_spec.rb +0 -242
- data/spec/mongo/bulk_write_spec.rb +0 -2514
- data/spec/mongo/caching_cursor_spec.rb +0 -73
- data/spec/mongo/client_construction_spec.rb +0 -2723
- data/spec/mongo/client_encryption_spec.rb +0 -403
- data/spec/mongo/client_spec.rb +0 -1357
- data/spec/mongo/cluster/cursor_reaper_spec.rb +0 -230
- data/spec/mongo/cluster/periodic_executor_spec.rb +0 -21
- data/spec/mongo/cluster/socket_reaper_spec.rb +0 -46
- data/spec/mongo/cluster/topology/replica_set_spec.rb +0 -601
- data/spec/mongo/cluster/topology/sharded_spec.rb +0 -158
- data/spec/mongo/cluster/topology/single_spec.rb +0 -192
- data/spec/mongo/cluster/topology/unknown_spec.rb +0 -103
- data/spec/mongo/cluster/topology_spec.rb +0 -211
- data/spec/mongo/cluster_spec.rb +0 -825
- data/spec/mongo/cluster_time_spec.rb +0 -151
- data/spec/mongo/collection/view/aggregation_spec.rb +0 -753
- data/spec/mongo/collection/view/builder/find_command_spec.rb +0 -528
- data/spec/mongo/collection/view/builder/op_query_spec.rb +0 -161
- data/spec/mongo/collection/view/change_stream_resume_spec.rb +0 -397
- data/spec/mongo/collection/view/change_stream_spec.rb +0 -547
- data/spec/mongo/collection/view/explainable_spec.rb +0 -119
- data/spec/mongo/collection/view/immutable_spec.rb +0 -57
- data/spec/mongo/collection/view/iterable_spec.rb +0 -41
- data/spec/mongo/collection/view/map_reduce_spec.rb +0 -907
- data/spec/mongo/collection/view/readable_spec.rb +0 -2283
- data/spec/mongo/collection/view/writable_spec.rb +0 -1976
- data/spec/mongo/collection/view_spec.rb +0 -424
- data/spec/mongo/collection_crud_spec.rb +0 -4472
- data/spec/mongo/collection_ddl_spec.rb +0 -587
- data/spec/mongo/collection_spec.rb +0 -849
- data/spec/mongo/condition_variable_spec.rb +0 -104
- data/spec/mongo/config/options_spec.rb +0 -76
- data/spec/mongo/config_spec.rb +0 -74
- data/spec/mongo/crypt/auto_decryption_context_spec.rb +0 -109
- data/spec/mongo/crypt/auto_encrypter_spec.rb +0 -450
- data/spec/mongo/crypt/auto_encryption_context_spec.rb +0 -126
- data/spec/mongo/crypt/binary_spec.rb +0 -113
- data/spec/mongo/crypt/binding/binary_spec.rb +0 -54
- data/spec/mongo/crypt/binding/context_spec.rb +0 -305
- data/spec/mongo/crypt/binding/helpers_spec.rb +0 -44
- data/spec/mongo/crypt/binding/mongocrypt_spec.rb +0 -113
- data/spec/mongo/crypt/binding/status_spec.rb +0 -97
- data/spec/mongo/crypt/binding/version_spec.rb +0 -67
- data/spec/mongo/crypt/binding_unloaded_spec.rb +0 -37
- data/spec/mongo/crypt/data_key_context_spec.rb +0 -146
- data/spec/mongo/crypt/encryption_io_spec.rb +0 -141
- data/spec/mongo/crypt/explicit_decryption_context_spec.rb +0 -106
- data/spec/mongo/crypt/explicit_encryption_context_spec.rb +0 -266
- data/spec/mongo/crypt/handle_spec.rb +0 -266
- data/spec/mongo/crypt/helpers/mongo_crypt_spec_helper.rb +0 -111
- data/spec/mongo/crypt/hooks_spec.rb +0 -30
- data/spec/mongo/crypt/kms/azure/credentials_retriever_spec.rb +0 -86
- data/spec/mongo/crypt/kms/credentials_spec.rb +0 -373
- data/spec/mongo/crypt/kms_spec.rb +0 -62
- data/spec/mongo/crypt/status_spec.rb +0 -150
- data/spec/mongo/crypt_spec.rb +0 -21
- data/spec/mongo/cursor/builder/get_more_command_spec.rb +0 -195
- data/spec/mongo/cursor/builder/op_get_more_spec.rb +0 -68
- data/spec/mongo/cursor_spec.rb +0 -851
- data/spec/mongo/database_spec.rb +0 -1365
- data/spec/mongo/distinguishing_semaphore_spec.rb +0 -66
- data/spec/mongo/error/bulk_write_error_spec.rb +0 -52
- data/spec/mongo/error/crypt_error_spec.rb +0 -29
- data/spec/mongo/error/max_bson_size_spec.rb +0 -38
- data/spec/mongo/error/no_server_available_spec.rb +0 -35
- data/spec/mongo/error/notable_spec.rb +0 -62
- data/spec/mongo/error/operation_failure_heavy_spec.rb +0 -110
- data/spec/mongo/error/operation_failure_spec.rb +0 -553
- data/spec/mongo/error/parser_spec.rb +0 -519
- data/spec/mongo/error/unsupported_option_spec.rb +0 -57
- data/spec/mongo/event/publisher_spec.rb +0 -53
- data/spec/mongo/event/subscriber_spec.rb +0 -37
- data/spec/mongo/grid/file/chunk_spec.rb +0 -230
- data/spec/mongo/grid/file/info_spec.rb +0 -107
- data/spec/mongo/grid/file_spec.rb +0 -194
- data/spec/mongo/grid/fs_bucket_spec.rb +0 -1269
- data/spec/mongo/grid/stream/read_spec.rb +0 -292
- data/spec/mongo/grid/stream/write_spec.rb +0 -559
- data/spec/mongo/grid/stream_spec.rb +0 -51
- data/spec/mongo/id_spec.rb +0 -38
- data/spec/mongo/index/view_spec.rb +0 -1296
- data/spec/mongo/lint_spec.rb +0 -231
- data/spec/mongo/logger_spec.rb +0 -62
- data/spec/mongo/monitoring/command_log_subscriber_spec.rb +0 -79
- data/spec/mongo/monitoring/event/cmap/connection_check_out_failed_spec.rb +0 -26
- data/spec/mongo/monitoring/event/cmap/connection_check_out_started_spec.rb +0 -22
- data/spec/mongo/monitoring/event/cmap/connection_checked_in_spec.rb +0 -33
- data/spec/mongo/monitoring/event/cmap/connection_checked_out_spec.rb +0 -33
- data/spec/mongo/monitoring/event/cmap/connection_closed_spec.rb +0 -30
- data/spec/mongo/monitoring/event/cmap/connection_created_spec.rb +0 -27
- data/spec/mongo/monitoring/event/cmap/connection_ready_spec.rb +0 -27
- data/spec/mongo/monitoring/event/cmap/pool_cleared_spec.rb +0 -22
- data/spec/mongo/monitoring/event/cmap/pool_closed_spec.rb +0 -29
- data/spec/mongo/monitoring/event/cmap/pool_created_spec.rb +0 -36
- data/spec/mongo/monitoring/event/command_failed_spec.rb +0 -87
- data/spec/mongo/monitoring/event/command_started_spec.rb +0 -51
- data/spec/mongo/monitoring/event/command_succeeded_spec.rb +0 -88
- data/spec/mongo/monitoring/event/secure_spec.rb +0 -123
- data/spec/mongo/monitoring/event/server_closed_spec.rb +0 -38
- data/spec/mongo/monitoring/event/server_description_changed_spec.rb +0 -38
- data/spec/mongo/monitoring/event/server_heartbeat_failed_spec.rb +0 -34
- data/spec/mongo/monitoring/event/server_heartbeat_started_spec.rb +0 -34
- data/spec/mongo/monitoring/event/server_heartbeat_succeeded_spec.rb +0 -34
- data/spec/mongo/monitoring/event/server_opening_spec.rb +0 -38
- data/spec/mongo/monitoring/event/topology_changed_spec.rb +0 -44
- data/spec/mongo/monitoring/event/topology_closed_spec.rb +0 -38
- data/spec/mongo/monitoring/event/topology_opening_spec.rb +0 -38
- data/spec/mongo/monitoring_spec.rb +0 -196
- data/spec/mongo/operation/aggregate/result_spec.rb +0 -90
- data/spec/mongo/operation/aggregate_spec.rb +0 -76
- data/spec/mongo/operation/collections_info_spec.rb +0 -48
- data/spec/mongo/operation/command_spec.rb +0 -86
- data/spec/mongo/operation/context_spec.rb +0 -79
- data/spec/mongo/operation/create/op_msg_spec.rb +0 -240
- data/spec/mongo/operation/create_index_spec.rb +0 -62
- data/spec/mongo/operation/create_user_spec.rb +0 -53
- data/spec/mongo/operation/delete/bulk_spec.rb +0 -245
- data/spec/mongo/operation/delete/op_msg_spec.rb +0 -267
- data/spec/mongo/operation/delete_spec.rb +0 -203
- data/spec/mongo/operation/drop_index_spec.rb +0 -61
- data/spec/mongo/operation/find/builder/flags_spec.rb +0 -109
- data/spec/mongo/operation/find/builder/modifiers_spec.rb +0 -213
- data/spec/mongo/operation/find/op_msg_spec.rb +0 -66
- data/spec/mongo/operation/get_more/op_msg_spec.rb +0 -65
- data/spec/mongo/operation/indexes_spec.rb +0 -41
- data/spec/mongo/operation/insert/bulk_spec.rb +0 -273
- data/spec/mongo/operation/insert/op_msg_spec.rb +0 -293
- data/spec/mongo/operation/insert_spec.rb +0 -258
- data/spec/mongo/operation/limited_spec.rb +0 -55
- data/spec/mongo/operation/map_reduce_spec.rb +0 -131
- data/spec/mongo/operation/read_preference_legacy_spec.rb +0 -360
- data/spec/mongo/operation/read_preference_op_msg_spec.rb +0 -332
- data/spec/mongo/operation/remove_user_spec.rb +0 -52
- data/spec/mongo/operation/result_spec.rb +0 -369
- data/spec/mongo/operation/shared/csot/examples.rb +0 -113
- data/spec/mongo/operation/specifiable_spec.rb +0 -87
- data/spec/mongo/operation/update/bulk_spec.rb +0 -239
- data/spec/mongo/operation/update/op_msg_spec.rb +0 -272
- data/spec/mongo/operation/update_spec.rb +0 -235
- data/spec/mongo/operation/update_user_spec.rb +0 -52
- data/spec/mongo/options/redacted_spec.rb +0 -353
- data/spec/mongo/protocol/caching_hash_spec.rb +0 -37
- data/spec/mongo/protocol/compressed_spec.rb +0 -83
- data/spec/mongo/protocol/get_more_spec.rb +0 -164
- data/spec/mongo/protocol/kill_cursors_spec.rb +0 -121
- data/spec/mongo/protocol/msg_spec.rb +0 -507
- data/spec/mongo/protocol/query_spec.rb +0 -347
- data/spec/mongo/protocol/registry_spec.rb +0 -34
- data/spec/mongo/protocol/reply_spec.rb +0 -198
- data/spec/mongo/query_cache_middleware_spec.rb +0 -55
- data/spec/mongo/query_cache_spec.rb +0 -471
- data/spec/mongo/retryable/write_worker_spec.rb +0 -39
- data/spec/mongo/retryable_spec.rb +0 -624
- data/spec/mongo/semaphore_spec.rb +0 -54
- data/spec/mongo/server/app_metadata/environment_spec.rb +0 -344
- data/spec/mongo/server/app_metadata/truncator_spec.rb +0 -158
- data/spec/mongo/server/app_metadata_spec.rb +0 -158
- data/spec/mongo/server/connection_auth_spec.rb +0 -138
- data/spec/mongo/server/connection_common_spec.rb +0 -87
- data/spec/mongo/server/connection_pool/populator_spec.rb +0 -120
- data/spec/mongo/server/connection_pool_spec.rb +0 -1609
- data/spec/mongo/server/connection_spec.rb +0 -1310
- data/spec/mongo/server/description/features_spec.rb +0 -274
- data/spec/mongo/server/description_query_methods_spec.rb +0 -291
- data/spec/mongo/server/description_spec.rb +0 -846
- data/spec/mongo/server/monitor/app_metadata_spec.rb +0 -25
- data/spec/mongo/server/monitor/connection_spec.rb +0 -197
- data/spec/mongo/server/monitor_spec.rb +0 -326
- data/spec/mongo/server/push_monitor_spec.rb +0 -95
- data/spec/mongo/server/round_trip_time_calculator_spec.rb +0 -120
- data/spec/mongo/server_selector/nearest_spec.rb +0 -338
- data/spec/mongo/server_selector/primary_preferred_spec.rb +0 -372
- data/spec/mongo/server_selector/primary_spec.rb +0 -181
- data/spec/mongo/server_selector/secondary_preferred_spec.rb +0 -350
- data/spec/mongo/server_selector/secondary_spec.rb +0 -278
- data/spec/mongo/server_selector_spec.rb +0 -736
- data/spec/mongo/server_spec.rb +0 -463
- data/spec/mongo/session/server_session_spec.rb +0 -62
- data/spec/mongo/session/session_pool_spec.rb +0 -257
- data/spec/mongo/session_spec.rb +0 -368
- data/spec/mongo/session_transaction_spec.rb +0 -222
- data/spec/mongo/socket/ssl_spec.rb +0 -830
- data/spec/mongo/socket/tcp_spec.rb +0 -17
- data/spec/mongo/socket/unix_spec.rb +0 -56
- data/spec/mongo/socket_spec.rb +0 -119
- data/spec/mongo/srv/monitor_spec.rb +0 -233
- data/spec/mongo/srv/result_spec.rb +0 -57
- data/spec/mongo/timeout_spec.rb +0 -42
- data/spec/mongo/tls_context_hooks_spec.rb +0 -40
- data/spec/mongo/uri/options_mapper_spec.rb +0 -1605
- data/spec/mongo/uri/srv_protocol_spec.rb +0 -1367
- data/spec/mongo/uri_option_parsing_spec.rb +0 -625
- data/spec/mongo/uri_spec.rb +0 -1443
- data/spec/mongo/utils_spec.rb +0 -42
- data/spec/mongo/write_concern/acknowledged_spec.rb +0 -58
- data/spec/mongo/write_concern/unacknowledged_spec.rb +0 -29
- data/spec/mongo/write_concern_spec.rb +0 -227
- data/spec/runners/auth.rb +0 -140
- data/spec/runners/change_streams/outcome.rb +0 -45
- data/spec/runners/change_streams/spec.rb +0 -60
- data/spec/runners/change_streams/test.rb +0 -232
- data/spec/runners/cmap/verifier.rb +0 -48
- data/spec/runners/cmap.rb +0 -516
- data/spec/runners/command_monitoring.rb +0 -346
- data/spec/runners/connection_string.rb +0 -393
- data/spec/runners/crud/context.rb +0 -30
- data/spec/runners/crud/operation.rb +0 -480
- data/spec/runners/crud/outcome.rb +0 -56
- data/spec/runners/crud/requirement.rb +0 -139
- data/spec/runners/crud/spec.rb +0 -76
- data/spec/runners/crud/test.rb +0 -115
- data/spec/runners/crud/test_base.rb +0 -53
- data/spec/runners/crud/verifier.rb +0 -224
- data/spec/runners/crud.rb +0 -257
- data/spec/runners/gridfs.rb +0 -641
- data/spec/runners/read_write_concern_document.rb +0 -70
- data/spec/runners/sdam/verifier.rb +0 -112
- data/spec/runners/sdam.rb +0 -279
- data/spec/runners/server_selection.rb +0 -365
- data/spec/runners/server_selection_rtt.rb +0 -41
- data/spec/runners/transactions/operation.rb +0 -332
- data/spec/runners/transactions/spec.rb +0 -29
- data/spec/runners/transactions/test.rb +0 -379
- data/spec/runners/transactions.rb +0 -107
- data/spec/runners/unified/ambiguous_operations.rb +0 -13
- data/spec/runners/unified/assertions.rb +0 -396
- data/spec/runners/unified/change_stream_operations.rb +0 -42
- data/spec/runners/unified/client_side_encryption_operations.rb +0 -83
- data/spec/runners/unified/crud_operations.rb +0 -367
- data/spec/runners/unified/ddl_operations.rb +0 -286
- data/spec/runners/unified/entity_map.rb +0 -42
- data/spec/runners/unified/error.rb +0 -29
- data/spec/runners/unified/event_subscriber.rb +0 -110
- data/spec/runners/unified/exceptions.rb +0 -24
- data/spec/runners/unified/grid_fs_operations.rb +0 -114
- data/spec/runners/unified/search_index_operations.rb +0 -63
- data/spec/runners/unified/support_operations.rb +0 -370
- data/spec/runners/unified/test.rb +0 -606
- data/spec/runners/unified/test_group.rb +0 -31
- data/spec/runners/unified/thread_operations.rb +0 -73
- data/spec/runners/unified.rb +0 -109
- data/spec/solo/clean_exit_spec.rb +0 -24
- data/spec/spec_helper.rb +0 -35
- data/spec/spec_tests/auth_spec.rb +0 -58
- data/spec/spec_tests/change_streams_unified_spec.rb +0 -14
- data/spec/spec_tests/client_side_encryption_spec.rb +0 -37
- data/spec/spec_tests/client_side_encryption_unified_spec.rb +0 -26
- data/spec/spec_tests/client_side_operations_timeout_spec.rb +0 -15
- data/spec/spec_tests/cmap_spec.rb +0 -126
- data/spec/spec_tests/collection_management_spec.rb +0 -13
- data/spec/spec_tests/command_monitoring_unified_spec.rb +0 -13
- data/spec/spec_tests/connection_string_spec.rb +0 -10
- data/spec/spec_tests/crud_spec.rb +0 -12
- data/spec/spec_tests/crud_unified_spec.rb +0 -13
- data/spec/spec_tests/data/auth/connection-string.yml +0 -366
- data/spec/spec_tests/data/change_streams_unified/change-streams-clusterTime.yml +0 -43
- data/spec/spec_tests/data/change_streams_unified/change-streams-disambiguatedPaths.yml +0 -105
- data/spec/spec_tests/data/change_streams_unified/change-streams-errors.yml +0 -122
- data/spec/spec_tests/data/change_streams_unified/change-streams-pre_and_post_images.yml +0 -351
- data/spec/spec_tests/data/change_streams_unified/change-streams-resume-allowlist.yml +0 -1169
- data/spec/spec_tests/data/change_streams_unified/change-streams-resume-errorLabels.yml +0 -1069
- data/spec/spec_tests/data/change_streams_unified/change-streams-showExpandedEvents.yml +0 -307
- data/spec/spec_tests/data/change_streams_unified/change-streams.yml +0 -927
- data/spec/spec_tests/data/client_side_encryption/aggregate.yml +0 -120
- data/spec/spec_tests/data/client_side_encryption/awsTemporary.yml +0 -57
- data/spec/spec_tests/data/client_side_encryption/azureKMS.yml +0 -46
- data/spec/spec_tests/data/client_side_encryption/badQueries.yml +0 -537
- data/spec/spec_tests/data/client_side_encryption/badSchema.yml +0 -73
- data/spec/spec_tests/data/client_side_encryption/basic.yml +0 -102
- data/spec/spec_tests/data/client_side_encryption/bulk.yml +0 -81
- data/spec/spec_tests/data/client_side_encryption/bypassAutoEncryption.yml +0 -100
- data/spec/spec_tests/data/client_side_encryption/bypassedCommand.yml +0 -43
- data/spec/spec_tests/data/client_side_encryption/count.yml +0 -54
- data/spec/spec_tests/data/client_side_encryption/countDocuments.yml +0 -52
- data/spec/spec_tests/data/client_side_encryption/create-and-createIndexes.yml +0 -58
- data/spec/spec_tests/data/client_side_encryption/delete.yml +0 -91
- data/spec/spec_tests/data/client_side_encryption/distinct.yml +0 -66
- data/spec/spec_tests/data/client_side_encryption/explain.yml +0 -57
- data/spec/spec_tests/data/client_side_encryption/find.yml +0 -105
- data/spec/spec_tests/data/client_side_encryption/findOneAndDelete.yml +0 -50
- data/spec/spec_tests/data/client_side_encryption/findOneAndReplace.yml +0 -50
- data/spec/spec_tests/data/client_side_encryption/findOneAndUpdate.yml +0 -50
- data/spec/spec_tests/data/client_side_encryption/fle2v2-BypassQueryAnalysis.yml +0 -90
- data/spec/spec_tests/data/client_side_encryption/fle2v2-Compact.yml +0 -83
- data/spec/spec_tests/data/client_side_encryption/fle2v2-CreateCollection-OldServer.yml +0 -61
- data/spec/spec_tests/data/client_side_encryption/fle2v2-CreateCollection.yml +0 -938
- data/spec/spec_tests/data/client_side_encryption/fle2v2-DecryptExistingData.yml +0 -67
- data/spec/spec_tests/data/client_side_encryption/fle2v2-Delete.yml +0 -101
- data/spec/spec_tests/data/client_side_encryption/fle2v2-EncryptedFields-vs-EncryptedFieldsMap.yml +0 -80
- data/spec/spec_tests/data/client_side_encryption/fle2v2-EncryptedFields-vs-jsonSchema.yml +0 -103
- data/spec/spec_tests/data/client_side_encryption/fle2v2-EncryptedFieldsMap-defaults.yml +0 -59
- data/spec/spec_tests/data/client_side_encryption/fle2v2-FindOneAndUpdate.yml +0 -201
- data/spec/spec_tests/data/client_side_encryption/fle2v2-InsertFind-Indexed.yml +0 -97
- data/spec/spec_tests/data/client_side_encryption/fle2v2-InsertFind-Unindexed.yml +0 -90
- data/spec/spec_tests/data/client_side_encryption/fle2v2-MissingKey.yml +0 -44
- data/spec/spec_tests/data/client_side_encryption/fle2v2-NoEncryption.yml +0 -45
- data/spec/spec_tests/data/client_side_encryption/fle2v2-Update.yml +0 -211
- data/spec/spec_tests/data/client_side_encryption/fle2v2-validatorAndPartialFieldExpression.yml +0 -170
- data/spec/spec_tests/data/client_side_encryption/gcpKMS.yml +0 -46
- data/spec/spec_tests/data/client_side_encryption/getMore.yml +0 -61
- data/spec/spec_tests/data/client_side_encryption/insert.yml +0 -88
- data/spec/spec_tests/data/client_side_encryption/keyAltName.yml +0 -64
- data/spec/spec_tests/data/client_side_encryption/localKMS.yml +0 -47
- data/spec/spec_tests/data/client_side_encryption/localSchema.yml +0 -65
- data/spec/spec_tests/data/client_side_encryption/malformedCiphertext.yml +0 -69
- data/spec/spec_tests/data/client_side_encryption/maxWireVersion.yml +0 -22
- data/spec/spec_tests/data/client_side_encryption/missingKey.yml +0 -42
- data/spec/spec_tests/data/client_side_encryption/noSchema.yml +0 -39
- data/spec/spec_tests/data/client_side_encryption/replaceOne.yml +0 -57
- data/spec/spec_tests/data/client_side_encryption/timeoutMS.yml +0 -67
- data/spec/spec_tests/data/client_side_encryption/types.yml +0 -501
- data/spec/spec_tests/data/client_side_encryption/unified/addKeyAltName.yml +0 -194
- data/spec/spec_tests/data/client_side_encryption/unified/createDataKey-kms_providers-invalid.yml +0 -67
- data/spec/spec_tests/data/client_side_encryption/unified/createDataKey.yml +0 -309
- data/spec/spec_tests/data/client_side_encryption/unified/deleteKey.yml +0 -159
- data/spec/spec_tests/data/client_side_encryption/unified/getKey.yml +0 -105
- data/spec/spec_tests/data/client_side_encryption/unified/getKeyByAltName.yml +0 -104
- data/spec/spec_tests/data/client_side_encryption/unified/getKeys.yml +0 -122
- data/spec/spec_tests/data/client_side_encryption/unified/removeKeyAltName.yml +0 -157
- data/spec/spec_tests/data/client_side_encryption/unified/rewrapManyDataKey-decrypt_failure.yml +0 -69
- data/spec/spec_tests/data/client_side_encryption/unified/rewrapManyDataKey-encrypt_failure.yml +0 -122
- data/spec/spec_tests/data/client_side_encryption/unified/rewrapManyDataKey.yml +0 -432
- data/spec/spec_tests/data/client_side_encryption/unsupportedCommand.yml +0 -25
- data/spec/spec_tests/data/client_side_encryption/updateMany.yml +0 -70
- data/spec/spec_tests/data/client_side_encryption/updateOne.yml +0 -164
- data/spec/spec_tests/data/client_side_encryption/validatorAndPartialFieldExpression.yml +0 -166
- data/spec/spec_tests/data/client_side_operations_timeout/bulkWrite.yml +0 -87
- data/spec/spec_tests/data/client_side_operations_timeout/change-streams.yml +0 -358
- data/spec/spec_tests/data/client_side_operations_timeout/close-cursors.yml +0 -129
- data/spec/spec_tests/data/client_side_operations_timeout/command-execution.yml +0 -250
- data/spec/spec_tests/data/client_side_operations_timeout/convenient-transactions.yml +0 -113
- data/spec/spec_tests/data/client_side_operations_timeout/cursors.yml +0 -70
- data/spec/spec_tests/data/client_side_operations_timeout/deprecated-options.yml +0 -3982
- data/spec/spec_tests/data/client_side_operations_timeout/error-transformations.yml +0 -96
- data/spec/spec_tests/data/client_side_operations_timeout/global-timeoutMS.yml +0 -3236
- data/spec/spec_tests/data/client_side_operations_timeout/gridfs-advanced.yml +0 -207
- data/spec/spec_tests/data/client_side_operations_timeout/gridfs-delete.yml +0 -152
- data/spec/spec_tests/data/client_side_operations_timeout/gridfs-download.yml +0 -182
- data/spec/spec_tests/data/client_side_operations_timeout/gridfs-find.yml +0 -100
- data/spec/spec_tests/data/client_side_operations_timeout/gridfs-upload.yml +0 -249
- data/spec/spec_tests/data/client_side_operations_timeout/legacy-timeouts.yml +0 -204
- data/spec/spec_tests/data/client_side_operations_timeout/non-tailable-cursors.yml +0 -307
- data/spec/spec_tests/data/client_side_operations_timeout/override-collection-timeoutMS.yml +0 -1877
- data/spec/spec_tests/data/client_side_operations_timeout/override-operation-timeoutMS.yml +0 -1918
- data/spec/spec_tests/data/client_side_operations_timeout/retryability-legacy-timeouts.yml +0 -1676
- data/spec/spec_tests/data/client_side_operations_timeout/retryability-timeoutMS.yml +0 -2824
- data/spec/spec_tests/data/client_side_operations_timeout/sessions-inherit-timeoutMS.yml +0 -168
- data/spec/spec_tests/data/client_side_operations_timeout/sessions-override-operation-timeoutMS.yml +0 -171
- data/spec/spec_tests/data/client_side_operations_timeout/sessions-override-timeoutMS.yml +0 -168
- data/spec/spec_tests/data/client_side_operations_timeout/tailable-awaitData.yml +0 -247
- data/spec/spec_tests/data/client_side_operations_timeout/tailable-non-awaitData.yml +0 -181
- data/spec/spec_tests/data/cmap/connection-must-have-id.yml +0 -29
- data/spec/spec_tests/data/cmap/connection-must-order-ids.yml +0 -29
- data/spec/spec_tests/data/cmap/pool-checkin-destroy-closed.yml +0 -29
- data/spec/spec_tests/data/cmap/pool-checkin-destroy-stale.yml +0 -29
- data/spec/spec_tests/data/cmap/pool-checkin-make-available.yml +0 -26
- data/spec/spec_tests/data/cmap/pool-checkin.yml +0 -24
- data/spec/spec_tests/data/cmap/pool-checkout-connection.yml +0 -21
- data/spec/spec_tests/data/cmap/pool-checkout-custom-maxConnecting-is-enforced.yml +0 -50
- data/spec/spec_tests/data/cmap/pool-checkout-error-closed.yml +0 -38
- data/spec/spec_tests/data/cmap/pool-checkout-maxConnecting-is-enforced.yml +0 -81
- data/spec/spec_tests/data/cmap/pool-checkout-maxConnecting-timeout.yml +0 -71
- data/spec/spec_tests/data/cmap/pool-checkout-minPoolSize-connection-maxConnecting.yml +0 -64
- data/spec/spec_tests/data/cmap/pool-checkout-multiple.yml +0 -39
- data/spec/spec_tests/data/cmap/pool-checkout-no-idle.yml +0 -41
- data/spec/spec_tests/data/cmap/pool-checkout-no-stale.yml +0 -41
- data/spec/spec_tests/data/cmap/pool-checkout-returned-connection-maxConnecting.yml +0 -88
- data/spec/spec_tests/data/cmap/pool-clear-interrupting-pending-connections.yml +0 -43
- data/spec/spec_tests/data/cmap/pool-clear-min-size.yml +0 -41
- data/spec/spec_tests/data/cmap/pool-clear-paused.yml +0 -18
- data/spec/spec_tests/data/cmap/pool-clear-ready.yml +0 -39
- data/spec/spec_tests/data/cmap/pool-clear-schedule-run-interruptInUseConnections-false.yml +0 -48
- data/spec/spec_tests/data/cmap/pool-close-destroy-conns.yml +0 -30
- data/spec/spec_tests/data/cmap/pool-close.yml +0 -11
- data/spec/spec_tests/data/cmap/pool-create-max-size.yml +0 -73
- data/spec/spec_tests/data/cmap/pool-create-min-size-error.yml +0 -43
- data/spec/spec_tests/data/cmap/pool-create-min-size.yml +0 -43
- data/spec/spec_tests/data/cmap/pool-create-with-options.yml +0 -21
- data/spec/spec_tests/data/cmap/pool-create.yml +0 -12
- data/spec/spec_tests/data/cmap/pool-ready-ready.yml +0 -22
- data/spec/spec_tests/data/cmap/pool-ready.yml +0 -30
- data/spec/spec_tests/data/cmap/wait-queue-fairness.yml +0 -126
- data/spec/spec_tests/data/cmap/wait-queue-timeout.yml +0 -51
- data/spec/spec_tests/data/collection_management/clustered-indexes.yml +0 -135
- data/spec/spec_tests/data/collection_management/createCollection-pre_and_post_images.yml +0 -50
- data/spec/spec_tests/data/collection_management/modifyCollection-errorResponse.yml +0 -59
- data/spec/spec_tests/data/collection_management/modifyCollection-pre_and_post_images.yml +0 -58
- data/spec/spec_tests/data/collection_management/timeseries-collection.yml +0 -164
- data/spec/spec_tests/data/command_monitoring_unified/bulkWrite.yml +0 -68
- data/spec/spec_tests/data/command_monitoring_unified/command.yml +0 -50
- data/spec/spec_tests/data/command_monitoring_unified/deleteMany.yml +0 -79
- data/spec/spec_tests/data/command_monitoring_unified/deleteOne.yml +0 -79
- data/spec/spec_tests/data/command_monitoring_unified/find.yml +0 -254
- data/spec/spec_tests/data/command_monitoring_unified/insertMany.yml +0 -79
- data/spec/spec_tests/data/command_monitoring_unified/insertOne.yml +0 -77
- data/spec/spec_tests/data/command_monitoring_unified/pre-42-server-connection-id.yml +0 -56
- data/spec/spec_tests/data/command_monitoring_unified/redacted-commands.yml +0 -348
- data/spec/spec_tests/data/command_monitoring_unified/server-connection-id.yml +0 -56
- data/spec/spec_tests/data/command_monitoring_unified/unacknowledgedBulkWrite.yml +0 -55
- data/spec/spec_tests/data/command_monitoring_unified/updateMany.yml +0 -87
- data/spec/spec_tests/data/command_monitoring_unified/updateOne.yml +0 -118
- data/spec/spec_tests/data/command_monitoring_unified/writeConcernError.yml +0 -80
- data/spec/spec_tests/data/connection_string/invalid-uris.yml +0 -251
- data/spec/spec_tests/data/connection_string/valid-auth.yml +0 -257
- data/spec/spec_tests/data/connection_string/valid-db-with-dotted-name.yml +0 -77
- data/spec/spec_tests/data/connection_string/valid-host_identifiers.yml +0 -121
- data/spec/spec_tests/data/connection_string/valid-options.yml +0 -30
- data/spec/spec_tests/data/connection_string/valid-unix_socket-absolute.yml +0 -197
- data/spec/spec_tests/data/connection_string/valid-unix_socket-relative.yml +0 -213
- data/spec/spec_tests/data/connection_string/valid-warnings.yml +0 -75
- data/spec/spec_tests/data/crud/read/aggregate-collation.yml +0 -18
- data/spec/spec_tests/data/crud/read/aggregate-out.yml +0 -44
- data/spec/spec_tests/data/crud/read/aggregate.yml +0 -21
- data/spec/spec_tests/data/crud/read/count-collation.yml +0 -26
- data/spec/spec_tests/data/crud/read/count-empty.yml +0 -29
- data/spec/spec_tests/data/crud/read/count.yml +0 -74
- data/spec/spec_tests/data/crud/read/distinct-collation.yml +0 -18
- data/spec/spec_tests/data/crud/read/distinct.yml +0 -32
- data/spec/spec_tests/data/crud/read/find-collation.yml +0 -16
- data/spec/spec_tests/data/crud/read/find.yml +0 -49
- data/spec/spec_tests/data/crud/write/bulkWrite-arrayFilters.yml +0 -45
- data/spec/spec_tests/data/crud/write/bulkWrite-collation.yml +0 -102
- data/spec/spec_tests/data/crud/write/bulkWrite.yml +0 -405
- data/spec/spec_tests/data/crud/write/deleteMany-collation.yml +0 -23
- data/spec/spec_tests/data/crud/write/deleteMany.yml +0 -35
- data/spec/spec_tests/data/crud/write/deleteOne-collation.yml +0 -23
- data/spec/spec_tests/data/crud/write/deleteOne.yml +0 -48
- data/spec/spec_tests/data/crud/write/findOneAndDelete-collation.yml +0 -24
- data/spec/spec_tests/data/crud/write/findOneAndDelete.yml +0 -53
- data/spec/spec_tests/data/crud/write/findOneAndReplace-collation.yml +0 -25
- data/spec/spec_tests/data/crud/write/findOneAndReplace-upsert.yml +0 -91
- data/spec/spec_tests/data/crud/write/findOneAndReplace-upsert_pre_2.6.yml +0 -88
- data/spec/spec_tests/data/crud/write/findOneAndReplace.yml +0 -113
- data/spec/spec_tests/data/crud/write/findOneAndUpdate-arrayFilters.yml +0 -69
- data/spec/spec_tests/data/crud/write/findOneAndUpdate-collation.yml +0 -28
- data/spec/spec_tests/data/crud/write/findOneAndUpdate.yml +0 -163
- data/spec/spec_tests/data/crud/write/insertMany.yml +0 -81
- data/spec/spec_tests/data/crud/write/insertOne.yml +0 -18
- data/spec/spec_tests/data/crud/write/replaceOne-collation.yml +0 -25
- data/spec/spec_tests/data/crud/write/replaceOne-pre_2.6.yml +0 -98
- data/spec/spec_tests/data/crud/write/replaceOne-upsert.yml +0 -48
- data/spec/spec_tests/data/crud/write/replaceOne.yml +0 -102
- data/spec/spec_tests/data/crud/write/updateMany-arrayFilters.yml +0 -66
- data/spec/spec_tests/data/crud/write/updateMany-collation.yml +0 -29
- data/spec/spec_tests/data/crud/write/updateMany-pre_2.6.yml +0 -86
- data/spec/spec_tests/data/crud/write/updateMany.yml +0 -87
- data/spec/spec_tests/data/crud/write/updateOne-arrayFilters.yml +0 -114
- data/spec/spec_tests/data/crud/write/updateOne-collation.yml +0 -26
- data/spec/spec_tests/data/crud/write/updateOne-pre_2.6.yml +0 -83
- data/spec/spec_tests/data/crud/write/updateOne.yml +0 -84
- data/spec/spec_tests/data/crud_unified/aggregate-allowdiskuse.yml +0 -75
- data/spec/spec_tests/data/crud_unified/aggregate-let.yml +0 -138
- data/spec/spec_tests/data/crud_unified/aggregate-merge-errorResponse.yml +0 -42
- data/spec/spec_tests/data/crud_unified/aggregate-merge.yml +0 -185
- data/spec/spec_tests/data/crud_unified/aggregate-out-readConcern.yml +0 -171
- data/spec/spec_tests/data/crud_unified/aggregate-write-readPreference.yml +0 -161
- data/spec/spec_tests/data/crud_unified/aggregate.yml +0 -215
- data/spec/spec_tests/data/crud_unified/bulkWrite-arrayFilters-clientError.yml +0 -98
- data/spec/spec_tests/data/crud_unified/bulkWrite-arrayFilters.yml +0 -174
- data/spec/spec_tests/data/crud_unified/bulkWrite-comment.yml +0 -189
- data/spec/spec_tests/data/crud_unified/bulkWrite-delete-hint-clientError.yml +0 -113
- data/spec/spec_tests/data/crud_unified/bulkWrite-delete-hint-serverError.yml +0 -142
- data/spec/spec_tests/data/crud_unified/bulkWrite-delete-hint.yml +0 -154
- data/spec/spec_tests/data/crud_unified/bulkWrite-deleteMany-hint-unacknowledged.yml +0 -98
- data/spec/spec_tests/data/crud_unified/bulkWrite-deleteMany-let.yml +0 -86
- data/spec/spec_tests/data/crud_unified/bulkWrite-deleteOne-hint-unacknowledged.yml +0 -97
- data/spec/spec_tests/data/crud_unified/bulkWrite-deleteOne-let.yml +0 -86
- data/spec/spec_tests/data/crud_unified/bulkWrite-errorResponse.yml +0 -50
- data/spec/spec_tests/data/crud_unified/bulkWrite-insertOne-dots_and_dollars.yml +0 -138
- data/spec/spec_tests/data/crud_unified/bulkWrite-replaceOne-dots_and_dollars.yml +0 -165
- data/spec/spec_tests/data/crud_unified/bulkWrite-replaceOne-hint-unacknowledged.yml +0 -103
- data/spec/spec_tests/data/crud_unified/bulkWrite-replaceOne-let.yml +0 -93
- data/spec/spec_tests/data/crud_unified/bulkWrite-update-hint-clientError.yml +0 -148
- data/spec/spec_tests/data/crud_unified/bulkWrite-update-hint-serverError.yml +0 -239
- data/spec/spec_tests/data/crud_unified/bulkWrite-update-hint.yml +0 -256
- data/spec/spec_tests/data/crud_unified/bulkWrite-update-validation.yml +0 -73
- data/spec/spec_tests/data/crud_unified/bulkWrite-updateMany-dots_and_dollars.yml +0 -150
- data/spec/spec_tests/data/crud_unified/bulkWrite-updateMany-hint-unacknowledged.yml +0 -104
- data/spec/spec_tests/data/crud_unified/bulkWrite-updateMany-let.yml +0 -96
- data/spec/spec_tests/data/crud_unified/bulkWrite-updateOne-dots_and_dollars.yml +0 -150
- data/spec/spec_tests/data/crud_unified/bulkWrite-updateOne-hint-unacknowledged.yml +0 -103
- data/spec/spec_tests/data/crud_unified/bulkWrite-updateOne-let.yml +0 -95
- data/spec/spec_tests/data/crud_unified/countDocuments-comment.yml +0 -92
- data/spec/spec_tests/data/crud_unified/db-aggregate-write-readPreference.yml +0 -157
- data/spec/spec_tests/data/crud_unified/db-aggregate.yml +0 -73
- data/spec/spec_tests/data/crud_unified/deleteMany-comment.yml +0 -97
- data/spec/spec_tests/data/crud_unified/deleteMany-hint-clientError.yml +0 -87
- data/spec/spec_tests/data/crud_unified/deleteMany-hint-serverError.yml +0 -107
- data/spec/spec_tests/data/crud_unified/deleteMany-hint-unacknowledged.yml +0 -90
- data/spec/spec_tests/data/crud_unified/deleteMany-hint.yml +0 -99
- data/spec/spec_tests/data/crud_unified/deleteMany-let.yml +0 -93
- data/spec/spec_tests/data/crud_unified/deleteOne-comment.yml +0 -98
- data/spec/spec_tests/data/crud_unified/deleteOne-errorResponse.yml +0 -46
- data/spec/spec_tests/data/crud_unified/deleteOne-hint-clientError.yml +0 -80
- data/spec/spec_tests/data/crud_unified/deleteOne-hint-serverError.yml +0 -100
- data/spec/spec_tests/data/crud_unified/deleteOne-hint-unacknowledged.yml +0 -89
- data/spec/spec_tests/data/crud_unified/deleteOne-hint.yml +0 -95
- data/spec/spec_tests/data/crud_unified/deleteOne-let.yml +0 -91
- data/spec/spec_tests/data/crud_unified/distinct-comment.yml +0 -98
- data/spec/spec_tests/data/crud_unified/estimatedDocumentCount-comment.yml +0 -95
- data/spec/spec_tests/data/crud_unified/estimatedDocumentCount.yml +0 -181
- data/spec/spec_tests/data/crud_unified/find-allowdiskuse-clientError.yml +0 -55
- data/spec/spec_tests/data/crud_unified/find-allowdiskuse-serverError.yml +0 -68
- data/spec/spec_tests/data/crud_unified/find-allowdiskuse.yml +0 -79
- data/spec/spec_tests/data/crud_unified/find-comment.yml +0 -166
- data/spec/spec_tests/data/crud_unified/find-let.yml +0 -71
- data/spec/spec_tests/data/crud_unified/find-test-all-options.yml +0 -377
- data/spec/spec_tests/data/crud_unified/find.yml +0 -68
- data/spec/spec_tests/data/crud_unified/findOneAndDelete-comment.yml +0 -96
- data/spec/spec_tests/data/crud_unified/findOneAndDelete-hint-clientError.yml +0 -91
- data/spec/spec_tests/data/crud_unified/findOneAndDelete-hint-serverError.yml +0 -107
- data/spec/spec_tests/data/crud_unified/findOneAndDelete-hint-unacknowledged.yml +0 -88
- data/spec/spec_tests/data/crud_unified/findOneAndDelete-hint.yml +0 -102
- data/spec/spec_tests/data/crud_unified/findOneAndDelete-let.yml +0 -86
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-comment.yml +0 -101
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-dots_and_dollars.yml +0 -140
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-hint-clientError.yml +0 -83
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-hint-serverError.yml +0 -99
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-hint-unacknowledged.yml +0 -96
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-hint.yml +0 -98
- data/spec/spec_tests/data/crud_unified/findOneAndReplace-let.yml +0 -94
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-comment.yml +0 -95
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-dots_and_dollars.yml +0 -127
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-errorResponse.yml +0 -69
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-hint-clientError.yml +0 -84
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-hint-serverError.yml +0 -100
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-hint-unacknowledged.yml +0 -92
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-hint.yml +0 -99
- data/spec/spec_tests/data/crud_unified/findOneAndUpdate-let.yml +0 -96
- data/spec/spec_tests/data/crud_unified/insertMany-comment.yml +0 -93
- data/spec/spec_tests/data/crud_unified/insertMany-dots_and_dollars.yml +0 -128
- data/spec/spec_tests/data/crud_unified/insertOne-comment.yml +0 -91
- data/spec/spec_tests/data/crud_unified/insertOne-dots_and_dollars.yml +0 -238
- data/spec/spec_tests/data/crud_unified/insertOne-errorResponse.yml +0 -46
- data/spec/spec_tests/data/crud_unified/replaceOne-comment.yml +0 -105
- data/spec/spec_tests/data/crud_unified/replaceOne-dots_and_dollars.yml +0 -180
- data/spec/spec_tests/data/crud_unified/replaceOne-hint-unacknowledged.yml +0 -95
- data/spec/spec_tests/data/crud_unified/replaceOne-hint.yml +0 -108
- data/spec/spec_tests/data/crud_unified/replaceOne-let.yml +0 -98
- data/spec/spec_tests/data/crud_unified/replaceOne-validation.yml +0 -37
- data/spec/spec_tests/data/crud_unified/updateMany-comment.yml +0 -104
- data/spec/spec_tests/data/crud_unified/updateMany-dots_and_dollars.yml +0 -138
- data/spec/spec_tests/data/crud_unified/updateMany-hint-clientError.yml +0 -91
- data/spec/spec_tests/data/crud_unified/updateMany-hint-serverError.yml +0 -115
- data/spec/spec_tests/data/crud_unified/updateMany-hint-unacknowledged.yml +0 -96
- data/spec/spec_tests/data/crud_unified/updateMany-hint.yml +0 -115
- data/spec/spec_tests/data/crud_unified/updateMany-let.yml +0 -107
- data/spec/spec_tests/data/crud_unified/updateMany-validation.yml +0 -39
- data/spec/spec_tests/data/crud_unified/updateOne-comment.yml +0 -104
- data/spec/spec_tests/data/crud_unified/updateOne-dots_and_dollars.yml +0 -138
- data/spec/spec_tests/data/crud_unified/updateOne-errorResponse.yml +0 -47
- data/spec/spec_tests/data/crud_unified/updateOne-hint-clientError.yml +0 -85
- data/spec/spec_tests/data/crud_unified/updateOne-hint-serverError.yml +0 -109
- data/spec/spec_tests/data/crud_unified/updateOne-hint-unacknowledged.yml +0 -95
- data/spec/spec_tests/data/crud_unified/updateOne-hint.yml +0 -109
- data/spec/spec_tests/data/crud_unified/updateOne-let.yml +0 -102
- data/spec/spec_tests/data/crud_unified/updateOne-validation.yml +0 -37
- data/spec/spec_tests/data/crud_unified/updateWithPipelines.yml +0 -299
- data/spec/spec_tests/data/gridfs/delete.yml +0 -123
- data/spec/spec_tests/data/gridfs/download.yml +0 -192
- data/spec/spec_tests/data/gridfs/download_by_name.yml +0 -113
- data/spec/spec_tests/data/gridfs/upload.yml +0 -158
- data/spec/spec_tests/data/gridfs_unified/delete.yml +0 -198
- data/spec/spec_tests/data/gridfs_unified/download.yml +0 -241
- data/spec/spec_tests/data/gridfs_unified/downloadByName.yml +0 -159
- data/spec/spec_tests/data/gridfs_unified/upload-disableMD5.yml +0 -92
- data/spec/spec_tests/data/gridfs_unified/upload.yml +0 -288
- data/spec/spec_tests/data/index_management/createSearchIndex.yml +0 -64
- data/spec/spec_tests/data/index_management/createSearchIndexes.yml +0 -86
- data/spec/spec_tests/data/index_management/dropSearchIndex.yml +0 -43
- data/spec/spec_tests/data/index_management/listSearchIndexes.yml +0 -91
- data/spec/spec_tests/data/index_management/updateSearchIndex.yml +0 -46
- data/spec/spec_tests/data/load_balancers/event-monitoring.yml +0 -99
- data/spec/spec_tests/data/load_balancers/lb-connection-establishment.yml +0 -36
- data/spec/spec_tests/data/load_balancers/non-lb-connection-establishment.yml +0 -56
- data/spec/spec_tests/data/load_balancers/server-selection.yml +0 -50
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/DefaultNoMaxStaleness.yml +0 -26
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Incompatible.yml +0 -25
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/LastUpdateTime.yml +0 -33
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/MaxStalenessTooSmall.yml +0 -15
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Nearest.yml +0 -33
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Nearest2.yml +0 -33
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/NoKnownServers.yml +0 -16
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/PrimaryPreferred.yml +0 -27
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml +0 -36
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/Secondary.yml +0 -51
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/SecondaryPreferred.yml +0 -26
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml +0 -51
- data/spec/spec_tests/data/max_staleness/ReplicaSetNoPrimary/ZeroMaxStaleness.yml +0 -23
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/DefaultNoMaxStaleness.yml +0 -26
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Incompatible.yml +0 -25
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/LastUpdateTime.yml +0 -35
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/LongHeartbeat.yml +0 -29
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/LongHeartbeat2.yml +0 -25
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml +0 -26
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml +0 -23
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Nearest.yml +0 -33
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Nearest2.yml +0 -33
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Nearest_tags.yml +0 -36
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/PrimaryPreferred.yml +0 -27
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/PrimaryPreferred_incompatible.yml +0 -27
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml +0 -26
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml +0 -59
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml +0 -43
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Secondary_tags.yml +0 -59
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/Secondary_tags2.yml +0 -43
- data/spec/spec_tests/data/max_staleness/ReplicaSetWithPrimary/ZeroMaxStaleness.yml +0 -23
- data/spec/spec_tests/data/max_staleness/Sharded/Incompatible.yml +0 -25
- data/spec/spec_tests/data/max_staleness/Sharded/SmallMaxStaleness.yml +0 -28
- data/spec/spec_tests/data/max_staleness/Single/Incompatible.yml +0 -18
- data/spec/spec_tests/data/max_staleness/Single/SmallMaxStaleness.yml +0 -20
- data/spec/spec_tests/data/max_staleness/Unknown/SmallMaxStaleness.yml +0 -15
- data/spec/spec_tests/data/read_write_concern/connection-string/read-concern.yml +0 -32
- data/spec/spec_tests/data/read_write_concern/connection-string/write-concern.yml +0 -79
- data/spec/spec_tests/data/read_write_concern/document/read-concern.yml +0 -37
- data/spec/spec_tests/data/read_write_concern/document/write-concern.yml +0 -100
- data/spec/spec_tests/data/read_write_concern/operation/default-write-concern-2.6.yml +0 -215
- data/spec/spec_tests/data/read_write_concern/operation/default-write-concern-3.2.yml +0 -58
- data/spec/spec_tests/data/read_write_concern/operation/default-write-concern-3.4.yml +0 -95
- data/spec/spec_tests/data/read_write_concern/operation/default-write-concern-4.2.yml +0 -36
- data/spec/spec_tests/data/retryable_reads/legacy/aggregate-merge.yml +0 -39
- data/spec/spec_tests/data/retryable_reads/legacy/aggregate-serverErrors.yml +0 -157
- data/spec/spec_tests/data/retryable_reads/legacy/aggregate.yml +0 -87
- data/spec/spec_tests/data/retryable_reads/legacy/changeStreams-client.watch-serverErrors.yml +0 -150
- data/spec/spec_tests/data/retryable_reads/legacy/changeStreams-client.watch.yml +0 -62
- data/spec/spec_tests/data/retryable_reads/legacy/changeStreams-db.coll.watch-serverErrors.yml +0 -150
- data/spec/spec_tests/data/retryable_reads/legacy/changeStreams-db.coll.watch.yml +0 -66
- data/spec/spec_tests/data/retryable_reads/legacy/changeStreams-db.watch-serverErrors.yml +0 -154
- data/spec/spec_tests/data/retryable_reads/legacy/changeStreams-db.watch.yml +0 -62
- data/spec/spec_tests/data/retryable_reads/legacy/count-serverErrors.yml +0 -150
- data/spec/spec_tests/data/retryable_reads/legacy/count.yml +0 -64
- data/spec/spec_tests/data/retryable_reads/legacy/countDocuments-serverErrors.yml +0 -150
- data/spec/spec_tests/data/retryable_reads/legacy/countDocuments.yml +0 -64
- data/spec/spec_tests/data/retryable_reads/legacy/distinct-serverErrors.yml +0 -156
- data/spec/spec_tests/data/retryable_reads/legacy/distinct.yml +0 -71
- data/spec/spec_tests/data/retryable_reads/legacy/estimatedDocumentCount-serverErrors.yml +0 -148
- data/spec/spec_tests/data/retryable_reads/legacy/estimatedDocumentCount.yml +0 -62
- data/spec/spec_tests/data/retryable_reads/legacy/find-serverErrors.yml +0 -160
- data/spec/spec_tests/data/retryable_reads/legacy/find.yml +0 -86
- data/spec/spec_tests/data/retryable_reads/legacy/findOne-serverErrors.yml +0 -154
- data/spec/spec_tests/data/retryable_reads/legacy/findOne.yml +0 -68
- data/spec/spec_tests/data/retryable_reads/legacy/gridfs-download-serverErrors.yml +0 -173
- data/spec/spec_tests/data/retryable_reads/legacy/gridfs-download.yml +0 -79
- data/spec/spec_tests/data/retryable_reads/legacy/gridfs-downloadByName-serverErrors.yml +0 -174
- data/spec/spec_tests/data/retryable_reads/legacy/gridfs-downloadByName.yml +0 -79
- data/spec/spec_tests/data/retryable_reads/legacy/listCollectionNames-serverErrors.yml +0 -143
- data/spec/spec_tests/data/retryable_reads/legacy/listCollectionNames.yml +0 -59
- data/spec/spec_tests/data/retryable_reads/legacy/listCollectionObjects-serverErrors.yml +0 -144
- data/spec/spec_tests/data/retryable_reads/legacy/listCollectionObjects.yml +0 -59
- data/spec/spec_tests/data/retryable_reads/legacy/listCollections-serverErrors.yml +0 -143
- data/spec/spec_tests/data/retryable_reads/legacy/listCollections.yml +0 -59
- data/spec/spec_tests/data/retryable_reads/legacy/listDatabaseNames-serverErrors.yml +0 -143
- data/spec/spec_tests/data/retryable_reads/legacy/listDatabaseNames.yml +0 -59
- data/spec/spec_tests/data/retryable_reads/legacy/listDatabaseObjects-serverErrors.yml +0 -144
- data/spec/spec_tests/data/retryable_reads/legacy/listDatabaseObjects.yml +0 -59
- data/spec/spec_tests/data/retryable_reads/legacy/listDatabases-serverErrors.yml +0 -144
- data/spec/spec_tests/data/retryable_reads/legacy/listDatabases.yml +0 -59
- data/spec/spec_tests/data/retryable_reads/legacy/listIndexNames-serverErrors.yml +0 -144
- data/spec/spec_tests/data/retryable_reads/legacy/listIndexNames.yml +0 -60
- data/spec/spec_tests/data/retryable_reads/legacy/listIndexes-serverErrors.yml +0 -145
- data/spec/spec_tests/data/retryable_reads/legacy/listIndexes.yml +0 -60
- data/spec/spec_tests/data/retryable_reads/legacy/mapReduce.yml +0 -62
- data/spec/spec_tests/data/retryable_reads/unified/handshakeError.yml +0 -1342
- data/spec/spec_tests/data/retryable_writes/legacy/bulkWrite-errorLabels.yml +0 -77
- data/spec/spec_tests/data/retryable_writes/legacy/bulkWrite-serverErrors.yml +0 -130
- data/spec/spec_tests/data/retryable_writes/legacy/bulkWrite.yml +0 -402
- data/spec/spec_tests/data/retryable_writes/legacy/deleteMany.yml +0 -22
- data/spec/spec_tests/data/retryable_writes/legacy/deleteOne-errorLabels.yml +0 -48
- data/spec/spec_tests/data/retryable_writes/legacy/deleteOne-serverErrors.yml +0 -73
- data/spec/spec_tests/data/retryable_writes/legacy/deleteOne.yml +0 -57
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndDelete-errorLabels.yml +0 -49
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndDelete-serverErrors.yml +0 -74
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndDelete.yml +0 -58
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndReplace-errorLabels.yml +0 -52
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndReplace-serverErrors.yml +0 -80
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndReplace.yml +0 -63
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndUpdate-errorLabels.yml +0 -52
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndUpdate-serverErrors.yml +0 -79
- data/spec/spec_tests/data/retryable_writes/legacy/findOneAndUpdate.yml +0 -62
- data/spec/spec_tests/data/retryable_writes/legacy/insertMany-errorLabels.yml +0 -54
- data/spec/spec_tests/data/retryable_writes/legacy/insertMany-serverErrors.yml +0 -84
- data/spec/spec_tests/data/retryable_writes/legacy/insertMany.yml +0 -74
- data/spec/spec_tests/data/retryable_writes/legacy/insertOne-errorLabels.yml +0 -44
- data/spec/spec_tests/data/retryable_writes/legacy/insertOne-serverErrors.yml +0 -527
- data/spec/spec_tests/data/retryable_writes/legacy/insertOne.yml +0 -61
- data/spec/spec_tests/data/retryable_writes/legacy/replaceOne-errorLabels.yml +0 -53
- data/spec/spec_tests/data/retryable_writes/legacy/replaceOne-serverErrors.yml +0 -82
- data/spec/spec_tests/data/retryable_writes/legacy/replaceOne.yml +0 -66
- data/spec/spec_tests/data/retryable_writes/legacy/updateMany.yml +0 -27
- data/spec/spec_tests/data/retryable_writes/legacy/updateOne-errorLabels.yml +0 -53
- data/spec/spec_tests/data/retryable_writes/legacy/updateOne-serverErrors.yml +0 -82
- data/spec/spec_tests/data/retryable_writes/legacy/updateOne.yml +0 -129
- data/spec/spec_tests/data/retryable_writes/unified/bulkWrite-serverErrors.yml +0 -93
- data/spec/spec_tests/data/retryable_writes/unified/handshakeError.yml +0 -785
- data/spec/spec_tests/data/retryable_writes/unified/insertOne-noWritesPerformedError.yml +0 -54
- data/spec/spec_tests/data/retryable_writes/unified/insertOne-serverErrors.yml +0 -75
- data/spec/spec_tests/data/run_command_unified/runCommand.yml +0 -319
- data/spec/spec_tests/data/sdam/errors/error_handling_handshake.yml +0 -55
- data/spec/spec_tests/data/sdam/errors/non-stale-network-error.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/non-stale-network-timeout-error.yml +0 -38
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-InterruptedAtShutdown.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-InterruptedDueToReplStateChange.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-LegacyNotPrimary.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotPrimaryNoSecondaryOk.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotPrimaryOrSecondary.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-NotWritablePrimary.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-PrimarySteppedDown.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-greater-ShutdownInProgress.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-InterruptedAtShutdown.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-InterruptedDueToReplStateChange.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-LegacyNotPrimary.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotPrimaryNoSecondaryOk.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotPrimaryOrSecondary.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-NotWritablePrimary.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-PrimarySteppedDown.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-missing-ShutdownInProgress.yml +0 -52
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-InterruptedAtShutdown.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-InterruptedDueToReplStateChange.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-LegacyNotPrimary.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotPrimaryNoSecondaryOk.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotPrimaryOrSecondary.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-NotWritablePrimary.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-PrimarySteppedDown.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/non-stale-topologyVersion-proccessId-changed-ShutdownInProgress.yml +0 -61
- data/spec/spec_tests/data/sdam/errors/post-42-InterruptedAtShutdown.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-InterruptedDueToReplStateChange.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-LegacyNotPrimary.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-NotPrimaryNoSecondaryOk.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-NotPrimaryOrSecondary.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-NotWritablePrimary.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-PrimarySteppedDown.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/post-42-ShutdownInProgress.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-InterruptedAtShutdown.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-InterruptedDueToReplStateChange.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-LegacyNotPrimary.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-NotPrimaryNoSecondaryOk.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-NotPrimaryOrSecondary.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-NotWritablePrimary.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-PrimarySteppedDown.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/pre-42-ShutdownInProgress.yml +0 -47
- data/spec/spec_tests/data/sdam/errors/prefer-error-code.yml +0 -54
- data/spec/spec_tests/data/sdam/errors/stale-generation-InterruptedAtShutdown.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-InterruptedDueToReplStateChange.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-NotPrimaryNoSecondaryOk.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-NotPrimaryOrSecondary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-NotWritablePrimary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-PrimarySteppedDown.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-ShutdownInProgress.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-InterruptedAtShutdown.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-InterruptedDueToReplStateChange.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-LegacyNotPrimary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-NotPrimaryNoSecondaryOk.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-NotPrimaryOrSecondary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-NotWritablePrimary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-PrimarySteppedDown.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-ShutdownInProgress.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-network.yml +0 -82
- data/spec/spec_tests/data/sdam/errors/stale-generation-afterHandshakeCompletes-timeout.yml +0 -82
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-InterruptedAtShutdown.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-InterruptedDueToReplStateChange.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-LegacyNotPrimary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-NotPrimaryNoSecondaryOk.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-NotPrimaryOrSecondary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-NotWritablePrimary.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-PrimarySteppedDown.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-ShutdownInProgress.yml +0 -91
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-network.yml +0 -82
- data/spec/spec_tests/data/sdam/errors/stale-generation-beforeHandshakeCompletes-timeout.yml +0 -82
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-InterruptedAtShutdown.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-InterruptedDueToReplStateChange.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-LegacyNotPrimary.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-NotPrimaryNoSecondaryOk.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-NotPrimaryOrSecondary.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-NotWritablePrimary.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-PrimarySteppedDown.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/stale-topologyVersion-ShutdownInProgress.yml +0 -65
- data/spec/spec_tests/data/sdam/errors/write_errors_ignored.yml +0 -42
- data/spec/spec_tests/data/sdam/load-balanced/discover_load_balancer.yml +0 -25
- data/spec/spec_tests/data/sdam/rs/compatible.yml +0 -45
- data/spec/spec_tests/data/sdam/rs/compatible_unknown.yml +0 -34
- data/spec/spec_tests/data/sdam/rs/discover_arbiters.yml +0 -44
- data/spec/spec_tests/data/sdam/rs/discover_arbiters_replicaset.yml +0 -44
- data/spec/spec_tests/data/sdam/rs/discover_ghost.yml +0 -36
- data/spec/spec_tests/data/sdam/rs/discover_ghost_replicaset.yml +0 -42
- data/spec/spec_tests/data/sdam/rs/discover_hidden.yml +0 -51
- data/spec/spec_tests/data/sdam/rs/discover_hidden_replicaset.yml +0 -51
- data/spec/spec_tests/data/sdam/rs/discover_passives.yml +0 -83
- data/spec/spec_tests/data/sdam/rs/discover_passives_replicaset.yml +0 -83
- data/spec/spec_tests/data/sdam/rs/discover_primary.yml +0 -43
- data/spec/spec_tests/data/sdam/rs/discover_primary_replicaset.yml +0 -43
- data/spec/spec_tests/data/sdam/rs/discover_rsother.yml +0 -50
- data/spec/spec_tests/data/sdam/rs/discover_rsother_replicaset.yml +0 -68
- data/spec/spec_tests/data/sdam/rs/discover_secondary.yml +0 -44
- data/spec/spec_tests/data/sdam/rs/discover_secondary_replicaset.yml +0 -44
- data/spec/spec_tests/data/sdam/rs/discovery.yml +0 -207
- data/spec/spec_tests/data/sdam/rs/electionId_precedence_setVersion.yml +0 -62
- data/spec/spec_tests/data/sdam/rs/equal_electionids.yml +0 -57
- data/spec/spec_tests/data/sdam/rs/hosts_differ_from_seeds.yml +0 -37
- data/spec/spec_tests/data/sdam/rs/incompatible_arbiter.yml +0 -36
- data/spec/spec_tests/data/sdam/rs/incompatible_ghost.yml +0 -34
- data/spec/spec_tests/data/sdam/rs/incompatible_other.yml +0 -36
- data/spec/spec_tests/data/sdam/rs/ls_timeout.yml +0 -249
- data/spec/spec_tests/data/sdam/rs/member_reconfig.yml +0 -74
- data/spec/spec_tests/data/sdam/rs/member_standalone.yml +0 -66
- data/spec/spec_tests/data/sdam/rs/new_primary.yml +0 -80
- data/spec/spec_tests/data/sdam/rs/new_primary_new_electionid.yml +0 -119
- data/spec/spec_tests/data/sdam/rs/new_primary_new_setversion.yml +0 -119
- data/spec/spec_tests/data/sdam/rs/new_primary_wrong_set_name.yml +0 -77
- data/spec/spec_tests/data/sdam/rs/non_rs_member.yml +0 -33
- data/spec/spec_tests/data/sdam/rs/normalize_case.yml +0 -52
- data/spec/spec_tests/data/sdam/rs/normalize_case_me.yml +0 -102
- data/spec/spec_tests/data/sdam/rs/null_election_id-pre-6.0.yml +0 -175
- data/spec/spec_tests/data/sdam/rs/null_election_id.yml +0 -177
- data/spec/spec_tests/data/sdam/rs/primary_becomes_ghost.yml +0 -65
- data/spec/spec_tests/data/sdam/rs/primary_becomes_mongos.yml +0 -58
- data/spec/spec_tests/data/sdam/rs/primary_becomes_standalone.yml +0 -55
- data/spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml +0 -63
- data/spec/spec_tests/data/sdam/rs/primary_disconnect.yml +0 -59
- data/spec/spec_tests/data/sdam/rs/primary_disconnect_electionid.yml +0 -189
- data/spec/spec_tests/data/sdam/rs/primary_disconnect_setversion.yml +0 -189
- data/spec/spec_tests/data/sdam/rs/primary_hint_from_secondary_with_mismatched_me.yml +0 -64
- data/spec/spec_tests/data/sdam/rs/primary_mismatched_me.yml +0 -27
- data/spec/spec_tests/data/sdam/rs/primary_mismatched_me_not_removed.yml +0 -75
- data/spec/spec_tests/data/sdam/rs/primary_reports_new_member.yml +0 -175
- data/spec/spec_tests/data/sdam/rs/primary_to_no_primary_mismatched_me.yml +0 -81
- data/spec/spec_tests/data/sdam/rs/primary_wrong_set_name.yml +0 -30
- data/spec/spec_tests/data/sdam/rs/repeated.yml +0 -105
- data/spec/spec_tests/data/sdam/rs/replicaset_rsnp.yml +0 -21
- data/spec/spec_tests/data/sdam/rs/response_from_removed.yml +0 -69
- data/spec/spec_tests/data/sdam/rs/ruby_primary_address_change.yml +0 -31
- data/spec/spec_tests/data/sdam/rs/ruby_secondary_wrong_set_name_with_primary_second.yml +0 -73
- data/spec/spec_tests/data/sdam/rs/sec_not_auth.yml +0 -55
- data/spec/spec_tests/data/sdam/rs/secondary_ignore_ok_0-pre-6.0.yml +0 -87
- data/spec/spec_tests/data/sdam/rs/secondary_ignore_ok_0.yml +0 -87
- data/spec/spec_tests/data/sdam/rs/secondary_mismatched_me.yml +0 -28
- data/spec/spec_tests/data/sdam/rs/secondary_wrong_set_name.yml +0 -31
- data/spec/spec_tests/data/sdam/rs/secondary_wrong_set_name_with_primary.yml +0 -75
- data/spec/spec_tests/data/sdam/rs/set_version_can_rollback.yml +0 -101
- data/spec/spec_tests/data/sdam/rs/setversion_equal_max_without_electionid.yml +0 -78
- data/spec/spec_tests/data/sdam/rs/setversion_greaterthan_max_without_electionid.yml +0 -79
- data/spec/spec_tests/data/sdam/rs/setversion_without_electionid-pre-6.0.yml +0 -79
- data/spec/spec_tests/data/sdam/rs/setversion_without_electionid.yml +0 -78
- data/spec/spec_tests/data/sdam/rs/stepdown_change_set_name.yml +0 -65
- data/spec/spec_tests/data/sdam/rs/too_new.yml +0 -45
- data/spec/spec_tests/data/sdam/rs/too_old.yml +0 -41
- data/spec/spec_tests/data/sdam/rs/topology_version_equal.yml +0 -68
- data/spec/spec_tests/data/sdam/rs/topology_version_greater.yml +0 -194
- data/spec/spec_tests/data/sdam/rs/topology_version_less.yml +0 -64
- data/spec/spec_tests/data/sdam/rs/unexpected_mongos.yml +0 -29
- data/spec/spec_tests/data/sdam/rs/use_setversion_without_electionid-pre-6.0.yml +0 -117
- data/spec/spec_tests/data/sdam/rs/use_setversion_without_electionid.yml +0 -119
- data/spec/spec_tests/data/sdam/rs/wrong_set_name.yml +0 -38
- data/spec/spec_tests/data/sdam/sharded/compatible.yml +0 -40
- data/spec/spec_tests/data/sdam/sharded/discover_single_mongos.yml +0 -24
- data/spec/spec_tests/data/sdam/sharded/ls_timeout_mongos.yml +0 -101
- data/spec/spec_tests/data/sdam/sharded/mongos_disconnect.yml +0 -113
- data/spec/spec_tests/data/sdam/sharded/multiple_mongoses.yml +0 -52
- data/spec/spec_tests/data/sdam/sharded/non_mongos_removed.yml +0 -47
- data/spec/spec_tests/data/sdam/sharded/normalize_uri_case.yml +0 -32
- data/spec/spec_tests/data/sdam/sharded/ruby_primary_different_address.yml +0 -21
- data/spec/spec_tests/data/sdam/sharded/ruby_primary_mismatched_me.yml +0 -22
- data/spec/spec_tests/data/sdam/sharded/too_new.yml +0 -38
- data/spec/spec_tests/data/sdam/sharded/too_old.yml +0 -38
- data/spec/spec_tests/data/sdam/single/compatible.yml +0 -27
- data/spec/spec_tests/data/sdam/single/direct_connection_external_ip.yml +0 -37
- data/spec/spec_tests/data/sdam/single/direct_connection_mongos.yml +0 -36
- data/spec/spec_tests/data/sdam/single/direct_connection_replicaset.yml +0 -23
- data/spec/spec_tests/data/sdam/single/direct_connection_rsarbiter.yml +0 -38
- data/spec/spec_tests/data/sdam/single/direct_connection_rsprimary.yml +0 -37
- data/spec/spec_tests/data/sdam/single/direct_connection_rssecondary.yml +0 -38
- data/spec/spec_tests/data/sdam/single/direct_connection_standalone.yml +0 -35
- data/spec/spec_tests/data/sdam/single/direct_connection_unavailable_seed.yml +0 -28
- data/spec/spec_tests/data/sdam/single/direct_connection_wrong_set_name.yml +0 -40
- data/spec/spec_tests/data/sdam/single/discover_standalone.yml +0 -35
- data/spec/spec_tests/data/sdam/single/discover_unavailable_seed.yml +0 -28
- data/spec/spec_tests/data/sdam/single/ls_timeout_standalone.yml +0 -36
- data/spec/spec_tests/data/sdam/single/not_ok_response.yml +0 -44
- data/spec/spec_tests/data/sdam/single/ruby_primary_different_address.yml +0 -24
- data/spec/spec_tests/data/sdam/single/ruby_primary_mismatched_me.yml +0 -25
- data/spec/spec_tests/data/sdam/single/standalone_removed.yml +0 -35
- data/spec/spec_tests/data/sdam/single/standalone_using_legacy_hello.yml +0 -34
- data/spec/spec_tests/data/sdam/single/too_new.yml +0 -27
- data/spec/spec_tests/data/sdam/single/too_old.yml +0 -25
- data/spec/spec_tests/data/sdam/single/too_old_then_upgraded.yml +0 -48
- data/spec/spec_tests/data/sdam_monitoring/discovered_standalone.yml +0 -70
- data/spec/spec_tests/data/sdam_monitoring/load_balancer.yml +0 -65
- data/spec/spec_tests/data/sdam_monitoring/replica_set_other_chain.yml +0 -222
- data/spec/spec_tests/data/sdam_monitoring/replica_set_other_change.yml +0 -225
- data/spec/spec_tests/data/sdam_monitoring/replica_set_primary_address_change.yml +0 -251
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_me_mismatch.yml +0 -111
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_no_primary.yml +0 -112
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_primary.yml +0 -111
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_primary_and_secondary.yml +0 -198
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_primary_removal.yml +0 -175
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_removal.yml +0 -111
- data/spec/spec_tests/data/sdam_monitoring/replica_set_with_second_seed_removal.yml +0 -106
- data/spec/spec_tests/data/sdam_monitoring/required_replica_set.yml +0 -108
- data/spec/spec_tests/data/sdam_monitoring/standalone.yml +0 -70
- data/spec/spec_tests/data/sdam_monitoring/standalone_repeated.yml +0 -86
- data/spec/spec_tests/data/sdam_monitoring/standalone_suppress_equal_description_changes.yml +0 -73
- data/spec/spec_tests/data/sdam_monitoring/standalone_to_rs_with_me_mismatch.yml +0 -90
- data/spec/spec_tests/data/sdam_unified/auth-error.yml +0 -130
- data/spec/spec_tests/data/sdam_unified/auth-misc-command-error.yml +0 -132
- data/spec/spec_tests/data/sdam_unified/auth-network-error.yml +0 -132
- data/spec/spec_tests/data/sdam_unified/auth-network-timeout-error.yml +0 -138
- data/spec/spec_tests/data/sdam_unified/auth-shutdown-error.yml +0 -133
- data/spec/spec_tests/data/sdam_unified/cancel-server-check.yml +0 -143
- data/spec/spec_tests/data/sdam_unified/connectTimeoutMS.yml +0 -130
- data/spec/spec_tests/data/sdam_unified/find-network-error.yml +0 -135
- data/spec/spec_tests/data/sdam_unified/find-network-timeout-error.yml +0 -119
- data/spec/spec_tests/data/sdam_unified/find-shutdown-error.yml +0 -163
- data/spec/spec_tests/data/sdam_unified/hello-command-error.yml +0 -233
- data/spec/spec_tests/data/sdam_unified/hello-network-error.yml +0 -228
- data/spec/spec_tests/data/sdam_unified/hello-timeout.yml +0 -318
- data/spec/spec_tests/data/sdam_unified/insert-network-error.yml +0 -137
- data/spec/spec_tests/data/sdam_unified/insert-shutdown-error.yml +0 -162
- data/spec/spec_tests/data/sdam_unified/interruptInUse-pool-clear.yml +0 -340
- data/spec/spec_tests/data/sdam_unified/minPoolSize-error.yml +0 -125
- data/spec/spec_tests/data/sdam_unified/pool-cleared-error.yml +0 -239
- data/spec/spec_tests/data/sdam_unified/rediscover-quickly-after-step-down.yml +0 -144
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/loadBalanced-directConnection.yml +0 -14
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/loadBalanced-no-results.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/loadBalanced-replicaSet-errors.yml +0 -6
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/loadBalanced-true-multiple-hosts.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/loadBalanced-true-txt.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/srvMaxHosts-conflicts_with_loadBalanced-true-txt.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/srvMaxHosts-conflicts_with_loadBalanced-true.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/srvMaxHosts-zero-txt.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/load-balanced/srvMaxHosts-zero.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/direct-connection-false.yml +0 -10
- data/spec/spec_tests/data/seed_list_discovery/replica-set/direct-connection-true.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/encoded-userinfo-and-db.yml +0 -15
- data/spec/spec_tests/data/seed_list_discovery/replica-set/loadBalanced-false-txt.yml +0 -10
- data/spec/spec_tests/data/seed_list_discovery/replica-set/longer-parent-in-return.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/misformatted-option.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/no-results.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/not-enough-parts.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/one-result-default-port.yml +0 -10
- data/spec/spec_tests/data/seed_list_discovery/replica-set/one-txt-record-multiple-strings.yml +0 -10
- data/spec/spec_tests/data/seed_list_discovery/replica-set/one-txt-record.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/parent-part-mismatch1.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/parent-part-mismatch2.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/parent-part-mismatch3.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/parent-part-mismatch4.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/parent-part-mismatch5.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/returned-parent-too-short.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/returned-parent-wrong.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srv-service-name.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-conflicts_with_replicaSet-txt.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-conflicts_with_replicaSet.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-equal_to_srv_records.yml +0 -16
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-greater_than_srv_records.yml +0 -15
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-less_than_srv_records.yml +0 -15
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-zero-txt.yml +0 -15
- data/spec/spec_tests/data/seed_list_discovery/replica-set/srvMaxHosts-zero.yml +0 -15
- data/spec/spec_tests/data/seed_list_discovery/replica-set/two-results-default-port.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/two-results-nonstandard-port.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/two-txt-records.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/txt-record-not-allowed-option.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/txt-record-with-overridden-ssl-option.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/txt-record-with-overridden-uri-option.yml +0 -11
- data/spec/spec_tests/data/seed_list_discovery/replica-set/txt-record-with-unallowed-option.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/uri-with-admin-database.yml +0 -13
- data/spec/spec_tests/data/seed_list_discovery/replica-set/uri-with-auth.yml +0 -12
- data/spec/spec_tests/data/seed_list_discovery/replica-set/uri-with-port.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/replica-set/uri-with-two-hosts.yml +0 -5
- data/spec/spec_tests/data/seed_list_discovery/sharded/srvMaxHosts-equal_to_srv_records.yml +0 -13
- data/spec/spec_tests/data/seed_list_discovery/sharded/srvMaxHosts-greater_than_srv_records.yml +0 -12
- data/spec/spec_tests/data/seed_list_discovery/sharded/srvMaxHosts-less_than_srv_records.yml +0 -10
- data/spec/spec_tests/data/seed_list_discovery/sharded/srvMaxHosts-zero.yml +0 -11
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Nearest.yml +0 -25
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Nearest_multiple.yml +0 -26
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Nearest_non_matching.yml +0 -20
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/PossiblePrimary.yml +0 -15
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/PossiblePrimaryNearest.yml +0 -15
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Primary.yml +0 -18
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/PrimaryPreferred.yml +0 -25
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/PrimaryPreferred_non_matching.yml +0 -20
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Secondary.yml +0 -25
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/SecondaryPreferred.yml +0 -25
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/SecondaryPreferred_non_matching.yml +0 -20
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Secondary_multi_tags.yml +0 -31
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Secondary_multi_tags2.yml +0 -31
- data/spec/spec_tests/data/server_selection/ReplicaSetNoPrimary/read/Secondary_non_matching.yml +0 -20
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/Nearest.yml +0 -32
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/Nearest_multiple.yml +0 -33
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/Nearest_non_matching.yml +0 -25
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/Primary.yml +0 -26
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/PrimaryPreferred.yml +0 -28
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/PrimaryPreferred_non_matching.yml +0 -28
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/Secondary.yml +0 -30
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred.yml +0 -30
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_non_matching.yml +0 -28
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml +0 -28
- data/spec/spec_tests/data/server_selection/ReplicaSetWithPrimary/read/Secondary_non_matching.yml +0 -25
- data/spec/spec_tests/data/server_selection/Sharded/read/Nearest.yml +0 -21
- data/spec/spec_tests/data/server_selection/Sharded/read/Primary.yml +0 -19
- data/spec/spec_tests/data/server_selection/Sharded/read/PrimaryPreferred.yml +0 -21
- data/spec/spec_tests/data/server_selection/Sharded/read/Secondary.yml +0 -21
- data/spec/spec_tests/data/server_selection/Sharded/read/SecondaryPreferred.yml +0 -21
- data/spec/spec_tests/data/server_selection/Single/read/SecondaryPreferred.yml +0 -18
- data/spec/spec_tests/data/server_selection/Unknown/read/SecondaryPreferred.yml +0 -10
- data/spec/spec_tests/data/server_selection/Unknown/read/ghost.yml +0 -11
- data/spec/spec_tests/data/server_selection/Unknown/write/ghost.yml +0 -11
- data/spec/spec_tests/data/server_selection_rtt/first_value.yml +0 -4
- data/spec/spec_tests/data/server_selection_rtt/first_value_zero.yml +0 -4
- data/spec/spec_tests/data/server_selection_rtt/value_test_1.yml +0 -4
- data/spec/spec_tests/data/server_selection_rtt/value_test_2.yml +0 -4
- data/spec/spec_tests/data/server_selection_rtt/value_test_3.yml +0 -4
- data/spec/spec_tests/data/server_selection_rtt/value_test_4.yml +0 -4
- data/spec/spec_tests/data/server_selection_rtt/value_test_5.yml +0 -4
- data/spec/spec_tests/data/sessions_unified/driver-sessions-dirty-session-errors.yml +0 -351
- data/spec/spec_tests/data/sessions_unified/driver-sessions-server-support.yml +0 -123
- data/spec/spec_tests/data/sessions_unified/implicit-sessions-default-causal-consistency.yml +0 -119
- data/spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-client-error.yml +0 -75
- data/spec/spec_tests/data/sessions_unified/snapshot-sessions-not-supported-server-error.yml +0 -102
- data/spec/spec_tests/data/sessions_unified/snapshot-sessions-unsupported-ops.yml +0 -258
- data/spec/spec_tests/data/sessions_unified/snapshot-sessions.yml +0 -482
- data/spec/spec_tests/data/transactions/abort.yml +0 -413
- data/spec/spec_tests/data/transactions/bulk.yml +0 -267
- data/spec/spec_tests/data/transactions/causal-consistency.yml +0 -175
- data/spec/spec_tests/data/transactions/commit.yml +0 -603
- data/spec/spec_tests/data/transactions/count.yml +0 -67
- data/spec/spec_tests/data/transactions/create-collection.yml +0 -131
- data/spec/spec_tests/data/transactions/create-index.yml +0 -152
- data/spec/spec_tests/data/transactions/delete.yml +0 -192
- data/spec/spec_tests/data/transactions/error-labels.yml +0 -1030
- data/spec/spec_tests/data/transactions/errors-client.yml +0 -55
- data/spec/spec_tests/data/transactions/errors.yml +0 -133
- data/spec/spec_tests/data/transactions/findOneAndDelete.yml +0 -134
- data/spec/spec_tests/data/transactions/findOneAndReplace.yml +0 -148
- data/spec/spec_tests/data/transactions/findOneAndUpdate.yml +0 -236
- data/spec/spec_tests/data/transactions/insert.yml +0 -390
- data/spec/spec_tests/data/transactions/isolation.yml +0 -133
- data/spec/spec_tests/data/transactions/mongos-pin-auto.yml +0 -1674
- data/spec/spec_tests/data/transactions/mongos-recovery-token.yml +0 -350
- data/spec/spec_tests/data/transactions/pin-mongos.yml +0 -559
- data/spec/spec_tests/data/transactions/read-concern.yml +0 -623
- data/spec/spec_tests/data/transactions/read-pref.yml +0 -348
- data/spec/spec_tests/data/transactions/reads.yml +0 -261
- data/spec/spec_tests/data/transactions/retryable-abort-errorLabels.yml +0 -124
- data/spec/spec_tests/data/transactions/retryable-abort.yml +0 -1315
- data/spec/spec_tests/data/transactions/retryable-commit-errorLabels.yml +0 -132
- data/spec/spec_tests/data/transactions/retryable-commit.yml +0 -1460
- data/spec/spec_tests/data/transactions/retryable-writes.yml +0 -216
- data/spec/spec_tests/data/transactions/run-command.yml +0 -197
- data/spec/spec_tests/data/transactions/transaction-options-repl.yml +0 -117
- data/spec/spec_tests/data/transactions/transaction-options.yml +0 -781
- data/spec/spec_tests/data/transactions/update.yml +0 -246
- data/spec/spec_tests/data/transactions/write-concern.yml +0 -554
- data/spec/spec_tests/data/transactions_api/callback-aborts.yml +0 -170
- data/spec/spec_tests/data/transactions_api/callback-commits.yml +0 -204
- data/spec/spec_tests/data/transactions_api/callback-retry.yml +0 -215
- data/spec/spec_tests/data/transactions_api/commit-retry.yml +0 -324
- data/spec/spec_tests/data/transactions_api/commit-transienttransactionerror-4.2.yml +0 -139
- data/spec/spec_tests/data/transactions_api/commit-transienttransactionerror.yml +0 -175
- data/spec/spec_tests/data/transactions_api/commit-writeconcernerror.yml +0 -216
- data/spec/spec_tests/data/transactions_api/commit.yml +0 -193
- data/spec/spec_tests/data/transactions_api/transaction-options.yml +0 -274
- data/spec/spec_tests/data/transactions_unified/do-not-retry-read-in-transaction.yml +0 -64
- data/spec/spec_tests/data/transactions_unified/mongos-unpin.yml +0 -172
- data/spec/spec_tests/data/transactions_unified/retryable-abort-handshake.yml +0 -118
- data/spec/spec_tests/data/transactions_unified/retryable-commit-handshake.yml +0 -118
- data/spec/spec_tests/data/unified/valid-fail/entity-findCursor-malformed.yml +0 -31
- data/spec/spec_tests/data/unified/valid-fail/entity-findCursor.yml +0 -31
- data/spec/spec_tests/data/unified/valid-fail/ignoreResultAndError-malformed.yml +0 -34
- data/spec/spec_tests/data/unified/valid-fail/ignoreResultAndError.yml +0 -35
- data/spec/spec_tests/data/unified/valid-fail/operation-failure.yml +0 -31
- data/spec/spec_tests/data/unified/valid-fail/operation-unsupported.yml +0 -13
- data/spec/spec_tests/data/unified/valid-pass/assertNumberConnectionsCheckedOut.yml +0 -17
- data/spec/spec_tests/data/unified/valid-pass/collectionData-createOptions.yml +0 -37
- data/spec/spec_tests/data/unified/valid-pass/entity-client-cmap-events.yml +0 -40
- data/spec/spec_tests/data/unified/valid-pass/entity-client-storeEventsAsEntities.yml +0 -37
- data/spec/spec_tests/data/unified/valid-pass/expectedError-errorResponse.yml +0 -39
- data/spec/spec_tests/data/unified/valid-pass/expectedEventsForClient-eventType.yml +0 -66
- data/spec/spec_tests/data/unified/valid-pass/expectedEventsForClient-ignoreExtraEvents.yml +0 -78
- data/spec/spec_tests/data/unified/valid-pass/ignoreResultAndError.yml +0 -34
- data/spec/spec_tests/data/unified/valid-pass/observeSensitiveCommands.yml +0 -255
- data/spec/spec_tests/data/unified/valid-pass/poc-change-streams.yml +0 -241
- data/spec/spec_tests/data/unified/valid-pass/poc-command-monitoring.yml +0 -102
- data/spec/spec_tests/data/unified/valid-pass/poc-crud.yml +0 -190
- data/spec/spec_tests/data/unified/valid-pass/poc-gridfs.yml +0 -155
- data/spec/spec_tests/data/unified/valid-pass/poc-retryable-reads.yml +0 -193
- data/spec/spec_tests/data/unified/valid-pass/poc-retryable-writes.yml +0 -210
- data/spec/spec_tests/data/unified/valid-pass/poc-sessions.yml +0 -214
- data/spec/spec_tests/data/unified/valid-pass/poc-transactions-convenient-api.yml +0 -235
- data/spec/spec_tests/data/unified/valid-pass/poc-transactions-mongos-pin-auto.yml +0 -169
- data/spec/spec_tests/data/unified/valid-pass/poc-transactions.yml +0 -171
- data/spec/spec_tests/data/uri_options/auth-options.yml +0 -49
- data/spec/spec_tests/data/uri_options/compression-options.yml +0 -51
- data/spec/spec_tests/data/uri_options/concern-options.yml +0 -55
- data/spec/spec_tests/data/uri_options/connection-options.yml +0 -209
- data/spec/spec_tests/data/uri_options/connection-pool-options.yml +0 -26
- data/spec/spec_tests/data/uri_options/read-preference-options.yml +0 -66
- data/spec/spec_tests/data/uri_options/ruby-auth-options.yml +0 -12
- data/spec/spec_tests/data/uri_options/ruby-connection-options.yml +0 -58
- data/spec/spec_tests/data/uri_options/srv-options.yml +0 -96
- data/spec/spec_tests/data/uri_options/tls-options.yml +0 -364
- data/spec/spec_tests/data/versioned_api/crud-api-version-1-strict.yml +0 -419
- data/spec/spec_tests/data/versioned_api/crud-api-version-1.yml +0 -413
- data/spec/spec_tests/data/versioned_api/runcommand-helper-no-api-version-declared.yml +0 -75
- data/spec/spec_tests/data/versioned_api/test-commands-deprecation-errors.yml +0 -47
- data/spec/spec_tests/data/versioned_api/test-commands-strict-mode.yml +0 -46
- data/spec/spec_tests/data/versioned_api/transaction-handling.yml +0 -128
- data/spec/spec_tests/gridfs_spec.rb +0 -55
- data/spec/spec_tests/gridfs_unified_spec.rb +0 -13
- data/spec/spec_tests/index_management_unified_spec.rb +0 -13
- data/spec/spec_tests/load_balancers_spec.rb +0 -15
- data/spec/spec_tests/max_staleness_spec.rb +0 -12
- data/spec/spec_tests/read_write_concern_connection_string_spec.rb +0 -13
- data/spec/spec_tests/read_write_concern_document_spec.rb +0 -77
- data/spec/spec_tests/read_write_concern_operaton_spec.rb +0 -13
- data/spec/spec_tests/retryable_reads_spec.rb +0 -55
- data/spec/spec_tests/retryable_reads_unified_spec.rb +0 -22
- data/spec/spec_tests/retryable_writes_spec.rb +0 -25
- data/spec/spec_tests/retryable_writes_unified_spec.rb +0 -21
- data/spec/spec_tests/run_command_unified_spec.rb +0 -13
- data/spec/spec_tests/sdam_monitoring_spec.rb +0 -101
- data/spec/spec_tests/sdam_spec.rb +0 -246
- data/spec/spec_tests/sdam_unified_spec.rb +0 -15
- data/spec/spec_tests/seed_list_discovery_spec.rb +0 -127
- data/spec/spec_tests/server_selection_rtt_spec.rb +0 -33
- data/spec/spec_tests/server_selection_spec.rb +0 -12
- data/spec/spec_tests/sessions_unified_spec.rb +0 -13
- data/spec/spec_tests/transactions_api_spec.rb +0 -13
- data/spec/spec_tests/transactions_spec.rb +0 -13
- data/spec/spec_tests/transactions_unified_spec.rb +0 -14
- data/spec/spec_tests/unified_spec.rb +0 -18
- data/spec/spec_tests/uri_options_spec.rb +0 -93
- data/spec/spec_tests/versioned_api_spec.rb +0 -13
- data/spec/stress/cleanup_spec.rb +0 -61
- data/spec/stress/connection_pool_stress_spec.rb +0 -143
- data/spec/stress/connection_pool_timing_spec.rb +0 -160
- data/spec/stress/fork_reconnect_stress_spec.rb +0 -108
- data/spec/stress/push_monitor_close_spec.rb +0 -44
- data/spec/support/authorization.rb +0 -161
- data/spec/support/aws_utils/base.rb +0 -137
- data/spec/support/aws_utils/inspector.rb +0 -227
- data/spec/support/aws_utils/orchestrator.rb +0 -385
- data/spec/support/aws_utils/provisioner.rb +0 -363
- data/spec/support/aws_utils.rb +0 -66
- data/spec/support/background_thread_registry.rb +0 -60
- data/spec/support/certificates/README.md +0 -106
- data/spec/support/certificates/atlas-ocsp-ca.crt +0 -113
- data/spec/support/certificates/atlas-ocsp.crt +0 -147
- data/spec/support/certificates/ca.crt +0 -76
- data/spec/support/certificates/client-encrypted.key +0 -30
- data/spec/support/certificates/client-int.crt +0 -78
- data/spec/support/certificates/client-second-level-bundle.pem +0 -179
- data/spec/support/certificates/client-second-level.crt +0 -74
- data/spec/support/certificates/client-second-level.key +0 -27
- data/spec/support/certificates/client-second-level.pem +0 -101
- data/spec/support/certificates/client-x509.crt +0 -78
- data/spec/support/certificates/client-x509.key +0 -27
- data/spec/support/certificates/client-x509.pem +0 -105
- data/spec/support/certificates/client.crt +0 -74
- data/spec/support/certificates/client.key +0 -27
- data/spec/support/certificates/client.pem +0 -101
- data/spec/support/certificates/crl.pem +0 -12
- data/spec/support/certificates/crl_client_revoked.pem +0 -13
- data/spec/support/certificates/multi-ca.crt +0 -152
- data/spec/support/certificates/python-ca.crt +0 -76
- data/spec/support/certificates/retrieve-atlas-cert +0 -40
- data/spec/support/certificates/server-int.crt +0 -78
- data/spec/support/certificates/server-second-level-bundle.pem +0 -179
- data/spec/support/certificates/server-second-level.crt +0 -74
- data/spec/support/certificates/server-second-level.key +0 -27
- data/spec/support/certificates/server-second-level.pem +0 -101
- data/spec/support/certificates/server.pem +0 -101
- data/spec/support/client_registry.rb +0 -258
- data/spec/support/client_registry_macros.rb +0 -26
- data/spec/support/cluster_tools.rb +0 -384
- data/spec/support/common_shortcuts.rb +0 -421
- data/spec/support/constraints.rb +0 -39
- data/spec/support/crypt/corpus/corpus-encrypted.json +0 -9515
- data/spec/support/crypt/corpus/corpus-key-aws.json +0 -33
- data/spec/support/crypt/corpus/corpus-key-azure.json +0 -33
- data/spec/support/crypt/corpus/corpus-key-gcp.json +0 -35
- data/spec/support/crypt/corpus/corpus-key-kmip.json +0 -32
- data/spec/support/crypt/corpus/corpus-key-local.json +0 -31
- data/spec/support/crypt/corpus/corpus-schema.json +0 -6335
- data/spec/support/crypt/corpus/corpus.json +0 -8619
- data/spec/support/crypt/data_keys/key_document_aws.json +0 -34
- data/spec/support/crypt/data_keys/key_document_azure.json +0 -33
- data/spec/support/crypt/data_keys/key_document_gcp.json +0 -37
- data/spec/support/crypt/data_keys/key_document_kmip.json +0 -32
- data/spec/support/crypt/data_keys/key_document_local.json +0 -31
- data/spec/support/crypt/encrypted_fields/encryptedFields.json +0 -32
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-Date.json +0 -30
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-DecimalNoPrecision.json +0 -21
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-DecimalPrecision.json +0 -29
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-DoubleNoPrecision.json +0 -21
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-DoublePrecision.json +0 -30
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-Int.json +0 -27
- data/spec/support/crypt/encrypted_fields/range-encryptedFields-Long.json +0 -27
- data/spec/support/crypt/external/external-key.json +0 -31
- data/spec/support/crypt/external/external-schema.json +0 -19
- data/spec/support/crypt/keys/key1-document.json +0 -30
- data/spec/support/crypt/limits/limits-doc.json +0 -102
- data/spec/support/crypt/limits/limits-key.json +0 -31
- data/spec/support/crypt/limits/limits-schema.json +0 -1405
- data/spec/support/crypt/schema_maps/schema_map_aws.json +0 -17
- data/spec/support/crypt/schema_maps/schema_map_aws_key_alt_names.json +0 -12
- data/spec/support/crypt/schema_maps/schema_map_azure.json +0 -17
- data/spec/support/crypt/schema_maps/schema_map_azure_key_alt_names.json +0 -12
- data/spec/support/crypt/schema_maps/schema_map_gcp.json +0 -17
- data/spec/support/crypt/schema_maps/schema_map_gcp_key_alt_names.json +0 -12
- data/spec/support/crypt/schema_maps/schema_map_kmip.json +0 -17
- data/spec/support/crypt/schema_maps/schema_map_kmip_key_alt_names.json +0 -12
- data/spec/support/crypt/schema_maps/schema_map_local.json +0 -18
- data/spec/support/crypt/schema_maps/schema_map_local_key_alt_names.json +0 -12
- data/spec/support/crypt.rb +0 -412
- data/spec/support/dns.rb +0 -16
- data/spec/support/json_ext_formatter.rb +0 -16
- data/spec/support/keyword_struct.rb +0 -29
- data/spec/support/local_resource_registry.rb +0 -37
- data/spec/support/macros.rb +0 -29
- data/spec/support/matchers.rb +0 -88
- data/spec/support/mongos_macros.rb +0 -24
- data/spec/support/monitoring_ext.rb +0 -19
- data/spec/support/ocsp +0 -1
- data/spec/support/primary_socket.rb +0 -24
- data/spec/support/recording_logger.rb +0 -27
- data/spec/support/sdam_formatter_integration.rb +0 -119
- data/spec/support/shared/app_metadata.rb +0 -179
- data/spec/support/shared/auth_context.rb +0 -17
- data/spec/support/shared/protocol.rb +0 -36
- data/spec/support/shared/scram_conversation.rb +0 -104
- data/spec/support/shared/server_selector.rb +0 -233
- data/spec/support/shared/session.rb +0 -916
- data/spec/support/spec_config.rb +0 -767
- data/spec/support/spec_setup.rb +0 -83
- data/spec/support/using_hash.rb +0 -40
- data/spec/support/utils.rb +0 -680
data/spec/mongo/database_spec.rb
DELETED
@@ -1,1365 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# rubocop:todo all
|
3
|
-
|
4
|
-
require 'spec_helper'
|
5
|
-
|
6
|
-
describe Mongo::Database do
|
7
|
-
|
8
|
-
shared_context 'more than 100 collections' do
|
9
|
-
let(:client) do
|
10
|
-
root_authorized_client.use('many-collections')
|
11
|
-
end
|
12
|
-
|
13
|
-
before do
|
14
|
-
120.times do |i|
|
15
|
-
client["coll-#{i}"].drop
|
16
|
-
client["coll-#{i}"].create
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
let(:subscriber) { Mrss::EventSubscriber.new }
|
22
|
-
|
23
|
-
let(:monitored_client) do
|
24
|
-
root_authorized_client.tap do |client|
|
25
|
-
client.subscribe(Mongo::Monitoring::COMMAND, subscriber)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe '#==' do
|
30
|
-
|
31
|
-
let(:database) do
|
32
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
33
|
-
end
|
34
|
-
|
35
|
-
context 'when the names are the same' do
|
36
|
-
|
37
|
-
let(:other) do
|
38
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
39
|
-
end
|
40
|
-
|
41
|
-
it 'returns true' do
|
42
|
-
expect(database).to eq(other)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
context 'when the names are not the same' do
|
47
|
-
|
48
|
-
let(:other) do
|
49
|
-
described_class.new(authorized_client, :other)
|
50
|
-
end
|
51
|
-
|
52
|
-
it 'returns false' do
|
53
|
-
expect(database).to_not eq(other)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
context 'when the object is not a database' do
|
58
|
-
|
59
|
-
it 'returns false' do
|
60
|
-
expect(database).to_not eq('test')
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
describe '#[]' do
|
66
|
-
|
67
|
-
let(:database) do
|
68
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
69
|
-
end
|
70
|
-
|
71
|
-
context 'when providing a valid name' do
|
72
|
-
|
73
|
-
let(:collection) do
|
74
|
-
database[:users]
|
75
|
-
end
|
76
|
-
|
77
|
-
it 'returns a new collection' do
|
78
|
-
expect(collection.name).to eq('users')
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
context 'when providing an invalid name' do
|
83
|
-
|
84
|
-
it 'raises an error' do
|
85
|
-
expect do
|
86
|
-
database[nil]
|
87
|
-
end.to raise_error(Mongo::Error::InvalidCollectionName)
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
context 'when the client has options' do
|
92
|
-
|
93
|
-
let(:client) do
|
94
|
-
new_local_client([default_address.host], SpecConfig.instance.test_options.merge(read: { mode: :secondary }))
|
95
|
-
end
|
96
|
-
|
97
|
-
let(:database) do
|
98
|
-
client.database
|
99
|
-
end
|
100
|
-
|
101
|
-
let(:collection) do
|
102
|
-
database[:with_read_pref]
|
103
|
-
end
|
104
|
-
|
105
|
-
it 'applies the options to the collection' do
|
106
|
-
expect(collection.server_selector).to eq(Mongo::ServerSelector.get(mode: :secondary))
|
107
|
-
expect(collection.read_preference).to eq(BSON::Document.new(mode: :secondary))
|
108
|
-
end
|
109
|
-
|
110
|
-
context ':server_api option' do
|
111
|
-
|
112
|
-
let(:client) do
|
113
|
-
new_local_client_nmio(['localhost'], server_api: {version: '1'})
|
114
|
-
end
|
115
|
-
|
116
|
-
it 'is not transfered to the collection' do
|
117
|
-
client.options[:server_api].should == {'version' => '1'}
|
118
|
-
collection.options[:server_api].should be nil
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
context 'when providing :server_api option' do
|
124
|
-
it 'is rejected' do
|
125
|
-
lambda do
|
126
|
-
database['foo', server_api: {version: '1'}]
|
127
|
-
end.should raise_error(ArgumentError, 'The :server_api option cannot be specified for collection objects. It can only be specified on Client level')
|
128
|
-
end
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
describe '#collection_names' do
|
133
|
-
|
134
|
-
let(:database) do
|
135
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
136
|
-
end
|
137
|
-
|
138
|
-
before do
|
139
|
-
database['users'].drop
|
140
|
-
database['users'].create
|
141
|
-
end
|
142
|
-
|
143
|
-
let(:actual) do
|
144
|
-
database.collection_names
|
145
|
-
end
|
146
|
-
|
147
|
-
it 'returns the stripped names of the collections' do
|
148
|
-
expect(actual).to include('users')
|
149
|
-
end
|
150
|
-
|
151
|
-
it 'does not include system collections' do
|
152
|
-
expect(actual).to_not include('version')
|
153
|
-
expect(actual).to_not include('system.version')
|
154
|
-
end
|
155
|
-
|
156
|
-
context 'on 2.6 server' do
|
157
|
-
max_server_version '2.6'
|
158
|
-
end
|
159
|
-
|
160
|
-
it 'does not include collections with $ in names' do
|
161
|
-
expect(actual.none? { |name| name.include?('$') }).to be true
|
162
|
-
end
|
163
|
-
|
164
|
-
context 'when provided a session' do
|
165
|
-
|
166
|
-
let(:operation) do
|
167
|
-
database.collection_names(session: session)
|
168
|
-
end
|
169
|
-
|
170
|
-
let(:client) do
|
171
|
-
authorized_client
|
172
|
-
end
|
173
|
-
|
174
|
-
it_behaves_like 'an operation using a session'
|
175
|
-
end
|
176
|
-
|
177
|
-
context 'when specifying a batch size' do
|
178
|
-
|
179
|
-
it 'returns the stripped names of the collections' do
|
180
|
-
expect(database.collection_names(batch_size: 1).to_a).to include('users')
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
context 'when there are more collections than the initial batch size' do
|
185
|
-
|
186
|
-
before do
|
187
|
-
2.times do |i|
|
188
|
-
database["#{i}_dalmatians"].drop
|
189
|
-
end
|
190
|
-
2.times do |i|
|
191
|
-
database["#{i}_dalmatians"].create
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
it 'returns all collections' do
|
196
|
-
collection_names = database.collection_names(batch_size: 1)
|
197
|
-
expect(collection_names).to include('0_dalmatians')
|
198
|
-
expect(collection_names).to include('1_dalmatians')
|
199
|
-
end
|
200
|
-
end
|
201
|
-
|
202
|
-
context 'when provided a filter' do
|
203
|
-
min_server_fcv '3.0'
|
204
|
-
|
205
|
-
before do
|
206
|
-
database['users2'].drop
|
207
|
-
database['users2'].create
|
208
|
-
end
|
209
|
-
|
210
|
-
let(:result) do
|
211
|
-
database.collection_names(filter: { name: 'users2' })
|
212
|
-
end
|
213
|
-
|
214
|
-
it 'returns users2 collection' do
|
215
|
-
expect(result.length).to eq(1)
|
216
|
-
expect(result.first).to eq('users2')
|
217
|
-
end
|
218
|
-
end
|
219
|
-
|
220
|
-
context 'when provided authorized_collections or not' do
|
221
|
-
|
222
|
-
context 'on server versions >= 4.0' do
|
223
|
-
min_server_fcv '4.0'
|
224
|
-
|
225
|
-
let(:database) do
|
226
|
-
described_class.new(client, SpecConfig.instance.test_db)
|
227
|
-
end
|
228
|
-
|
229
|
-
let(:subscriber) { Mrss::EventSubscriber.new }
|
230
|
-
|
231
|
-
let(:client) do
|
232
|
-
authorized_client.tap do |client|
|
233
|
-
client.subscribe(Mongo::Monitoring::COMMAND, subscriber)
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
context 'when authorized_collections is provided' do
|
238
|
-
let(:options) do
|
239
|
-
{ authorized_collections: true }
|
240
|
-
end
|
241
|
-
|
242
|
-
let!(:result) do
|
243
|
-
database.collections(options)
|
244
|
-
end
|
245
|
-
|
246
|
-
let(:events) do
|
247
|
-
subscriber.command_started_events('listCollections')
|
248
|
-
end
|
249
|
-
|
250
|
-
it 'passes authorized_collections to the server' do
|
251
|
-
expect(events.length).to eq(1)
|
252
|
-
command = events.first.command
|
253
|
-
expect(command['authorizedCollections']).to eq(true)
|
254
|
-
end
|
255
|
-
end
|
256
|
-
|
257
|
-
context 'when no options are provided' do
|
258
|
-
let!(:result) do
|
259
|
-
database.collection_names
|
260
|
-
end
|
261
|
-
|
262
|
-
let(:events) do
|
263
|
-
subscriber.command_started_events('listCollections')
|
264
|
-
end
|
265
|
-
|
266
|
-
it 'authorized_collections not passed to server' do
|
267
|
-
expect(events.length).to eq(1)
|
268
|
-
command = events.first.command
|
269
|
-
expect(command['nameOnly']).to eq(true)
|
270
|
-
expect(command['authorizedCollections']).to be_nil
|
271
|
-
end
|
272
|
-
end
|
273
|
-
end
|
274
|
-
end
|
275
|
-
|
276
|
-
context 'when there are more than 100 collections' do
|
277
|
-
include_context 'more than 100 collections'
|
278
|
-
|
279
|
-
let(:collection_names) do
|
280
|
-
client.database.collection_names.sort
|
281
|
-
end
|
282
|
-
|
283
|
-
it 'lists all collections' do
|
284
|
-
collection_names.length.should == 120
|
285
|
-
collection_names.should include('coll-0')
|
286
|
-
collection_names.should include('coll-119')
|
287
|
-
end
|
288
|
-
end
|
289
|
-
|
290
|
-
context 'with comment' do
|
291
|
-
min_server_version '4.4'
|
292
|
-
|
293
|
-
it 'returns collection names and send comment' do
|
294
|
-
database = described_class.new(monitored_client, SpecConfig.instance.test_db)
|
295
|
-
database.collection_names(comment: "comment")
|
296
|
-
command = subscriber.command_started_events("listCollections").last&.command
|
297
|
-
expect(command).not_to be_nil
|
298
|
-
expect(command["comment"]).to eq("comment")
|
299
|
-
end
|
300
|
-
end
|
301
|
-
end
|
302
|
-
|
303
|
-
describe '#list_collections' do
|
304
|
-
|
305
|
-
let(:database) do
|
306
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
307
|
-
end
|
308
|
-
|
309
|
-
let(:result) do
|
310
|
-
database.list_collections.map do |info|
|
311
|
-
info['name']
|
312
|
-
end
|
313
|
-
end
|
314
|
-
|
315
|
-
before do
|
316
|
-
database['acol'].drop
|
317
|
-
database['acol'].create
|
318
|
-
end
|
319
|
-
|
320
|
-
context 'server 3.0+' do
|
321
|
-
min_server_fcv '3.0'
|
322
|
-
|
323
|
-
it 'returns a list of the collections info' do
|
324
|
-
expect(result).to include('acol')
|
325
|
-
end
|
326
|
-
|
327
|
-
context 'with more than one collection' do
|
328
|
-
before do
|
329
|
-
database['anothercol'].drop
|
330
|
-
database['anothercol'].create
|
331
|
-
|
332
|
-
expect(database.collections.length).to be > 1
|
333
|
-
end
|
334
|
-
|
335
|
-
let(:result) do
|
336
|
-
database.list_collections(filter: { name: 'anothercol' }).map do |info|
|
337
|
-
info['name']
|
338
|
-
end
|
339
|
-
end
|
340
|
-
|
341
|
-
it 'can filter by collection name' do
|
342
|
-
expect(result.length).to eq(1)
|
343
|
-
expect(result.first).to eq('anothercol')
|
344
|
-
end
|
345
|
-
end
|
346
|
-
end
|
347
|
-
|
348
|
-
context 'server 2.6' do
|
349
|
-
max_server_fcv '2.6'
|
350
|
-
|
351
|
-
it 'returns a list of the collections info' do
|
352
|
-
expect(result).to include("#{SpecConfig.instance.test_db}.acol")
|
353
|
-
end
|
354
|
-
end
|
355
|
-
|
356
|
-
it 'does not include collections with $ in names' do
|
357
|
-
expect(result.none? { |name| name.include?('$') }).to be true
|
358
|
-
end
|
359
|
-
|
360
|
-
context 'on admin database' do
|
361
|
-
let(:database) do
|
362
|
-
described_class.new(root_authorized_client, 'admin')
|
363
|
-
end
|
364
|
-
|
365
|
-
shared_examples 'does not include system collections' do
|
366
|
-
it 'does not include system collections' do
|
367
|
-
expect(result.none? { |name| name =~ /(^|\.)system\./ }).to be true
|
368
|
-
end
|
369
|
-
end
|
370
|
-
|
371
|
-
context 'server 4.7+' do
|
372
|
-
min_server_fcv '4.7'
|
373
|
-
# https://jira.mongodb.org/browse/SERVER-35804
|
374
|
-
require_topology :single, :replica_set
|
375
|
-
|
376
|
-
include_examples 'does not include system collections'
|
377
|
-
|
378
|
-
it 'returns results' do
|
379
|
-
expect(result).to include('acol')
|
380
|
-
end
|
381
|
-
end
|
382
|
-
|
383
|
-
context 'server 3.0-4.5' do
|
384
|
-
min_server_fcv '3.0'
|
385
|
-
max_server_version '4.5'
|
386
|
-
|
387
|
-
include_examples 'does not include system collections'
|
388
|
-
|
389
|
-
it 'returns results' do
|
390
|
-
expect(result).to include('acol')
|
391
|
-
end
|
392
|
-
end
|
393
|
-
|
394
|
-
context 'server 2.6' do
|
395
|
-
max_server_version '2.6'
|
396
|
-
|
397
|
-
include_examples 'does not include system collections'
|
398
|
-
|
399
|
-
it 'returns results' do
|
400
|
-
expect(result).to include('admin.acol')
|
401
|
-
end
|
402
|
-
end
|
403
|
-
end
|
404
|
-
|
405
|
-
context 'when provided authorized_collections or name_only options or not' do
|
406
|
-
|
407
|
-
context 'on server versions >= 4.0' do
|
408
|
-
min_server_fcv '4.0'
|
409
|
-
|
410
|
-
let(:database) do
|
411
|
-
described_class.new(client, SpecConfig.instance.test_db)
|
412
|
-
end
|
413
|
-
|
414
|
-
let(:subscriber) { Mrss::EventSubscriber.new }
|
415
|
-
|
416
|
-
let(:client) do
|
417
|
-
authorized_client.tap do |client|
|
418
|
-
client.subscribe(Mongo::Monitoring::COMMAND, subscriber)
|
419
|
-
end
|
420
|
-
end
|
421
|
-
|
422
|
-
context 'when both are provided' do
|
423
|
-
let(:options) do
|
424
|
-
{ name_only: true, authorized_collections: true }
|
425
|
-
end
|
426
|
-
|
427
|
-
let!(:result) do
|
428
|
-
database.list_collections(options)
|
429
|
-
end
|
430
|
-
|
431
|
-
let(:events) do
|
432
|
-
subscriber.command_started_events('listCollections')
|
433
|
-
end
|
434
|
-
|
435
|
-
it 'passes original options to the server' do
|
436
|
-
expect(events.length).to eq(1)
|
437
|
-
command = events.first.command
|
438
|
-
expect(command['nameOnly']).to eq(true)
|
439
|
-
expect(command['authorizedCollections']).to eq(true)
|
440
|
-
end
|
441
|
-
end
|
442
|
-
|
443
|
-
context 'when name_only is provided' do
|
444
|
-
let(:options) do
|
445
|
-
{ name_only: false }
|
446
|
-
end
|
447
|
-
|
448
|
-
let!(:result) do
|
449
|
-
database.list_collections(options)
|
450
|
-
end
|
451
|
-
|
452
|
-
let(:events) do
|
453
|
-
subscriber.command_started_events('listCollections')
|
454
|
-
end
|
455
|
-
|
456
|
-
it 'no options passed to server because false' do
|
457
|
-
expect(events.length).to eq(1)
|
458
|
-
command = events.first.command
|
459
|
-
expect(command['nameOnly']).to be_nil
|
460
|
-
expect(command['authorizedCollections']).to be_nil
|
461
|
-
end
|
462
|
-
end
|
463
|
-
|
464
|
-
context 'when no options provided' do
|
465
|
-
|
466
|
-
let!(:result) do
|
467
|
-
database.list_collections
|
468
|
-
end
|
469
|
-
|
470
|
-
let(:events) do
|
471
|
-
subscriber.command_started_events('listCollections')
|
472
|
-
end
|
473
|
-
|
474
|
-
it 'no options passed to server because none provided' do
|
475
|
-
expect(events.length).to eq(1)
|
476
|
-
command = events.first.command
|
477
|
-
expect(command['nameOnly']).to be_nil
|
478
|
-
expect(command['authorizedCollections']).to be_nil
|
479
|
-
end
|
480
|
-
end
|
481
|
-
end
|
482
|
-
end
|
483
|
-
|
484
|
-
context 'when there are more than 100 collections' do
|
485
|
-
include_context 'more than 100 collections'
|
486
|
-
|
487
|
-
let(:collections) do
|
488
|
-
client.database.list_collections
|
489
|
-
end
|
490
|
-
|
491
|
-
let(:collection_names) do
|
492
|
-
# 2.6 server prefixes collection names with database name
|
493
|
-
collections.map { |info| info['name'].sub(/^many-collections\./, '') }.sort
|
494
|
-
end
|
495
|
-
|
496
|
-
it 'lists all collections' do
|
497
|
-
collections.length.should == 120
|
498
|
-
collection_names.should include('coll-0')
|
499
|
-
collection_names.should include('coll-119')
|
500
|
-
end
|
501
|
-
end
|
502
|
-
|
503
|
-
context 'with comment' do
|
504
|
-
min_server_version '4.4'
|
505
|
-
|
506
|
-
it 'returns collection names and send comment' do
|
507
|
-
database = described_class.new(monitored_client, SpecConfig.instance.test_db)
|
508
|
-
database.list_collections(comment: "comment")
|
509
|
-
command = subscriber.command_started_events("listCollections").last&.command
|
510
|
-
expect(command).not_to be_nil
|
511
|
-
expect(command["comment"]).to eq("comment")
|
512
|
-
end
|
513
|
-
end
|
514
|
-
end
|
515
|
-
|
516
|
-
describe '#collections' do
|
517
|
-
|
518
|
-
context 'when the database exists' do
|
519
|
-
|
520
|
-
let(:database) do
|
521
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
522
|
-
end
|
523
|
-
|
524
|
-
let(:collection) do
|
525
|
-
Mongo::Collection.new(database, 'users')
|
526
|
-
end
|
527
|
-
|
528
|
-
before do
|
529
|
-
database['users'].drop
|
530
|
-
database['users'].create
|
531
|
-
end
|
532
|
-
|
533
|
-
it 'returns collection objects for each name' do
|
534
|
-
expect(database.collections).to include(collection)
|
535
|
-
end
|
536
|
-
|
537
|
-
it 'does not include collections with $ in names' do
|
538
|
-
expect(database.collections.none? { |c| c.name.include?('$') }).to be true
|
539
|
-
end
|
540
|
-
end
|
541
|
-
|
542
|
-
context 'on admin database' do
|
543
|
-
|
544
|
-
let(:database) do
|
545
|
-
described_class.new(root_authorized_client, 'admin')
|
546
|
-
end
|
547
|
-
|
548
|
-
it 'does not include the system collections' do
|
549
|
-
collection_names = database.collections.map(&:name)
|
550
|
-
expect(collection_names).not_to include('system.version')
|
551
|
-
expect(collection_names.none? { |name| name =~ /(^|\.)system\./ }).to be true
|
552
|
-
end
|
553
|
-
end
|
554
|
-
|
555
|
-
context 'when the database does not exist' do
|
556
|
-
|
557
|
-
let(:database) do
|
558
|
-
described_class.new(authorized_client, 'invalid_database')
|
559
|
-
end
|
560
|
-
|
561
|
-
it 'returns an empty list' do
|
562
|
-
expect(database.collections).to be_empty
|
563
|
-
end
|
564
|
-
end
|
565
|
-
|
566
|
-
context 'when the user is not authorized' do
|
567
|
-
require_auth
|
568
|
-
|
569
|
-
let(:database) do
|
570
|
-
described_class.new(unauthorized_client, SpecConfig.instance.test_db)
|
571
|
-
end
|
572
|
-
|
573
|
-
it 'raises an exception' do
|
574
|
-
expect {
|
575
|
-
database.collections
|
576
|
-
}.to raise_error(Mongo::Error::OperationFailure)
|
577
|
-
end
|
578
|
-
end
|
579
|
-
|
580
|
-
context 'when provided a filter' do
|
581
|
-
min_server_fcv '3.0'
|
582
|
-
|
583
|
-
let(:database) do
|
584
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
585
|
-
end
|
586
|
-
|
587
|
-
let(:collection2) do
|
588
|
-
Mongo::Collection.new(database, 'users2')
|
589
|
-
end
|
590
|
-
|
591
|
-
before do
|
592
|
-
database['users1'].drop
|
593
|
-
database['users1'].create
|
594
|
-
|
595
|
-
database['users2'].drop
|
596
|
-
database['users2'].create
|
597
|
-
end
|
598
|
-
|
599
|
-
let(:result) do
|
600
|
-
database.collections(filter: { name: 'users2' })
|
601
|
-
end
|
602
|
-
|
603
|
-
it 'returns users2 collection' do
|
604
|
-
expect(result.length).to eq(1)
|
605
|
-
expect(database.collections).to include(collection2)
|
606
|
-
end
|
607
|
-
end
|
608
|
-
|
609
|
-
context 'when provided authorized_collections or not' do
|
610
|
-
|
611
|
-
context 'on server versions >= 4.0' do
|
612
|
-
min_server_fcv '4.0'
|
613
|
-
|
614
|
-
let(:database) do
|
615
|
-
described_class.new(client, SpecConfig.instance.test_db)
|
616
|
-
end
|
617
|
-
|
618
|
-
let(:subscriber) { Mrss::EventSubscriber.new }
|
619
|
-
|
620
|
-
let(:client) do
|
621
|
-
authorized_client.tap do |client|
|
622
|
-
client.subscribe(Mongo::Monitoring::COMMAND, subscriber)
|
623
|
-
end
|
624
|
-
end
|
625
|
-
|
626
|
-
context 'when authorized_collections are provided as false' do
|
627
|
-
let(:options) do
|
628
|
-
{ authorized_collections: false }
|
629
|
-
end
|
630
|
-
|
631
|
-
let!(:result) do
|
632
|
-
database.collections(options)
|
633
|
-
end
|
634
|
-
|
635
|
-
let(:events) do
|
636
|
-
subscriber.command_started_events('listCollections')
|
637
|
-
end
|
638
|
-
|
639
|
-
it 'authorized_collections not passed to server because false' do
|
640
|
-
expect(events.length).to eq(1)
|
641
|
-
command = events.first.command
|
642
|
-
expect(command['nameOnly']).to eq(true)
|
643
|
-
expect(command['authorizedCollections']).to be_nil
|
644
|
-
end
|
645
|
-
end
|
646
|
-
|
647
|
-
context 'when authorized_collections are provided as true' do
|
648
|
-
let(:options) do
|
649
|
-
{ authorized_collections: true }
|
650
|
-
end
|
651
|
-
|
652
|
-
let!(:result) do
|
653
|
-
database.collections(options)
|
654
|
-
end
|
655
|
-
|
656
|
-
let(:events) do
|
657
|
-
subscriber.command_started_events('listCollections')
|
658
|
-
end
|
659
|
-
|
660
|
-
it 'authorized_collections not passed to server because false' do
|
661
|
-
expect(events.length).to eq(1)
|
662
|
-
command = events.first.command
|
663
|
-
expect(command['nameOnly']).to eq(true)
|
664
|
-
expect(command['authorizedCollections']).to eq(true)
|
665
|
-
end
|
666
|
-
end
|
667
|
-
|
668
|
-
context 'when no options are provided' do
|
669
|
-
let!(:result) do
|
670
|
-
database.collections
|
671
|
-
end
|
672
|
-
|
673
|
-
let(:events) do
|
674
|
-
subscriber.command_started_events('listCollections')
|
675
|
-
end
|
676
|
-
|
677
|
-
it 'authorized_collections not passed to server because not provided' do
|
678
|
-
expect(events.length).to eq(1)
|
679
|
-
command = events.first.command
|
680
|
-
expect(command['authorizedCollections']).to be_nil
|
681
|
-
end
|
682
|
-
end
|
683
|
-
end
|
684
|
-
end
|
685
|
-
|
686
|
-
context 'when there are more than 100 collections' do
|
687
|
-
include_context 'more than 100 collections'
|
688
|
-
|
689
|
-
let(:collections) do
|
690
|
-
client.database.collections
|
691
|
-
end
|
692
|
-
|
693
|
-
let(:collection_names) do
|
694
|
-
collections.map(&:name).sort
|
695
|
-
end
|
696
|
-
|
697
|
-
it 'lists all collections' do
|
698
|
-
collections.length.should == 120
|
699
|
-
collection_names.should include('coll-0')
|
700
|
-
collection_names.should include('coll-119')
|
701
|
-
end
|
702
|
-
end
|
703
|
-
|
704
|
-
context 'with comment' do
|
705
|
-
min_server_version '4.4'
|
706
|
-
|
707
|
-
it 'returns collection names and send comment' do
|
708
|
-
database = described_class.new(monitored_client, SpecConfig.instance.test_db)
|
709
|
-
database.collections(comment: "comment")
|
710
|
-
command = subscriber.command_started_events("listCollections").last&.command
|
711
|
-
expect(command).not_to be_nil
|
712
|
-
expect(command["comment"]).to eq("comment")
|
713
|
-
end
|
714
|
-
end
|
715
|
-
end
|
716
|
-
|
717
|
-
describe '#command' do
|
718
|
-
|
719
|
-
let(:database) do
|
720
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
721
|
-
end
|
722
|
-
|
723
|
-
it 'sends the query command to the cluster' do
|
724
|
-
expect(database.command(:ping => 1).written_count).to eq(0)
|
725
|
-
end
|
726
|
-
|
727
|
-
it 'does not mutate the command selector' do
|
728
|
-
expect(database.command({:ping => 1}.freeze).written_count).to eq(0)
|
729
|
-
end
|
730
|
-
|
731
|
-
context 'when provided a session' do
|
732
|
-
min_server_fcv '3.6'
|
733
|
-
|
734
|
-
let(:operation) do
|
735
|
-
client.database.command({ :ping => 1 }, session: session)
|
736
|
-
end
|
737
|
-
|
738
|
-
let(:failed_operation) do
|
739
|
-
client.database.command({ :invalid => 1 }, session: session)
|
740
|
-
end
|
741
|
-
|
742
|
-
let(:session) do
|
743
|
-
client.start_session
|
744
|
-
end
|
745
|
-
|
746
|
-
let(:subscriber) { Mrss::EventSubscriber.new }
|
747
|
-
|
748
|
-
let(:client) do
|
749
|
-
authorized_client.tap do |client|
|
750
|
-
client.subscribe(Mongo::Monitoring::COMMAND, subscriber)
|
751
|
-
end
|
752
|
-
end
|
753
|
-
|
754
|
-
it_behaves_like 'an operation using a session'
|
755
|
-
it_behaves_like 'a failed operation using a session'
|
756
|
-
|
757
|
-
|
758
|
-
let(:full_command) do
|
759
|
-
subscriber.started_events.find { |cmd| cmd.command_name == 'ping' }.command
|
760
|
-
end
|
761
|
-
|
762
|
-
it 'does not add a afterClusterTime field' do
|
763
|
-
# Ensure that the session has an operation time
|
764
|
-
client.database.command({ ping: 1 }, session: session)
|
765
|
-
operation
|
766
|
-
expect(full_command['readConcern']).to be_nil
|
767
|
-
end
|
768
|
-
end
|
769
|
-
|
770
|
-
context 'when a read concern is provided' do
|
771
|
-
min_server_fcv '3.2'
|
772
|
-
|
773
|
-
context 'when the read concern is valid' do
|
774
|
-
|
775
|
-
it 'sends the read concern' do
|
776
|
-
expect {
|
777
|
-
database.command(:ping => 1, readConcern: { level: 'local' })
|
778
|
-
}.to_not raise_error
|
779
|
-
end
|
780
|
-
end
|
781
|
-
|
782
|
-
context 'when the read concern is not valid' do
|
783
|
-
require_topology :single, :replica_set
|
784
|
-
|
785
|
-
it 'raises an exception' do
|
786
|
-
expect {
|
787
|
-
database.command(:ping => 1, readConcern: { level: 'yay' })
|
788
|
-
}.to raise_error(Mongo::Error::OperationFailure)
|
789
|
-
end
|
790
|
-
end
|
791
|
-
end
|
792
|
-
|
793
|
-
context 'when no read preference is provided' do
|
794
|
-
require_topology :single, :replica_set
|
795
|
-
|
796
|
-
let!(:primary_server) do
|
797
|
-
database.cluster.next_primary
|
798
|
-
end
|
799
|
-
|
800
|
-
it 'uses read preference of primary' do
|
801
|
-
RSpec::Mocks.with_temporary_scope do
|
802
|
-
expect(primary_server).to receive(:with_connection).with(any_args).and_call_original
|
803
|
-
|
804
|
-
expect(database.command(ping: 1)).to be_successful
|
805
|
-
end
|
806
|
-
end
|
807
|
-
end
|
808
|
-
|
809
|
-
context 'when the client has a read preference set' do
|
810
|
-
require_topology :single, :replica_set
|
811
|
-
|
812
|
-
let!(:primary_server) do
|
813
|
-
database.cluster.next_primary
|
814
|
-
end
|
815
|
-
|
816
|
-
let(:read_preference) do
|
817
|
-
{ :mode => :secondary, :tag_sets => [{ 'non' => 'existent' }] }
|
818
|
-
end
|
819
|
-
|
820
|
-
let(:client) do
|
821
|
-
authorized_client.with(read: read_preference)
|
822
|
-
end
|
823
|
-
|
824
|
-
let(:database) do
|
825
|
-
described_class.new(client, SpecConfig.instance.test_db, client.options)
|
826
|
-
end
|
827
|
-
|
828
|
-
it 'does not use the client read preference 'do
|
829
|
-
RSpec::Mocks.with_temporary_scope do
|
830
|
-
expect(primary_server).to receive(:with_connection).with(any_args).and_call_original
|
831
|
-
|
832
|
-
expect(database.command(ping: 1)).to be_successful
|
833
|
-
end
|
834
|
-
end
|
835
|
-
end
|
836
|
-
|
837
|
-
context 'when there is a read preference argument provided' do
|
838
|
-
require_topology :single, :replica_set
|
839
|
-
|
840
|
-
let(:read_preference) do
|
841
|
-
{ :mode => :secondary, :tag_sets => [{ 'non' => 'existent' }] }
|
842
|
-
end
|
843
|
-
|
844
|
-
let(:client) do
|
845
|
-
authorized_client.with(server_selection_timeout: 0.2)
|
846
|
-
end
|
847
|
-
|
848
|
-
let(:database) do
|
849
|
-
described_class.new(client, SpecConfig.instance.test_db, client.options)
|
850
|
-
end
|
851
|
-
|
852
|
-
before do
|
853
|
-
allow(database.cluster).to receive(:single?).and_return(false)
|
854
|
-
end
|
855
|
-
|
856
|
-
it 'uses the read preference argument' do
|
857
|
-
expect {
|
858
|
-
database.command({ ping: 1 }, read: read_preference)
|
859
|
-
}.to raise_error(Mongo::Error::NoServerAvailable)
|
860
|
-
end
|
861
|
-
end
|
862
|
-
|
863
|
-
context 'when the client has a server_selection_timeout set' do
|
864
|
-
require_topology :single, :replica_set
|
865
|
-
|
866
|
-
let(:client) do
|
867
|
-
authorized_client.with(server_selection_timeout: 0)
|
868
|
-
end
|
869
|
-
|
870
|
-
let(:database) do
|
871
|
-
described_class.new(client, SpecConfig.instance.test_db, client.options)
|
872
|
-
end
|
873
|
-
|
874
|
-
it 'uses the client server_selection_timeout' do
|
875
|
-
expect {
|
876
|
-
database.command(ping: 1)
|
877
|
-
}.to raise_error(Mongo::Error::NoServerAvailable)
|
878
|
-
end
|
879
|
-
end
|
880
|
-
|
881
|
-
context 'when a write concern is not defined on the client/database object' do
|
882
|
-
|
883
|
-
context 'when a write concern is provided in the selector' do
|
884
|
-
require_topology :single
|
885
|
-
|
886
|
-
let(:cmd) do
|
887
|
-
{
|
888
|
-
insert: TEST_COLL,
|
889
|
-
documents: [ { a: 1 } ],
|
890
|
-
writeConcern: INVALID_WRITE_CONCERN
|
891
|
-
}
|
892
|
-
end
|
893
|
-
|
894
|
-
it 'uses the write concern' do
|
895
|
-
expect {
|
896
|
-
database.command(cmd)
|
897
|
-
}.to raise_exception(Mongo::Error::OperationFailure)
|
898
|
-
end
|
899
|
-
end
|
900
|
-
end
|
901
|
-
|
902
|
-
context 'when a write concern is defined on the client/database object' do
|
903
|
-
|
904
|
-
let(:client_options) do
|
905
|
-
{
|
906
|
-
write: INVALID_WRITE_CONCERN
|
907
|
-
}
|
908
|
-
end
|
909
|
-
|
910
|
-
let(:database) do
|
911
|
-
described_class.new(authorized_client.with(client_options), SpecConfig.instance.test_db)
|
912
|
-
end
|
913
|
-
|
914
|
-
context 'when a write concern is not in the command selector' do
|
915
|
-
|
916
|
-
let(:cmd) do
|
917
|
-
{
|
918
|
-
insert: TEST_COLL,
|
919
|
-
documents: [ { a: 1 } ]
|
920
|
-
}
|
921
|
-
end
|
922
|
-
|
923
|
-
it 'does not apply a write concern' do
|
924
|
-
expect(database.command(cmd).written_count).to eq(1)
|
925
|
-
end
|
926
|
-
end
|
927
|
-
|
928
|
-
context 'when a write concern is provided in the command selector' do
|
929
|
-
require_topology :single
|
930
|
-
|
931
|
-
let(:cmd) do
|
932
|
-
{
|
933
|
-
insert: TEST_COLL,
|
934
|
-
documents: [ { a: 1 } ],
|
935
|
-
writeConcern: INVALID_WRITE_CONCERN
|
936
|
-
}
|
937
|
-
end
|
938
|
-
|
939
|
-
it 'uses the write concern' do
|
940
|
-
expect {
|
941
|
-
database.command(cmd)
|
942
|
-
}.to raise_exception(Mongo::Error::OperationFailure)
|
943
|
-
end
|
944
|
-
end
|
945
|
-
end
|
946
|
-
|
947
|
-
context 'when client server api is not set' do
|
948
|
-
require_no_required_api_version
|
949
|
-
min_server_fcv '4.7'
|
950
|
-
|
951
|
-
it 'passes server api parameters' do
|
952
|
-
lambda do
|
953
|
-
database.command(ping: 1, apiVersion: 'does-not-exist')
|
954
|
-
end.should raise_error(
|
955
|
-
an_instance_of(Mongo::Error::OperationFailure).and having_attributes(code: 322))
|
956
|
-
end
|
957
|
-
end
|
958
|
-
|
959
|
-
context 'when client server api is set' do
|
960
|
-
require_required_api_version
|
961
|
-
min_server_fcv '4.7'
|
962
|
-
|
963
|
-
it 'reports server api conflict' do
|
964
|
-
lambda do
|
965
|
-
database.command(ping: 1, apiVersion: 'does-not-exist')
|
966
|
-
end.should raise_error(Mongo::Error::ServerApiConflict)
|
967
|
-
end
|
968
|
-
end
|
969
|
-
end
|
970
|
-
|
971
|
-
describe '#drop' do
|
972
|
-
|
973
|
-
let(:database) do
|
974
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
975
|
-
end
|
976
|
-
|
977
|
-
it 'drops the database' do
|
978
|
-
expect(database.drop).to be_successful
|
979
|
-
end
|
980
|
-
|
981
|
-
context 'when provided a session' do
|
982
|
-
|
983
|
-
let(:operation) do
|
984
|
-
database.drop(session: session)
|
985
|
-
end
|
986
|
-
|
987
|
-
let(:client) do
|
988
|
-
authorized_client
|
989
|
-
end
|
990
|
-
|
991
|
-
it_behaves_like 'an operation using a session'
|
992
|
-
end
|
993
|
-
|
994
|
-
context 'when the client/database has a write concern' do
|
995
|
-
|
996
|
-
let(:client_options) do
|
997
|
-
{
|
998
|
-
write: INVALID_WRITE_CONCERN,
|
999
|
-
database: :safe_to_drop
|
1000
|
-
}
|
1001
|
-
end
|
1002
|
-
|
1003
|
-
let(:client) do
|
1004
|
-
root_authorized_client.with(client_options)
|
1005
|
-
end
|
1006
|
-
|
1007
|
-
let(:database_with_write_options) do
|
1008
|
-
client.database
|
1009
|
-
end
|
1010
|
-
|
1011
|
-
context 'when the server supports write concern on the dropDatabase command' do
|
1012
|
-
min_server_fcv '3.4'
|
1013
|
-
require_topology :single
|
1014
|
-
|
1015
|
-
it 'applies the write concern' do
|
1016
|
-
expect{
|
1017
|
-
database_with_write_options.drop
|
1018
|
-
}.to raise_exception(Mongo::Error::OperationFailure)
|
1019
|
-
end
|
1020
|
-
end
|
1021
|
-
|
1022
|
-
context 'when write concern is passed in as an option' do
|
1023
|
-
min_server_fcv '3.4'
|
1024
|
-
require_topology :single
|
1025
|
-
|
1026
|
-
let(:client_options) do
|
1027
|
-
{
|
1028
|
-
write_concern: {w: 0},
|
1029
|
-
database: :test
|
1030
|
-
}
|
1031
|
-
end
|
1032
|
-
|
1033
|
-
let(:session) do
|
1034
|
-
client.start_session
|
1035
|
-
end
|
1036
|
-
|
1037
|
-
let(:subscriber) { Mrss::EventSubscriber.new }
|
1038
|
-
|
1039
|
-
let(:client) do
|
1040
|
-
root_authorized_client.tap do |client|
|
1041
|
-
client.subscribe(Mongo::Monitoring::COMMAND, subscriber)
|
1042
|
-
end.with(client_options)
|
1043
|
-
end
|
1044
|
-
|
1045
|
-
let(:events) do
|
1046
|
-
subscriber.command_started_events('dropDatabase')
|
1047
|
-
end
|
1048
|
-
|
1049
|
-
let(:database_test_wc) do
|
1050
|
-
client.database
|
1051
|
-
end
|
1052
|
-
|
1053
|
-
let!(:command) do
|
1054
|
-
Utils.get_command_event(client, 'dropDatabase') do |client|
|
1055
|
-
database_test_wc.drop({ write_concern: {w: 'majority'} })
|
1056
|
-
end.command
|
1057
|
-
end
|
1058
|
-
|
1059
|
-
it 'applies the write concern passed in as an option' do
|
1060
|
-
expect(events.length).to eq(1)
|
1061
|
-
expect(command).to_not be_nil
|
1062
|
-
expect(command[:writeConcern][:w]).to eq('majority')
|
1063
|
-
end
|
1064
|
-
end
|
1065
|
-
|
1066
|
-
context 'when the server does not support write concern on the dropDatabase command' do
|
1067
|
-
max_server_version '3.2'
|
1068
|
-
|
1069
|
-
it 'does not apply the write concern' do
|
1070
|
-
expect(database_with_write_options.drop).to be_successful
|
1071
|
-
end
|
1072
|
-
end
|
1073
|
-
end
|
1074
|
-
end
|
1075
|
-
|
1076
|
-
describe '#initialize' do
|
1077
|
-
|
1078
|
-
context 'when provided a valid name' do
|
1079
|
-
|
1080
|
-
let(:database) do
|
1081
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
1082
|
-
end
|
1083
|
-
|
1084
|
-
it 'sets the name as a string' do
|
1085
|
-
expect(database.name).to eq(SpecConfig.instance.test_db)
|
1086
|
-
end
|
1087
|
-
|
1088
|
-
it 'sets the client' do
|
1089
|
-
expect(database.client).to eq(authorized_client)
|
1090
|
-
end
|
1091
|
-
end
|
1092
|
-
|
1093
|
-
context 'when the name is nil' do
|
1094
|
-
|
1095
|
-
it 'raises an error' do
|
1096
|
-
expect do
|
1097
|
-
described_class.new(authorized_client, nil)
|
1098
|
-
end.to raise_error(Mongo::Error::InvalidDatabaseName)
|
1099
|
-
end
|
1100
|
-
end
|
1101
|
-
end
|
1102
|
-
|
1103
|
-
describe '#inspect' do
|
1104
|
-
|
1105
|
-
let(:database) do
|
1106
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
1107
|
-
end
|
1108
|
-
|
1109
|
-
it 'includes the object id' do
|
1110
|
-
expect(database.inspect).to include(database.object_id.to_s)
|
1111
|
-
end
|
1112
|
-
|
1113
|
-
it 'includes the name' do
|
1114
|
-
expect(database.inspect).to include(database.name)
|
1115
|
-
end
|
1116
|
-
end
|
1117
|
-
|
1118
|
-
describe '#fs' do
|
1119
|
-
require_topology :single, :replica_set
|
1120
|
-
|
1121
|
-
let(:database) do
|
1122
|
-
described_class.new(authorized_client, SpecConfig.instance.test_db)
|
1123
|
-
end
|
1124
|
-
|
1125
|
-
shared_context 'a GridFS database' do
|
1126
|
-
|
1127
|
-
it 'returns a Grid::FS for the db' do
|
1128
|
-
expect(fs).to be_a(Mongo::Grid::FSBucket)
|
1129
|
-
end
|
1130
|
-
|
1131
|
-
context 'when operating on the fs' do
|
1132
|
-
|
1133
|
-
let(:file) do
|
1134
|
-
Mongo::Grid::File.new('Hello!', :filename => 'test.txt')
|
1135
|
-
end
|
1136
|
-
|
1137
|
-
before do
|
1138
|
-
fs.files_collection.delete_many
|
1139
|
-
fs.chunks_collection.delete_many
|
1140
|
-
end
|
1141
|
-
|
1142
|
-
let(:from_db) do
|
1143
|
-
fs.insert_one(file)
|
1144
|
-
fs.find({ filename: 'test.txt' }, limit: 1).first
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
it 'returns the assembled file from the db' do
|
1148
|
-
expect(from_db['filename']).to eq(file.info.filename)
|
1149
|
-
end
|
1150
|
-
end
|
1151
|
-
end
|
1152
|
-
|
1153
|
-
context 'when no options are provided' do
|
1154
|
-
|
1155
|
-
let(:fs) do
|
1156
|
-
database.fs
|
1157
|
-
end
|
1158
|
-
|
1159
|
-
it_behaves_like 'a GridFS database'
|
1160
|
-
end
|
1161
|
-
|
1162
|
-
context 'when a custom prefix is provided' do
|
1163
|
-
|
1164
|
-
context 'when the option is fs_name' do
|
1165
|
-
|
1166
|
-
let(:fs) do
|
1167
|
-
database.fs(:fs_name => 'grid')
|
1168
|
-
end
|
1169
|
-
|
1170
|
-
it 'sets the custom prefix' do
|
1171
|
-
expect(fs.prefix).to eq('grid')
|
1172
|
-
end
|
1173
|
-
|
1174
|
-
it_behaves_like 'a GridFS database'
|
1175
|
-
end
|
1176
|
-
|
1177
|
-
context 'when the option is bucket_name' do
|
1178
|
-
|
1179
|
-
let(:fs) do
|
1180
|
-
database.fs(:bucket_name => 'grid')
|
1181
|
-
end
|
1182
|
-
|
1183
|
-
it 'sets the custom prefix' do
|
1184
|
-
expect(fs.prefix).to eq('grid')
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
it_behaves_like 'a GridFS database'
|
1188
|
-
end
|
1189
|
-
end
|
1190
|
-
end
|
1191
|
-
|
1192
|
-
describe '#write_concern' do
|
1193
|
-
|
1194
|
-
let(:client) do
|
1195
|
-
new_local_client(['127.0.0.1:27017'],
|
1196
|
-
{monitoring_io: false}.merge(client_options))
|
1197
|
-
end
|
1198
|
-
|
1199
|
-
let(:database) { client.database }
|
1200
|
-
|
1201
|
-
context 'when client write concern uses :write' do
|
1202
|
-
|
1203
|
-
let(:client_options) do
|
1204
|
-
{ :write => { :w => 1 } }
|
1205
|
-
end
|
1206
|
-
|
1207
|
-
it 'is the correct write concern' do
|
1208
|
-
expect(database.write_concern).to be_a(Mongo::WriteConcern::Acknowledged)
|
1209
|
-
expect(database.write_concern.options).to eq(w: 1)
|
1210
|
-
end
|
1211
|
-
end
|
1212
|
-
|
1213
|
-
context 'when client write concern uses :write_concern' do
|
1214
|
-
|
1215
|
-
let(:client_options) do
|
1216
|
-
{ :write_concern => { :w => 1 } }
|
1217
|
-
end
|
1218
|
-
|
1219
|
-
it 'is the correct write concern' do
|
1220
|
-
expect(database.write_concern).to be_a(Mongo::WriteConcern::Acknowledged)
|
1221
|
-
expect(database.write_concern.options).to eq(w: 1)
|
1222
|
-
end
|
1223
|
-
end
|
1224
|
-
end
|
1225
|
-
|
1226
|
-
describe '#aggregate' do
|
1227
|
-
min_server_fcv '3.6'
|
1228
|
-
|
1229
|
-
let(:client) do
|
1230
|
-
root_authorized_admin_client
|
1231
|
-
end
|
1232
|
-
|
1233
|
-
let(:database) { client.database }
|
1234
|
-
|
1235
|
-
let(:pipeline) do
|
1236
|
-
[{'$currentOp' => {}}]
|
1237
|
-
end
|
1238
|
-
|
1239
|
-
describe 'updating cluster time' do
|
1240
|
-
# The shared examples use their own client which we cannot override
|
1241
|
-
# from here, and it uses the wrong credentials for admin database which
|
1242
|
-
# is the one we need for our pipeline when auth is on.
|
1243
|
-
require_no_auth
|
1244
|
-
|
1245
|
-
let(:database_via_client) do
|
1246
|
-
client.use(:admin).database
|
1247
|
-
end
|
1248
|
-
|
1249
|
-
let(:operation) do
|
1250
|
-
database_via_client.aggregate(pipeline).first
|
1251
|
-
end
|
1252
|
-
|
1253
|
-
let(:operation_with_session) do
|
1254
|
-
database_via_client.aggregate(pipeline, session: session).first
|
1255
|
-
end
|
1256
|
-
|
1257
|
-
let(:second_operation) do
|
1258
|
-
database_via_client.aggregate(pipeline, session: session).first
|
1259
|
-
end
|
1260
|
-
|
1261
|
-
it_behaves_like 'an operation updating cluster time'
|
1262
|
-
end
|
1263
|
-
|
1264
|
-
it 'returns an Aggregation object' do
|
1265
|
-
expect(database.aggregate(pipeline)).to be_a(Mongo::Collection::View::Aggregation)
|
1266
|
-
end
|
1267
|
-
|
1268
|
-
context 'when options are provided' do
|
1269
|
-
|
1270
|
-
let(:options) do
|
1271
|
-
{ :allow_disk_use => true, :bypass_document_validation => true }
|
1272
|
-
end
|
1273
|
-
|
1274
|
-
it 'sets the options on the Aggregation object' do
|
1275
|
-
expect(database.aggregate(pipeline, options).options).to eq(BSON::Document.new(options))
|
1276
|
-
end
|
1277
|
-
|
1278
|
-
context 'when the :comment option is provided' do
|
1279
|
-
|
1280
|
-
let(:options) do
|
1281
|
-
{ :comment => 'testing' }
|
1282
|
-
end
|
1283
|
-
|
1284
|
-
it 'sets the options on the Aggregation object' do
|
1285
|
-
expect(database.aggregate(pipeline, options).options).to eq(BSON::Document.new(options))
|
1286
|
-
end
|
1287
|
-
end
|
1288
|
-
|
1289
|
-
context 'when a session is provided' do
|
1290
|
-
|
1291
|
-
let(:session) do
|
1292
|
-
client.start_session
|
1293
|
-
end
|
1294
|
-
|
1295
|
-
let(:operation) do
|
1296
|
-
database.aggregate(pipeline, session: session).to_a
|
1297
|
-
end
|
1298
|
-
|
1299
|
-
let(:failed_operation) do
|
1300
|
-
database.aggregate([ { '$invalid' => 1 }], session: session).to_a
|
1301
|
-
end
|
1302
|
-
|
1303
|
-
it_behaves_like 'an operation using a session'
|
1304
|
-
it_behaves_like 'a failed operation using a session'
|
1305
|
-
end
|
1306
|
-
|
1307
|
-
context 'when a hint is provided' do
|
1308
|
-
|
1309
|
-
let(:options) do
|
1310
|
-
{ 'hint' => { 'y' => 1 } }
|
1311
|
-
end
|
1312
|
-
|
1313
|
-
it 'sets the options on the Aggregation object' do
|
1314
|
-
expect(database.aggregate(pipeline, options).options).to eq(options)
|
1315
|
-
end
|
1316
|
-
end
|
1317
|
-
|
1318
|
-
context 'when collation is provided' do
|
1319
|
-
|
1320
|
-
let(:pipeline) do
|
1321
|
-
[{ "$currentOp" => {} }]
|
1322
|
-
end
|
1323
|
-
|
1324
|
-
let(:options) do
|
1325
|
-
{ collation: { locale: 'en_US', strength: 2 } }
|
1326
|
-
end
|
1327
|
-
|
1328
|
-
let(:result) do
|
1329
|
-
database.aggregate(pipeline, options).collect { |doc| doc.keys.grep(/host/).first }
|
1330
|
-
end
|
1331
|
-
|
1332
|
-
context 'when the server selected supports collations' do
|
1333
|
-
min_server_fcv '3.4'
|
1334
|
-
|
1335
|
-
it 'applies the collation' do
|
1336
|
-
expect(result.uniq).to eq(['host'])
|
1337
|
-
end
|
1338
|
-
end
|
1339
|
-
|
1340
|
-
context 'when the server selected does not support collations' do
|
1341
|
-
max_server_version '3.2'
|
1342
|
-
|
1343
|
-
it 'raises an exception' do
|
1344
|
-
expect {
|
1345
|
-
result
|
1346
|
-
}.to raise_exception(Mongo::Error::UnsupportedCollation)
|
1347
|
-
end
|
1348
|
-
|
1349
|
-
context 'when a String key is used' do
|
1350
|
-
|
1351
|
-
let(:options) do
|
1352
|
-
{ 'collation' => { locale: 'en_US', strength: 2 } }
|
1353
|
-
end
|
1354
|
-
|
1355
|
-
it 'raises an exception' do
|
1356
|
-
expect {
|
1357
|
-
result
|
1358
|
-
}.to raise_exception(Mongo::Error::UnsupportedCollation)
|
1359
|
-
end
|
1360
|
-
end
|
1361
|
-
end
|
1362
|
-
end
|
1363
|
-
end
|
1364
|
-
end
|
1365
|
-
end
|