Last active
March 26, 2021 13:32
-
-
Save ismail1432/609c48b5312f3a16160a488baac0cb48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Search Api | |
In order to store document in Elasticsearch | |
As a developer | |
I want to partially update document into Elasticsearch | |
# Publish the message | |
Given I publish in 'search_indexing' messenger queue the following message: | |
| App\SearchBundle\Message\SearchIndexationMessage | {"type":"Product","operation":"UPDATE", "id": 42, "title": "Foo", "reference": null} | | |
# Consume the message | |
And I consume 1 messages in search_indexing messenger queue | |
# Check that resource is up to date in Elasticearch | |
Then I send a "GET" request to "http://elasticsearch:9200/product/_doc/00000000-0000-4000-a000-000000000042" | |
And the JSON nodes should contain: | |
| _source.productCategory.title | Foo | | |
And the JSON node "_source.reference" should be null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment