Skip to content

Commit

Permalink
fix wording in updateSearchIndexes
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jul 21, 2023
1 parent 78554de commit 48a2d61
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions source/index-management/tests/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Case 1: Driver can successfully create and list search indexes
#. Assert that the command returns the name of the index: ``"test-search-index"``.
#. Run ``coll0.listSearchIndexes()`` repeatedly every 5 seconds until the following condition is satisfied:
1. An index with the ``name`` of ``test-search-index`` is present and index has the field ``queryable`` with a value of ``true``.
1. An index with the ``name`` of ``test-search-index`` is present and the index has a field ``queryable`` with a value of ``true``.

#. Assert that ``index`` has a property ``mappings`` whose value is ``{ dynamic: false }``

Expand Down Expand Up @@ -122,8 +122,8 @@ Case 2: Driver can successfully create multiple indexes in batch
#. Assert that the command returns an array containing the new indexes' names: ``["test-search-index-1", "test-search-index-2"]``.
#. Run ``coll0.listSearchIndexes()`` repeatedly every 5 seconds until the following condition is satisfied. Store
the result in ``indexes``.
1. An index with the ``name`` of ``test-search-index-1`` is present and index has the field ``queryable`` with a value of ``true``.
2. An index with the ``name`` of ``test-search-index-2`` is present and index has the field ``queryable`` with a value of ``true``.
1. An index with the ``name`` of ``test-search-index-1`` is present and index has a field ``queryable`` with the value of ``true``.
2. An index with the ``name`` of ``test-search-index-2`` is present and index has a field ``queryable`` with the value of ``true``.
#. For each ``index`` in ``indexDefinitions``
1. Find the matching index definition in ``indexes`` by matching on ``index.name``. If no index exists, raise an error.
2. Assert that the matching index ``mappings``, whose value is ``{ dynamic: false }``
Expand All @@ -145,7 +145,7 @@ Case 3: Driver can successfully drop search indexes
#. Assert that the command returns the name of the index: ``"test-search-index"``.
#. Run ``coll0.listSearchIndexes()`` repeatedly every 5 seconds until the following condition is satisfied:
1. An index with the ``name`` of ``test-search-index`` is present and index has the field ``queryable`` with a value of ``true``.
1. An index with the ``name`` of ``test-search-index`` is present and index has a field ``queryable`` with the value of ``true``.

#. Run a ``dropSearchIndexes`` on ``coll0``, using ``test-search-index`` for the name.
#. Run ``coll0.listSearchIndexes()`` repeatedly every 5 seconds until ``listSearchIndexes`` returns an empty array.
Expand All @@ -169,7 +169,7 @@ Case 4: Driver can update a search index
#. Assert that the command returns the name of the index: ``"test-search-index"``.
#. Run ``coll0.listSearchIndexes()`` repeatedly every 5 seconds until the following condition is satisfied:
1. An index with the ``name`` of ``test-search-index`` is present and index has the field ``queryable`` with a value of ``true``.
1. An index with the ``name`` of ``test-search-index`` is present and index has a field ``queryable`` with the value of ``true``.

#. Run a ``updateSearchIndex`` on ``coll0``, using the following definition.

Expand All @@ -185,8 +185,7 @@ Case 4: Driver can update a search index
#. Assert that the command does not error and the server responds with a success.
#. Run ``coll0.listSearchIndexes()`` repeatedly every 5 seconds until the following condition is satisfied:
1. An index with the ``name`` of ``test-search-index`` is present. This index is referred to as ``index``.
2. The index has a field ``queryable`` with a value of ``true``.
3. The index has a ``latestDefinition`` property. The ``latestDefinition`` field has a property ``status`` with the value of ``READY``.
2. The index has a field ``queryable`` with a value of ``true`` and has a field ``status`` with the value of ``READY``.

#. Assert that an index is present with the name ``test-search-index`` and the definition has a
property ``mappings``, whose value is ``{ dynamic: true }``
Expand Down

0 comments on commit 48a2d61

Please sign in to comment.