Skip to content

Commit

Permalink
address Daria's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jul 24, 2023
1 parent 48a2d61 commit 0d8639a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion source/index-management/index-management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ write concern are not relevant for the search index management commands.
Consistency with Existing APIs
------------------------------
Drivers SHOULD strive for a search index management API that is as consistent with their existing search index management API as much as possible.
Drivers SHOULD strive for a search index management API that is as consistent with their existing index management API as much as possible.
NamespaceNotFound Errors
Expand Down
8 changes: 4 additions & 4 deletions source/index-management/tests/createSearchIndex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ tests:
arguments:
model: { definition: &definition { mappings: { dynamic: true } } }
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand All @@ -48,8 +48,8 @@ tests:
arguments:
model: { definition: &definition { mappings: { dynamic: true } } , name: 'test index' }
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand Down
12 changes: 6 additions & 6 deletions source/index-management/tests/createSearchIndexes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ tests:
arguments:
models: []
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand All @@ -49,8 +49,8 @@ tests:
arguments:
models: [ { definition: &definition { mappings: { dynamic: true } } } ]
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand All @@ -69,8 +69,8 @@ tests:
arguments:
models: [ { definition: &definition { mappings: { dynamic: true } } , name: 'test index' } ]
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand Down
4 changes: 2 additions & 2 deletions source/index-management/tests/dropSearchIndex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ tests:
arguments:
name: &indexName 'test index'
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand Down
12 changes: 6 additions & 6 deletions source/index-management/tests/listSearchIndexes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ tests:
- name: listSearchIndexes
object: *collection0
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand All @@ -46,8 +46,8 @@ tests:
arguments:
name: &indexName "test index"
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand All @@ -69,8 +69,8 @@ tests:
aggregationOptions:
batchSize: 10
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand Down
4 changes: 2 additions & 2 deletions source/index-management/tests/updateSearchIndex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ tests:
name: &indexName 'test index'
definition: &definition {}
expectError:
# Search indexes are only available on 7.0+ atlas clusters. DRIVERS-2630 will add e2e testing
# against an Atlas cluster and the expectError will be removed.
# This test always errors in a non-Atlas environment. The test functions as a unit test by asserting
# that the driver constructs and sends the correct command.
isError: true
errorContains: Search index commands are only supported with Atlas
expectEvents:
Expand Down

0 comments on commit 0d8639a

Please sign in to comment.