Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update dependencies and test
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-gao committed Aug 13, 2021
1 parent fb7bf89 commit 98c9ad8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
11 changes: 2 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,13 @@
"license": "GPL-2.0-or-later",
"require": {
"drupal/search_api": "^1.11",
"drupal/elasticsearch_connector": "^6.0-alpha2",
"dpc-sdp/tide_core": "^2.0.0"
"drupal/elasticsearch_connector": "^7.0",
"dpc-sdp/tide_core": "dev-feature/SDPA-5396-drupalcore-9 as 2.0.14"
},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"extra": {
"patches": {
"drupal/elasticsearch_connector": {
"deleteMapping() throws undefined error - https://www.drupal.org/project/elasticsearch_connector/issues/2824539": "https://www.drupal.org/files/issues/2021-07-20/%5BdeleteMapping-throws-undefined-error%5D-%5B3224368%5D-%5B1%5D_0.patch"
}
}
}
}
1 change: 1 addition & 0 deletions dev-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
#
# Uncomment and set the Dev-Tools's commit value and commit this change.
# export GH_COMMIT=COMMIT_SHA
export GH_COMMIT=a246dd0ddce06481c38f952f9286cda0b31a9d05

bash <(curl -L https://raw.githubusercontent.com/dpc-sdp/dev-tools/master/install?"$(date +%s)") "$@"
4 changes: 2 additions & 2 deletions tests/behat/features/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Feature: Ensure Search API on Bay Elasticsearch work.
And I save screenshot

When I send a GET request to "http://elasticsearch:9200/elasticsearch_index_drupal_node/_search?q=title:testtitlepublished"
Then the rest response status code should be 200
Then the response status code should be 200
And the response should be in JSON
And the JSON node "hits" should exist
And the JSON node "hits.hits" should exist
Expand All @@ -61,7 +61,7 @@ Feature: Ensure Search API on Bay Elasticsearch work.

# Unpublished Test content should not be in search results.
When I send a GET request to "http://elasticsearch:9200/elasticsearch_index_drupal_node/_search?q=title:testtitlepublished"
Then the rest response status code should be 200
Then the response status code should be 200
And the response should be in JSON
And the JSON node "hits" should exist
And the JSON node "hits.total" should be equal to "0"

0 comments on commit 98c9ad8

Please sign in to comment.