Skip to content

Commit

Permalink
IBX-6507: Multirepo setup for Solr & ES
Browse files Browse the repository at this point in the history
  • Loading branch information
micszo committed Feb 26, 2024
1 parent 2e606f0 commit 47e2185
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions features/setup/multirepository/multirepository_elastic.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Feature: Multirepository setup for testing with Elastic

@multirepository
Scenario: Set up new connection and make the default one unaccessible
Given I set configuration to "ibexa_elasticsearch.connections" in "config/packages/ibexa_elasticsearch.yaml"
"""
default:
hosts:
- "%elasticsearch_dsn_invalid%"
second_connection:
hosts:
- "%elasticsearch_dsn%"
"""
30 changes: 30 additions & 0 deletions features/setup/multirepository/multirepository_solr.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Feature: Multirepository setup for testing with Solr

@multirepository
Scenario: Set up new connection and make the default one unaccessible
Given I append configuration to "parameters" in "config/packages/ibexa_solr.yaml"
"""
solr_dsn_invalid: 'INVALID'
solr_core_invalid: 'INVALID'
"""
And I set configuration to "ibexa_solr" in "config/packages/ibexa_solr.yaml"
"""
endpoints:
endpoint0:
dsn: '%solr_dsn%'
core: '%solr_core%'
endpoint1_invalid:
dsn: '%solr_dsn_invalid%'
core: '%solr_core_invalid%'
connections:
default:
entry_endpoints::
- endpoint1_invalid
mapping:
- default: endpoint1_invalid
second_connection:
entry_endpoints::
- endpoint0
mapping:
- default: endpoint0
"""

0 comments on commit 47e2185

Please sign in to comment.