mongo 2.5.1 → 2.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data.tar.gz.sig +0 -0
- data/Rakefile +1 -1
- data/lib/mongo/auth/user/view.rb +4 -4
- data/lib/mongo/bulk_write.rb +14 -19
- data/lib/mongo/cluster.rb +4 -2
- data/lib/mongo/cluster/app_metadata.rb +1 -1
- data/lib/mongo/cluster/reapers/cursor_reaper.rb +1 -1
- data/lib/mongo/collection.rb +13 -13
- data/lib/mongo/collection/view.rb +2 -1
- data/lib/mongo/collection/view/aggregation.rb +1 -1
- data/lib/mongo/collection/view/change_stream.rb +1 -1
- data/lib/mongo/collection/view/iterable.rb +4 -4
- data/lib/mongo/collection/view/map_reduce.rb +3 -3
- data/lib/mongo/collection/view/readable.rb +26 -20
- data/lib/mongo/collection/view/writable.rb +12 -12
- data/lib/mongo/cursor.rb +4 -7
- data/lib/mongo/database.rb +2 -2
- data/lib/mongo/database/view.rb +1 -1
- data/lib/mongo/grid/stream/write.rb +1 -1
- data/lib/mongo/index/view.rb +3 -3
- data/lib/mongo/operation.rb +38 -24
- data/lib/mongo/operation/aggregate.rb +53 -0
- data/lib/mongo/operation/aggregate/command.rb +59 -0
- data/lib/mongo/operation/aggregate/op_msg.rb +54 -0
- data/lib/mongo/operation/aggregate/result.rb +87 -0
- data/lib/mongo/operation/collections_info.rb +62 -0
- data/lib/mongo/operation/collections_info/result.rb +39 -0
- data/lib/mongo/operation/{executable.rb → command.rb} +16 -13
- data/lib/mongo/operation/command/command.rb +38 -0
- data/lib/mongo/operation/command/op_msg.rb +53 -0
- data/lib/mongo/operation/count.rb +48 -0
- data/lib/mongo/operation/count/command.rb +38 -0
- data/lib/mongo/operation/count/op_msg.rb +38 -0
- data/lib/mongo/operation/create.rb +48 -0
- data/lib/mongo/operation/create/command.rb +38 -0
- data/lib/mongo/operation/create/op_msg.rb +37 -0
- data/lib/mongo/operation/create_index.rb +48 -0
- data/lib/mongo/operation/create_index/command.rb +42 -0
- data/lib/mongo/operation/create_index/op_msg.rb +41 -0
- data/lib/mongo/operation/create_user.rb +48 -0
- data/lib/mongo/operation/{commands → create_user}/command.rb +13 -19
- data/lib/mongo/operation/create_user/op_msg.rb +41 -0
- data/lib/mongo/operation/delete.rb +38 -0
- data/lib/mongo/operation/delete/bulk_result.rb +46 -0
- data/lib/mongo/operation/delete/command.rb +59 -0
- data/lib/mongo/operation/delete/legacy.rb +69 -0
- data/lib/mongo/operation/delete/op_msg.rb +60 -0
- data/lib/mongo/operation/{write/delete → delete}/result.rb +18 -16
- data/lib/mongo/operation/distinct.rb +48 -0
- data/lib/mongo/operation/distinct/command.rb +38 -0
- data/lib/mongo/operation/distinct/op_msg.rb +38 -0
- data/lib/mongo/operation/drop.rb +48 -0
- data/lib/mongo/operation/drop/command.rb +38 -0
- data/lib/mongo/operation/{commands/count.rb → drop/op_msg.rb} +16 -6
- data/lib/mongo/operation/drop_database.rb +48 -0
- data/lib/mongo/operation/drop_database/command.rb +38 -0
- data/lib/mongo/operation/drop_database/op_msg.rb +37 -0
- data/lib/mongo/operation/drop_index.rb +48 -0
- data/lib/mongo/operation/drop_index/command.rb +42 -0
- data/lib/mongo/operation/{limited.rb → drop_index/op_msg.rb} +19 -15
- data/lib/mongo/operation/explain.rb +52 -0
- data/lib/mongo/operation/explain/command.rb +54 -0
- data/lib/mongo/operation/explain/legacy.rb +53 -0
- data/lib/mongo/operation/explain/op_msg.rb +54 -0
- data/lib/mongo/operation/explain/result.rb +50 -0
- data/lib/mongo/operation/find.rb +52 -0
- data/lib/mongo/operation/find/command.rb +54 -0
- data/lib/mongo/operation/find/legacy.rb +55 -0
- data/lib/mongo/operation/{read/query → find/legacy}/result.rb +3 -3
- data/lib/mongo/operation/find/op_msg.rb +59 -0
- data/lib/mongo/operation/find/result.rb +60 -0
- data/lib/mongo/operation/{commands/users_info/result.rb → get_more.rb} +20 -22
- data/lib/mongo/operation/get_more/command.rb +54 -0
- data/lib/mongo/operation/{commands/find.rb → get_more/legacy.rb} +15 -8
- data/lib/mongo/operation/get_more/op_msg.rb +58 -0
- data/lib/mongo/operation/get_more/result.rb +60 -0
- data/lib/mongo/operation/indexes.rb +52 -0
- data/lib/mongo/operation/indexes/command.rb +54 -0
- data/lib/mongo/operation/indexes/legacy.rb +57 -0
- data/lib/mongo/operation/indexes/op_msg.rb +54 -0
- data/lib/mongo/operation/indexes/result.rb +97 -0
- data/lib/mongo/operation/insert.rb +40 -0
- data/lib/mongo/operation/insert/bulk_result.rb +70 -0
- data/lib/mongo/operation/insert/command.rb +65 -0
- data/lib/mongo/operation/insert/legacy.rb +72 -0
- data/lib/mongo/operation/insert/op_msg.rb +61 -0
- data/lib/mongo/operation/insert/result.rb +64 -0
- data/lib/mongo/operation/kill_cursors.rb +25 -14
- data/lib/mongo/operation/{takes_write_concern.rb → kill_cursors/command.rb} +14 -12
- data/lib/mongo/operation/kill_cursors/legacy.rb +37 -0
- data/lib/mongo/operation/kill_cursors/op_msg.rb +37 -0
- data/lib/mongo/operation/list_collections.rb +49 -0
- data/lib/mongo/operation/list_collections/command.rb +60 -0
- data/lib/mongo/operation/list_collections/op_msg.rb +53 -0
- data/lib/mongo/operation/list_collections/result.rb +92 -0
- data/lib/mongo/operation/map_reduce.rb +49 -0
- data/lib/mongo/operation/map_reduce/command.rb +55 -0
- data/lib/mongo/operation/map_reduce/op_msg.rb +54 -0
- data/lib/mongo/operation/map_reduce/result.rb +129 -0
- data/lib/mongo/operation/parallel_scan.rb +49 -0
- data/lib/mongo/operation/parallel_scan/command.rb +67 -0
- data/lib/mongo/operation/parallel_scan/op_msg.rb +61 -0
- data/lib/mongo/operation/parallel_scan/result.rb +61 -0
- data/lib/mongo/operation/remove_user.rb +48 -0
- data/lib/mongo/operation/remove_user/command.rb +42 -0
- data/lib/mongo/operation/remove_user/op_msg.rb +41 -0
- data/lib/mongo/operation/result.rb +3 -1
- data/lib/mongo/operation/shared/bypass_document_validation.rb +36 -0
- data/lib/mongo/operation/{causally_consistent.rb → shared/causal_consistency_supported.rb} +5 -5
- data/lib/mongo/operation/shared/executable.rb +45 -0
- data/lib/mongo/operation/shared/idable.rb +64 -0
- data/lib/mongo/operation/{commands/distinct.rb → shared/limited.rb} +10 -7
- data/lib/mongo/operation/{object_id_generator.rb → shared/object_id_generator.rb} +2 -2
- data/lib/mongo/operation/{read_preference.rb → shared/read_preference_supported.rb} +14 -24
- data/lib/mongo/operation/shared/result/aggregatable.rb +75 -0
- data/lib/mongo/operation/shared/sessions_supported.rb +79 -0
- data/lib/mongo/operation/{specifiable.rb → shared/specifiable.rb} +40 -4
- data/lib/mongo/operation/shared/write.rb +81 -0
- data/lib/mongo/operation/shared/write_concern_supported.rb +39 -0
- data/lib/mongo/operation/update.rb +38 -0
- data/lib/mongo/operation/update/bulk_result.rb +126 -0
- data/lib/mongo/operation/update/command.rb +60 -0
- data/lib/mongo/operation/update/legacy.rb +80 -0
- data/lib/mongo/operation/{write/update → update/legacy}/result.rb +4 -82
- data/lib/mongo/operation/update/op_msg.rb +60 -0
- data/lib/mongo/operation/update/result.rb +102 -0
- data/lib/mongo/operation/update_user.rb +48 -0
- data/lib/mongo/operation/update_user/command.rb +41 -0
- data/lib/mongo/operation/update_user/op_msg.rb +41 -0
- data/lib/mongo/operation/users_info.rb +49 -0
- data/lib/mongo/operation/users_info/command.rb +58 -0
- data/lib/mongo/operation/users_info/op_msg.rb +57 -0
- data/lib/mongo/operation/{commands/collections_info → users_info}/result.rb +18 -17
- data/lib/mongo/server.rb +3 -5
- data/lib/mongo/server/connectable.rb +3 -3
- data/lib/mongo/server/connection.rb +14 -0
- data/lib/mongo/server_selector.rb +1 -1
- data/lib/mongo/server_selector/selectable.rb +3 -12
- data/lib/mongo/session.rb +13 -1
- data/lib/mongo/session/session_pool.rb +1 -1
- data/lib/mongo/version.rb +1 -1
- data/spec/mongo/client_spec.rb +15 -22
- data/spec/mongo/cluster/app_metadata_spec.rb +19 -3
- data/spec/mongo/cluster/cursor_reaper_spec.rb +37 -0
- data/spec/mongo/cluster_spec.rb +2 -2
- data/spec/mongo/collection/view/change_stream_spec.rb +2 -2
- data/spec/mongo/collection_spec.rb +105 -14
- data/spec/mongo/cursor_spec.rb +11 -11
- data/spec/mongo/grid/fs_bucket_spec.rb +5 -0
- data/spec/mongo/max_staleness_spec.rb +3 -1
- data/spec/mongo/operation/{commands/aggregate → aggregate}/result_spec.rb +1 -1
- data/spec/mongo/operation/{commands/aggregate_spec.rb → aggregate_spec.rb} +1 -1
- data/spec/mongo/operation/{commands/collections_info_spec.rb → collections_info_spec.rb} +4 -2
- data/spec/mongo/operation/{commands/command_spec.rb → command_spec.rb} +1 -1
- data/spec/mongo/operation/{write/command/create_index_spec.rb → create_index_spec.rb} +1 -1
- data/spec/mongo/operation/{write/create_user_spec.rb → create_user_spec.rb} +1 -1
- data/spec/mongo/operation/{write/bulk/delete_spec.rb → delete/bulk_spec.rb} +8 -8
- data/spec/mongo/operation/delete/command_spec.rb +111 -0
- data/spec/mongo/operation/{write/command/delete_spec.rb → delete/op_msg_spec.rb} +40 -34
- data/spec/mongo/operation/{write/delete_spec.rb → delete_spec.rb} +7 -7
- data/spec/mongo/operation/{write/command/drop_index_spec.rb → drop_index_spec.rb} +1 -1
- data/spec/mongo/operation/{read/query_spec.rb → find/legacy_spec.rb} +2 -2
- data/spec/mongo/operation/{read/get_more_spec.rb → get_more_spec.rb} +3 -3
- data/spec/mongo/operation/{commands/indexes_spec.rb → indexes_spec.rb} +6 -4
- data/spec/mongo/operation/{write/bulk/insert_spec.rb → insert/bulk_spec.rb} +9 -9
- data/spec/mongo/operation/insert/command_spec.rb +110 -0
- data/spec/mongo/operation/{write/command/insert_spec.rb → insert/op_msg_spec.rb} +51 -41
- data/spec/mongo/operation/{write/insert_spec.rb → insert_spec.rb} +2 -2
- data/spec/mongo/operation/kill_cursors_spec.rb +2 -2
- data/spec/mongo/operation/limited_spec.rb +3 -3
- data/spec/mongo/operation/{commands/map_reduce_spec.rb → map_reduce_spec.rb} +1 -1
- data/spec/mongo/operation/read_preference_spec.rb +2 -2
- data/spec/mongo/operation/{write/command/remove_user_spec.rb → remove_user_spec.rb} +1 -1
- data/spec/mongo/operation/{write/bulk/update_spec.rb → update/bulk_spec.rb} +8 -8
- data/spec/mongo/operation/update/command_spec.rb +114 -0
- data/spec/mongo/operation/{write/command/update_spec.rb → update/op_msg_spec.rb} +49 -40
- data/spec/mongo/operation/{write/update_spec.rb → update_spec.rb} +6 -6
- data/spec/mongo/operation/{write/command/update_user_spec.rb → update_user_spec.rb} +1 -1
- data/spec/mongo/server/connection_spec.rb +0 -22
- data/spec/mongo/server_selector_spec.rb +55 -0
- data/spec/mongo/server_spec.rb +0 -42
- data/spec/mongo/session/session_pool_spec.rb +1 -1
- data/spec/mongo/uri/srv_protocol_spec.rb +2 -2
- data/spec/mongo/uri_spec.rb +2 -2
- data/spec/support/gridfs_tests/delete.yml +4 -38
- data/spec/support/gridfs_tests/download.yml +12 -30
- data/spec/support/server_selection.rb +1 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest_multiple.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PossiblePrimary.yml +15 -0
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PossiblePrimaryNearest.yml +15 -0
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Primary.yml +0 -3
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PrimaryPreferred.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PrimaryPreferred_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Secondary.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/SecondaryPreferred.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/SecondaryPreferred_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Secondary_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Nearest.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Nearest_multiple.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Nearest_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Primary.yml +0 -3
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/PrimaryPreferred.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/PrimaryPreferred_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Secondary.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/SecondaryPreferred.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/SecondaryPreferred_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Secondary_non_matching.yml +0 -1
- data/spec/support/server_selection/selection/Sharded/read/Nearest.yml +21 -0
- data/spec/support/server_selection/selection/Sharded/read/Primary.yml +19 -0
- data/spec/support/server_selection/selection/Sharded/read/PrimaryPreferred.yml +21 -0
- data/spec/support/server_selection/selection/Sharded/read/Secondary.yml +21 -0
- data/spec/support/server_selection/selection/Sharded/read/SecondaryPreferred.yml +0 -5
- data/spec/support/server_selection/selection/Single/read/SecondaryPreferred.yml +0 -1
- data/spec/support/server_selection/selection/Unknown/read/SecondaryPreferred.yml +0 -1
- data/spec/support/shared/session.rb +46 -5
- metadata +174 -116
- metadata.gz.sig +1 -2
- data/lib/mongo/operation/commands.rb +0 -31
- data/lib/mongo/operation/commands/aggregate.rb +0 -63
- data/lib/mongo/operation/commands/aggregate/result.rb +0 -89
- data/lib/mongo/operation/commands/collections_info.rb +0 -71
- data/lib/mongo/operation/commands/create.rb +0 -49
- data/lib/mongo/operation/commands/drop.rb +0 -49
- data/lib/mongo/operation/commands/drop_database.rb +0 -49
- data/lib/mongo/operation/commands/explain.rb +0 -27
- data/lib/mongo/operation/commands/explain/result.rb +0 -52
- data/lib/mongo/operation/commands/find/result.rb +0 -62
- data/lib/mongo/operation/commands/get_more.rb +0 -27
- data/lib/mongo/operation/commands/get_more/result.rb +0 -62
- data/lib/mongo/operation/commands/indexes.rb +0 -73
- data/lib/mongo/operation/commands/list_collections.rb +0 -48
- data/lib/mongo/operation/commands/list_collections/result.rb +0 -94
- data/lib/mongo/operation/commands/list_indexes.rb +0 -48
- data/lib/mongo/operation/commands/list_indexes/result.rb +0 -98
- data/lib/mongo/operation/commands/map_reduce.rb +0 -65
- data/lib/mongo/operation/commands/map_reduce/result.rb +0 -131
- data/lib/mongo/operation/commands/parallel_scan.rb +0 -54
- data/lib/mongo/operation/commands/parallel_scan/result.rb +0 -64
- data/lib/mongo/operation/commands/users_info.rb +0 -52
- data/lib/mongo/operation/read.rb +0 -16
- data/lib/mongo/operation/read/get_more.rb +0 -52
- data/lib/mongo/operation/read/query.rb +0 -55
- data/lib/mongo/operation/uses_command_op_msg.rb +0 -78
- data/lib/mongo/operation/write.rb +0 -22
- data/lib/mongo/operation/write/bulk.rb +0 -20
- data/lib/mongo/operation/write/bulk/bulkable.rb +0 -82
- data/lib/mongo/operation/write/bulk/delete.rb +0 -71
- data/lib/mongo/operation/write/bulk/delete/result.rb +0 -71
- data/lib/mongo/operation/write/bulk/insert.rb +0 -96
- data/lib/mongo/operation/write/bulk/insert/result.rb +0 -129
- data/lib/mongo/operation/write/bulk/legacy_mergable.rb +0 -87
- data/lib/mongo/operation/write/bulk/mergable.rb +0 -73
- data/lib/mongo/operation/write/bulk/update.rb +0 -81
- data/lib/mongo/operation/write/bulk/update/result.rb +0 -196
- data/lib/mongo/operation/write/command.rb +0 -23
- data/lib/mongo/operation/write/command/create_index.rb +0 -79
- data/lib/mongo/operation/write/command/create_user.rb +0 -61
- data/lib/mongo/operation/write/command/delete.rb +0 -79
- data/lib/mongo/operation/write/command/drop_index.rb +0 -80
- data/lib/mongo/operation/write/command/insert.rb +0 -69
- data/lib/mongo/operation/write/command/remove_user.rb +0 -60
- data/lib/mongo/operation/write/command/update.rb +0 -77
- data/lib/mongo/operation/write/command/update_user.rb +0 -61
- data/lib/mongo/operation/write/command/writable.rb +0 -70
- data/lib/mongo/operation/write/delete.rb +0 -75
- data/lib/mongo/operation/write/gle.rb +0 -49
- data/lib/mongo/operation/write/idable.rb +0 -63
- data/lib/mongo/operation/write/insert.rb +0 -74
- data/lib/mongo/operation/write/insert/result.rb +0 -62
- data/lib/mongo/operation/write/update.rb +0 -91
- data/lib/mongo/operation/write/write_command_enabled.rb +0 -77
@@ -0,0 +1,21 @@
|
|
1
|
+
topology_description:
|
2
|
+
type: Sharded
|
3
|
+
servers:
|
4
|
+
- &1
|
5
|
+
address: g:27017
|
6
|
+
avg_rtt_ms: 5
|
7
|
+
type: Mongos
|
8
|
+
- &2
|
9
|
+
address: h:27017
|
10
|
+
avg_rtt_ms: 35
|
11
|
+
type: Mongos
|
12
|
+
operation: read
|
13
|
+
read_preference:
|
14
|
+
mode: Nearest
|
15
|
+
tag_sets:
|
16
|
+
- data_center: nyc
|
17
|
+
suitable_servers:
|
18
|
+
- *1
|
19
|
+
- *2
|
20
|
+
in_latency_window:
|
21
|
+
- *1
|
@@ -0,0 +1,19 @@
|
|
1
|
+
topology_description:
|
2
|
+
type: Sharded
|
3
|
+
servers:
|
4
|
+
- &1
|
5
|
+
address: g:27017
|
6
|
+
avg_rtt_ms: 5
|
7
|
+
type: Mongos
|
8
|
+
- &2
|
9
|
+
address: h:27017
|
10
|
+
avg_rtt_ms: 35
|
11
|
+
type: Mongos
|
12
|
+
operation: read
|
13
|
+
read_preference:
|
14
|
+
mode: Primary
|
15
|
+
suitable_servers:
|
16
|
+
- *1
|
17
|
+
- *2
|
18
|
+
in_latency_window:
|
19
|
+
- *1
|
@@ -0,0 +1,21 @@
|
|
1
|
+
topology_description:
|
2
|
+
type: Sharded
|
3
|
+
servers:
|
4
|
+
- &1
|
5
|
+
address: g:27017
|
6
|
+
avg_rtt_ms: 5
|
7
|
+
type: Mongos
|
8
|
+
- &2
|
9
|
+
address: h:27017
|
10
|
+
avg_rtt_ms: 35
|
11
|
+
type: Mongos
|
12
|
+
operation: read
|
13
|
+
read_preference:
|
14
|
+
mode: PrimaryPreferred
|
15
|
+
tag_sets:
|
16
|
+
- data_center: nyc
|
17
|
+
suitable_servers:
|
18
|
+
- *1
|
19
|
+
- *2
|
20
|
+
in_latency_window:
|
21
|
+
- *1
|
@@ -0,0 +1,21 @@
|
|
1
|
+
topology_description:
|
2
|
+
type: Sharded
|
3
|
+
servers:
|
4
|
+
- &1
|
5
|
+
address: g:27017
|
6
|
+
avg_rtt_ms: 5
|
7
|
+
type: Mongos
|
8
|
+
- &2
|
9
|
+
address: h:27017
|
10
|
+
avg_rtt_ms: 35
|
11
|
+
type: Mongos
|
12
|
+
operation: read
|
13
|
+
read_preference:
|
14
|
+
mode: Secondary
|
15
|
+
tag_sets:
|
16
|
+
- data_center: nyc
|
17
|
+
suitable_servers:
|
18
|
+
- *1
|
19
|
+
- *2
|
20
|
+
in_latency_window:
|
21
|
+
- *1
|
@@ -1,4 +1,3 @@
|
|
1
|
-
---
|
2
1
|
topology_description:
|
3
2
|
type: Sharded
|
4
3
|
servers:
|
@@ -6,14 +5,10 @@ topology_description:
|
|
6
5
|
address: g:27017
|
7
6
|
avg_rtt_ms: 5
|
8
7
|
type: Mongos
|
9
|
-
tags:
|
10
|
-
data_center: nyc
|
11
8
|
- &2
|
12
9
|
address: h:27017
|
13
10
|
avg_rtt_ms: 35
|
14
11
|
type: Mongos
|
15
|
-
tags:
|
16
|
-
data_center: dc
|
17
12
|
operation: read
|
18
13
|
read_preference:
|
19
14
|
mode: SecondaryPreferred
|
@@ -117,17 +117,58 @@ shared_examples 'a failed operation using a session' do
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
shared_examples '
|
120
|
+
shared_examples 'an explicit session with an unacknowledged write' do
|
121
121
|
|
122
|
-
|
122
|
+
before do
|
123
|
+
EventSubscriber.clear_events!
|
124
|
+
end
|
125
|
+
|
126
|
+
context 'when sessions are supported', if: sessions_enabled? do
|
123
127
|
|
124
128
|
let(:session) do
|
125
|
-
client.start_session
|
129
|
+
client.start_session
|
130
|
+
end
|
131
|
+
|
132
|
+
it 'does not add a session id to the operation' do
|
133
|
+
operation
|
134
|
+
expect(EventSubscriber.started_events.collect(&:command).collect { |cmd| cmd['lsid'] }.compact).to be_empty
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
context 'when sessions are not supported', if: !sessions_enabled? do
|
139
|
+
|
140
|
+
let(:session) do
|
141
|
+
double('session').tap do |s|
|
142
|
+
allow(s).to receive(:validate!)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
it 'does not add a session id to the operation' do
|
147
|
+
operation
|
148
|
+
expect(EventSubscriber.started_events.collect(&:command).collect { |cmd| cmd['lsid'] }.compact).to be_empty
|
126
149
|
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
shared_examples 'an implicit session with an unacknowledged write' do
|
154
|
+
|
155
|
+
before do
|
156
|
+
EventSubscriber.clear_events!
|
157
|
+
end
|
158
|
+
|
159
|
+
context 'when sessions are supported', if: sessions_enabled? do
|
160
|
+
|
161
|
+
it 'does not add a session id to the operation' do
|
162
|
+
operation
|
163
|
+
expect(EventSubscriber.started_events.collect(&:command).collect { |cmd| cmd['lsid'] }.compact).to be_empty
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
context 'when sessions are not supported', if: !sessions_enabled? do
|
127
168
|
|
128
|
-
it 'does not
|
169
|
+
it 'does not add a session id to the operation' do
|
129
170
|
operation
|
130
|
-
expect(
|
171
|
+
expect(EventSubscriber.started_events.collect(&:command).collect { |cmd| cmd['lsid'] }.compact).to be_empty
|
131
172
|
end
|
132
173
|
end
|
133
174
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Brock
|
@@ -32,7 +32,7 @@ cert_chain:
|
|
32
32
|
3s0DZnO1KxiaSyKOest/k/qf2tqdbmmhZ+Kd8E2vMN9RuNjPzKRPtNsM4mZGKEog
|
33
33
|
p3shId/bDtqoYu1EX+ot1RmsQEYYUO6hhaNOm9WmvIs=
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date: 2018-
|
35
|
+
date: 2018-05-03 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bson
|
@@ -216,78 +216,118 @@ files:
|
|
216
216
|
- lib/mongo/monitoring/topology_changed_log_subscriber.rb
|
217
217
|
- lib/mongo/monitoring/topology_opening_log_subscriber.rb
|
218
218
|
- lib/mongo/operation.rb
|
219
|
-
- lib/mongo/operation/
|
220
|
-
- lib/mongo/operation/
|
221
|
-
- lib/mongo/operation/
|
222
|
-
- lib/mongo/operation/
|
223
|
-
- lib/mongo/operation/
|
224
|
-
- lib/mongo/operation/
|
225
|
-
- lib/mongo/operation/
|
226
|
-
- lib/mongo/operation/
|
227
|
-
- lib/mongo/operation/
|
228
|
-
- lib/mongo/operation/
|
229
|
-
- lib/mongo/operation/
|
230
|
-
- lib/mongo/operation/
|
231
|
-
- lib/mongo/operation/
|
232
|
-
- lib/mongo/operation/
|
233
|
-
- lib/mongo/operation/
|
234
|
-
- lib/mongo/operation/
|
235
|
-
- lib/mongo/operation/
|
236
|
-
- lib/mongo/operation/
|
237
|
-
- lib/mongo/operation/
|
238
|
-
- lib/mongo/operation/
|
239
|
-
- lib/mongo/operation/
|
240
|
-
- lib/mongo/operation/
|
241
|
-
- lib/mongo/operation/
|
242
|
-
- lib/mongo/operation/
|
243
|
-
- lib/mongo/operation/
|
244
|
-
- lib/mongo/operation/
|
245
|
-
- lib/mongo/operation/
|
246
|
-
- lib/mongo/operation/
|
247
|
-
- lib/mongo/operation/
|
248
|
-
- lib/mongo/operation/
|
219
|
+
- lib/mongo/operation/aggregate.rb
|
220
|
+
- lib/mongo/operation/aggregate/command.rb
|
221
|
+
- lib/mongo/operation/aggregate/op_msg.rb
|
222
|
+
- lib/mongo/operation/aggregate/result.rb
|
223
|
+
- lib/mongo/operation/collections_info.rb
|
224
|
+
- lib/mongo/operation/collections_info/result.rb
|
225
|
+
- lib/mongo/operation/command.rb
|
226
|
+
- lib/mongo/operation/command/command.rb
|
227
|
+
- lib/mongo/operation/command/op_msg.rb
|
228
|
+
- lib/mongo/operation/count.rb
|
229
|
+
- lib/mongo/operation/count/command.rb
|
230
|
+
- lib/mongo/operation/count/op_msg.rb
|
231
|
+
- lib/mongo/operation/create.rb
|
232
|
+
- lib/mongo/operation/create/command.rb
|
233
|
+
- lib/mongo/operation/create/op_msg.rb
|
234
|
+
- lib/mongo/operation/create_index.rb
|
235
|
+
- lib/mongo/operation/create_index/command.rb
|
236
|
+
- lib/mongo/operation/create_index/op_msg.rb
|
237
|
+
- lib/mongo/operation/create_user.rb
|
238
|
+
- lib/mongo/operation/create_user/command.rb
|
239
|
+
- lib/mongo/operation/create_user/op_msg.rb
|
240
|
+
- lib/mongo/operation/delete.rb
|
241
|
+
- lib/mongo/operation/delete/bulk_result.rb
|
242
|
+
- lib/mongo/operation/delete/command.rb
|
243
|
+
- lib/mongo/operation/delete/legacy.rb
|
244
|
+
- lib/mongo/operation/delete/op_msg.rb
|
245
|
+
- lib/mongo/operation/delete/result.rb
|
246
|
+
- lib/mongo/operation/distinct.rb
|
247
|
+
- lib/mongo/operation/distinct/command.rb
|
248
|
+
- lib/mongo/operation/distinct/op_msg.rb
|
249
|
+
- lib/mongo/operation/drop.rb
|
250
|
+
- lib/mongo/operation/drop/command.rb
|
251
|
+
- lib/mongo/operation/drop/op_msg.rb
|
252
|
+
- lib/mongo/operation/drop_database.rb
|
253
|
+
- lib/mongo/operation/drop_database/command.rb
|
254
|
+
- lib/mongo/operation/drop_database/op_msg.rb
|
255
|
+
- lib/mongo/operation/drop_index.rb
|
256
|
+
- lib/mongo/operation/drop_index/command.rb
|
257
|
+
- lib/mongo/operation/drop_index/op_msg.rb
|
258
|
+
- lib/mongo/operation/explain.rb
|
259
|
+
- lib/mongo/operation/explain/command.rb
|
260
|
+
- lib/mongo/operation/explain/legacy.rb
|
261
|
+
- lib/mongo/operation/explain/op_msg.rb
|
262
|
+
- lib/mongo/operation/explain/result.rb
|
263
|
+
- lib/mongo/operation/find.rb
|
264
|
+
- lib/mongo/operation/find/command.rb
|
265
|
+
- lib/mongo/operation/find/legacy.rb
|
266
|
+
- lib/mongo/operation/find/legacy/result.rb
|
267
|
+
- lib/mongo/operation/find/op_msg.rb
|
268
|
+
- lib/mongo/operation/find/result.rb
|
269
|
+
- lib/mongo/operation/get_more.rb
|
270
|
+
- lib/mongo/operation/get_more/command.rb
|
271
|
+
- lib/mongo/operation/get_more/legacy.rb
|
272
|
+
- lib/mongo/operation/get_more/op_msg.rb
|
273
|
+
- lib/mongo/operation/get_more/result.rb
|
274
|
+
- lib/mongo/operation/indexes.rb
|
275
|
+
- lib/mongo/operation/indexes/command.rb
|
276
|
+
- lib/mongo/operation/indexes/legacy.rb
|
277
|
+
- lib/mongo/operation/indexes/op_msg.rb
|
278
|
+
- lib/mongo/operation/indexes/result.rb
|
279
|
+
- lib/mongo/operation/insert.rb
|
280
|
+
- lib/mongo/operation/insert/bulk_result.rb
|
281
|
+
- lib/mongo/operation/insert/command.rb
|
282
|
+
- lib/mongo/operation/insert/legacy.rb
|
283
|
+
- lib/mongo/operation/insert/op_msg.rb
|
284
|
+
- lib/mongo/operation/insert/result.rb
|
249
285
|
- lib/mongo/operation/kill_cursors.rb
|
250
|
-
- lib/mongo/operation/
|
251
|
-
- lib/mongo/operation/
|
252
|
-
- lib/mongo/operation/
|
253
|
-
- lib/mongo/operation/
|
254
|
-
- lib/mongo/operation/
|
255
|
-
- lib/mongo/operation/
|
256
|
-
- lib/mongo/operation/
|
286
|
+
- lib/mongo/operation/kill_cursors/command.rb
|
287
|
+
- lib/mongo/operation/kill_cursors/legacy.rb
|
288
|
+
- lib/mongo/operation/kill_cursors/op_msg.rb
|
289
|
+
- lib/mongo/operation/list_collections.rb
|
290
|
+
- lib/mongo/operation/list_collections/command.rb
|
291
|
+
- lib/mongo/operation/list_collections/op_msg.rb
|
292
|
+
- lib/mongo/operation/list_collections/result.rb
|
293
|
+
- lib/mongo/operation/map_reduce.rb
|
294
|
+
- lib/mongo/operation/map_reduce/command.rb
|
295
|
+
- lib/mongo/operation/map_reduce/op_msg.rb
|
296
|
+
- lib/mongo/operation/map_reduce/result.rb
|
297
|
+
- lib/mongo/operation/parallel_scan.rb
|
298
|
+
- lib/mongo/operation/parallel_scan/command.rb
|
299
|
+
- lib/mongo/operation/parallel_scan/op_msg.rb
|
300
|
+
- lib/mongo/operation/parallel_scan/result.rb
|
301
|
+
- lib/mongo/operation/remove_user.rb
|
302
|
+
- lib/mongo/operation/remove_user/command.rb
|
303
|
+
- lib/mongo/operation/remove_user/op_msg.rb
|
257
304
|
- lib/mongo/operation/result.rb
|
258
|
-
- lib/mongo/operation/
|
259
|
-
- lib/mongo/operation/
|
260
|
-
- lib/mongo/operation/
|
261
|
-
- lib/mongo/operation/
|
262
|
-
- lib/mongo/operation/
|
263
|
-
- lib/mongo/operation/
|
264
|
-
- lib/mongo/operation/
|
265
|
-
- lib/mongo/operation/
|
266
|
-
- lib/mongo/operation/
|
267
|
-
- lib/mongo/operation/
|
268
|
-
- lib/mongo/operation/write
|
269
|
-
- lib/mongo/operation/
|
270
|
-
- lib/mongo/operation/
|
271
|
-
- lib/mongo/operation/
|
272
|
-
- lib/mongo/operation/
|
273
|
-
- lib/mongo/operation/
|
274
|
-
- lib/mongo/operation/
|
275
|
-
- lib/mongo/operation/
|
276
|
-
- lib/mongo/operation/
|
277
|
-
- lib/mongo/operation/
|
278
|
-
- lib/mongo/operation/
|
279
|
-
- lib/mongo/operation/
|
280
|
-
- lib/mongo/operation/
|
281
|
-
- lib/mongo/operation/
|
282
|
-
- lib/mongo/operation/
|
283
|
-
- lib/mongo/operation/
|
284
|
-
- lib/mongo/operation/write/gle.rb
|
285
|
-
- lib/mongo/operation/write/idable.rb
|
286
|
-
- lib/mongo/operation/write/insert.rb
|
287
|
-
- lib/mongo/operation/write/insert/result.rb
|
288
|
-
- lib/mongo/operation/write/update.rb
|
289
|
-
- lib/mongo/operation/write/update/result.rb
|
290
|
-
- lib/mongo/operation/write/write_command_enabled.rb
|
305
|
+
- lib/mongo/operation/shared/bypass_document_validation.rb
|
306
|
+
- lib/mongo/operation/shared/causal_consistency_supported.rb
|
307
|
+
- lib/mongo/operation/shared/executable.rb
|
308
|
+
- lib/mongo/operation/shared/idable.rb
|
309
|
+
- lib/mongo/operation/shared/limited.rb
|
310
|
+
- lib/mongo/operation/shared/object_id_generator.rb
|
311
|
+
- lib/mongo/operation/shared/read_preference_supported.rb
|
312
|
+
- lib/mongo/operation/shared/result/aggregatable.rb
|
313
|
+
- lib/mongo/operation/shared/sessions_supported.rb
|
314
|
+
- lib/mongo/operation/shared/specifiable.rb
|
315
|
+
- lib/mongo/operation/shared/write.rb
|
316
|
+
- lib/mongo/operation/shared/write_concern_supported.rb
|
317
|
+
- lib/mongo/operation/update.rb
|
318
|
+
- lib/mongo/operation/update/bulk_result.rb
|
319
|
+
- lib/mongo/operation/update/command.rb
|
320
|
+
- lib/mongo/operation/update/legacy.rb
|
321
|
+
- lib/mongo/operation/update/legacy/result.rb
|
322
|
+
- lib/mongo/operation/update/op_msg.rb
|
323
|
+
- lib/mongo/operation/update/result.rb
|
324
|
+
- lib/mongo/operation/update_user.rb
|
325
|
+
- lib/mongo/operation/update_user/command.rb
|
326
|
+
- lib/mongo/operation/update_user/op_msg.rb
|
327
|
+
- lib/mongo/operation/users_info.rb
|
328
|
+
- lib/mongo/operation/users_info/command.rb
|
329
|
+
- lib/mongo/operation/users_info/op_msg.rb
|
330
|
+
- lib/mongo/operation/users_info/result.rb
|
291
331
|
- lib/mongo/options.rb
|
292
332
|
- lib/mongo/options/mapper.rb
|
293
333
|
- lib/mongo/options/redacted.rb
|
@@ -413,33 +453,36 @@ files:
|
|
413
453
|
- spec/mongo/monitoring/event/command_succeeded_spec.rb
|
414
454
|
- spec/mongo/monitoring/event/secure_spec.rb
|
415
455
|
- spec/mongo/monitoring_spec.rb
|
416
|
-
- spec/mongo/operation/
|
417
|
-
- spec/mongo/operation/
|
418
|
-
- spec/mongo/operation/
|
419
|
-
- spec/mongo/operation/
|
420
|
-
- spec/mongo/operation/
|
421
|
-
- spec/mongo/operation/
|
456
|
+
- spec/mongo/operation/aggregate/result_spec.rb
|
457
|
+
- spec/mongo/operation/aggregate_spec.rb
|
458
|
+
- spec/mongo/operation/collections_info_spec.rb
|
459
|
+
- spec/mongo/operation/command_spec.rb
|
460
|
+
- spec/mongo/operation/create_index_spec.rb
|
461
|
+
- spec/mongo/operation/create_user_spec.rb
|
462
|
+
- spec/mongo/operation/delete/bulk_spec.rb
|
463
|
+
- spec/mongo/operation/delete/command_spec.rb
|
464
|
+
- spec/mongo/operation/delete/op_msg_spec.rb
|
465
|
+
- spec/mongo/operation/delete_spec.rb
|
466
|
+
- spec/mongo/operation/drop_index_spec.rb
|
467
|
+
- spec/mongo/operation/find/legacy_spec.rb
|
468
|
+
- spec/mongo/operation/get_more_spec.rb
|
469
|
+
- spec/mongo/operation/indexes_spec.rb
|
470
|
+
- spec/mongo/operation/insert/bulk_spec.rb
|
471
|
+
- spec/mongo/operation/insert/command_spec.rb
|
472
|
+
- spec/mongo/operation/insert/op_msg_spec.rb
|
473
|
+
- spec/mongo/operation/insert_spec.rb
|
422
474
|
- spec/mongo/operation/kill_cursors_spec.rb
|
423
475
|
- spec/mongo/operation/limited_spec.rb
|
424
|
-
- spec/mongo/operation/
|
425
|
-
- spec/mongo/operation/read/query_spec.rb
|
476
|
+
- spec/mongo/operation/map_reduce_spec.rb
|
426
477
|
- spec/mongo/operation/read_preference_spec.rb
|
478
|
+
- spec/mongo/operation/remove_user_spec.rb
|
427
479
|
- spec/mongo/operation/result_spec.rb
|
428
480
|
- spec/mongo/operation/specifiable_spec.rb
|
429
|
-
- spec/mongo/operation/
|
430
|
-
- spec/mongo/operation/
|
431
|
-
- spec/mongo/operation/
|
432
|
-
- spec/mongo/operation/
|
433
|
-
- spec/mongo/operation/
|
434
|
-
- spec/mongo/operation/write/command/drop_index_spec.rb
|
435
|
-
- spec/mongo/operation/write/command/insert_spec.rb
|
436
|
-
- spec/mongo/operation/write/command/remove_user_spec.rb
|
437
|
-
- spec/mongo/operation/write/command/update_spec.rb
|
438
|
-
- spec/mongo/operation/write/command/update_user_spec.rb
|
439
|
-
- spec/mongo/operation/write/create_user_spec.rb
|
440
|
-
- spec/mongo/operation/write/delete_spec.rb
|
441
|
-
- spec/mongo/operation/write/insert_spec.rb
|
442
|
-
- spec/mongo/operation/write/update_spec.rb
|
481
|
+
- spec/mongo/operation/update/bulk_spec.rb
|
482
|
+
- spec/mongo/operation/update/command_spec.rb
|
483
|
+
- spec/mongo/operation/update/op_msg_spec.rb
|
484
|
+
- spec/mongo/operation/update_spec.rb
|
485
|
+
- spec/mongo/operation/update_user_spec.rb
|
443
486
|
- spec/mongo/options/redacted_spec.rb
|
444
487
|
- spec/mongo/protocol/compressed_spec.rb
|
445
488
|
- spec/mongo/protocol/delete_spec.rb
|
@@ -706,6 +749,8 @@ files:
|
|
706
749
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest.yml
|
707
750
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest_multiple.yml
|
708
751
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest_non_matching.yml
|
752
|
+
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PossiblePrimary.yml
|
753
|
+
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PossiblePrimaryNearest.yml
|
709
754
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Primary.yml
|
710
755
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PrimaryPreferred.yml
|
711
756
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PrimaryPreferred_non_matching.yml
|
@@ -726,6 +771,10 @@ files:
|
|
726
771
|
- spec/support/server_selection/selection/ReplicaSetWithPrimary/read/SecondaryPreferred_non_matching.yml
|
727
772
|
- spec/support/server_selection/selection/ReplicaSetWithPrimary/read/SecondaryPreferred_tags.yml
|
728
773
|
- spec/support/server_selection/selection/ReplicaSetWithPrimary/read/Secondary_non_matching.yml
|
774
|
+
- spec/support/server_selection/selection/Sharded/read/Nearest.yml
|
775
|
+
- spec/support/server_selection/selection/Sharded/read/Primary.yml
|
776
|
+
- spec/support/server_selection/selection/Sharded/read/PrimaryPreferred.yml
|
777
|
+
- spec/support/server_selection/selection/Sharded/read/Secondary.yml
|
729
778
|
- spec/support/server_selection/selection/Sharded/read/SecondaryPreferred.yml
|
730
779
|
- spec/support/server_selection/selection/Single/read/SecondaryPreferred.yml
|
731
780
|
- spec/support/server_selection/selection/Unknown/read/SecondaryPreferred.yml
|
@@ -874,6 +923,10 @@ test_files:
|
|
874
923
|
- spec/support/server_selection/rtt/value_test_4.yml
|
875
924
|
- spec/support/server_selection/rtt/value_test_5.yml
|
876
925
|
- spec/support/server_selection/rtt/first_value_zero.yml
|
926
|
+
- spec/support/server_selection/selection/Sharded/read/Primary.yml
|
927
|
+
- spec/support/server_selection/selection/Sharded/read/Secondary.yml
|
928
|
+
- spec/support/server_selection/selection/Sharded/read/PrimaryPreferred.yml
|
929
|
+
- spec/support/server_selection/selection/Sharded/read/Nearest.yml
|
877
930
|
- spec/support/server_selection/selection/Sharded/read/SecondaryPreferred.yml
|
878
931
|
- spec/support/server_selection/selection/Single/read/SecondaryPreferred.yml
|
879
932
|
- spec/support/server_selection/selection/Unknown/read/SecondaryPreferred.yml
|
@@ -892,8 +945,10 @@ test_files:
|
|
892
945
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest_non_matching.yml
|
893
946
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Secondary_non_matching.yml
|
894
947
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Secondary_multi_tags.yml
|
948
|
+
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PossiblePrimaryNearest.yml
|
895
949
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest_multiple.yml
|
896
950
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Primary.yml
|
951
|
+
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PossiblePrimary.yml
|
897
952
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Secondary.yml
|
898
953
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/PrimaryPreferred.yml
|
899
954
|
- spec/support/server_selection/selection/ReplicaSetNoPrimary/read/Nearest.yml
|
@@ -1009,32 +1064,35 @@ test_files:
|
|
1009
1064
|
- spec/support/connection_string_tests/valid-options.yml
|
1010
1065
|
- spec/support/connection_string_tests/valid-unix_socket-absolute.yml
|
1011
1066
|
- spec/support/connection_string_tests/invalid-uris.yml
|
1012
|
-
- spec/mongo/operation/write/delete_spec.rb
|
1013
|
-
- spec/mongo/operation/write/bulk/delete_spec.rb
|
1014
|
-
- spec/mongo/operation/write/bulk/update_spec.rb
|
1015
|
-
- spec/mongo/operation/write/bulk/insert_spec.rb
|
1016
|
-
- spec/mongo/operation/write/update_spec.rb
|
1017
|
-
- spec/mongo/operation/write/insert_spec.rb
|
1018
|
-
- spec/mongo/operation/write/command/delete_spec.rb
|
1019
|
-
- spec/mongo/operation/write/command/drop_index_spec.rb
|
1020
|
-
- spec/mongo/operation/write/command/create_index_spec.rb
|
1021
|
-
- spec/mongo/operation/write/command/update_spec.rb
|
1022
|
-
- spec/mongo/operation/write/command/remove_user_spec.rb
|
1023
|
-
- spec/mongo/operation/write/command/insert_spec.rb
|
1024
|
-
- spec/mongo/operation/write/command/update_user_spec.rb
|
1025
|
-
- spec/mongo/operation/write/create_user_spec.rb
|
1026
1067
|
- spec/mongo/operation/read_preference_spec.rb
|
1027
|
-
- spec/mongo/operation/
|
1028
|
-
- spec/mongo/operation/
|
1068
|
+
- spec/mongo/operation/collections_info_spec.rb
|
1069
|
+
- spec/mongo/operation/delete_spec.rb
|
1070
|
+
- spec/mongo/operation/drop_index_spec.rb
|
1071
|
+
- spec/mongo/operation/insert/bulk_spec.rb
|
1072
|
+
- spec/mongo/operation/insert/command_spec.rb
|
1073
|
+
- spec/mongo/operation/insert/op_msg_spec.rb
|
1074
|
+
- spec/mongo/operation/aggregate_spec.rb
|
1075
|
+
- spec/mongo/operation/update/bulk_spec.rb
|
1076
|
+
- spec/mongo/operation/update/command_spec.rb
|
1077
|
+
- spec/mongo/operation/update/op_msg_spec.rb
|
1078
|
+
- spec/mongo/operation/delete/bulk_spec.rb
|
1079
|
+
- spec/mongo/operation/delete/command_spec.rb
|
1080
|
+
- spec/mongo/operation/delete/op_msg_spec.rb
|
1081
|
+
- spec/mongo/operation/aggregate/result_spec.rb
|
1082
|
+
- spec/mongo/operation/map_reduce_spec.rb
|
1083
|
+
- spec/mongo/operation/create_index_spec.rb
|
1084
|
+
- spec/mongo/operation/update_spec.rb
|
1085
|
+
- spec/mongo/operation/remove_user_spec.rb
|
1029
1086
|
- spec/mongo/operation/specifiable_spec.rb
|
1030
1087
|
- spec/mongo/operation/result_spec.rb
|
1088
|
+
- spec/mongo/operation/command_spec.rb
|
1089
|
+
- spec/mongo/operation/get_more_spec.rb
|
1090
|
+
- spec/mongo/operation/insert_spec.rb
|
1031
1091
|
- spec/mongo/operation/limited_spec.rb
|
1032
|
-
- spec/mongo/operation/
|
1033
|
-
- spec/mongo/operation/
|
1034
|
-
- spec/mongo/operation/
|
1035
|
-
- spec/mongo/operation/
|
1036
|
-
- spec/mongo/operation/commands/command_spec.rb
|
1037
|
-
- spec/mongo/operation/commands/indexes_spec.rb
|
1092
|
+
- spec/mongo/operation/indexes_spec.rb
|
1093
|
+
- spec/mongo/operation/find/legacy_spec.rb
|
1094
|
+
- spec/mongo/operation/update_user_spec.rb
|
1095
|
+
- spec/mongo/operation/create_user_spec.rb
|
1038
1096
|
- spec/mongo/operation/kill_cursors_spec.rb
|
1039
1097
|
- spec/mongo/session_spec.rb
|
1040
1098
|
- spec/mongo/collection_spec.rb
|