diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index bbf78b6d5..0eedaed4c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -51,20 +51,20 @@ jobs: ref: branch_8_11 path: lucene-solr - - name: Checkout solr 9.7 + - name: Checkout solr 9.8 if: matrix.solr == 9 uses: actions/checkout@v4 with: repository: apache/solr - ref: branch_9_7 + ref: branch_9_8 path: lucene-solr - name: Start Solr ${{ matrix.solr }} in ${{ matrix.mode }} mode run: | chmod -R a+w lucene-solr cd lucene-solr - patch -p1 < ../tests/Integration/Fixtures/solrconf.patch - patch -p1 < ../tests/Integration/Fixtures/schema${{ matrix.solr }}.patch + patch -p1 < ../tests/Integration/Fixtures/conf/solrconf${{ matrix.solr }}.patch + patch -p1 < ../tests/Integration/Fixtures/conf/schema${{ matrix.solr }}.patch cd solr/server/solr/configsets/sample_techproducts_configs/conf zip -r techproducts.zip * cd - diff --git a/tests/Integration/AbstractTechproductsTestCase.php b/tests/Integration/AbstractTechproductsTestCase.php index 4ae7ed9ed..5c4bd2f6a 100644 --- a/tests/Integration/AbstractTechproductsTestCase.php +++ b/tests/Integration/AbstractTechproductsTestCase.php @@ -172,6 +172,18 @@ public static function setUpBeforeClass(): void self::$client->update($update); } + // UTF8TEST was removed for Solr 9.8 in SOLR-17556 + if (9 <= self::$solrVersion) { + $update = self::$client->createUpdate(); + + $utf8test = $update->createDocument(); + $utf8test->setField('id', 'UTF8TEST'); + $utf8test->setField('features', 'êâîôû'); + + $update->addDocument($utf8test); + self::$client->update($update); + } + $update = self::$client->createUpdate(); $update->addCommit(false, true); self::$client->update($update); diff --git a/tests/Integration/Fixtures/schema7.patch b/tests/Integration/Fixtures/conf/schema7.patch similarity index 100% rename from tests/Integration/Fixtures/schema7.patch rename to tests/Integration/Fixtures/conf/schema7.patch diff --git a/tests/Integration/Fixtures/schema8.patch b/tests/Integration/Fixtures/conf/schema8.patch similarity index 100% rename from tests/Integration/Fixtures/schema8.patch rename to tests/Integration/Fixtures/conf/schema8.patch diff --git a/tests/Integration/Fixtures/schema9.patch b/tests/Integration/Fixtures/conf/schema9.patch similarity index 100% rename from tests/Integration/Fixtures/schema9.patch rename to tests/Integration/Fixtures/conf/schema9.patch diff --git a/tests/Integration/Fixtures/solrconf.patch b/tests/Integration/Fixtures/conf/solrconf7.patch similarity index 96% rename from tests/Integration/Fixtures/solrconf.patch rename to tests/Integration/Fixtures/conf/solrconf7.patch index 4b9ce49cd..eb290bacf 100644 --- a/tests/Integration/Fixtures/solrconf.patch +++ b/tests/Integration/Fixtures/conf/solrconf7.patch @@ -1,20 +1,20 @@ diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml -index 06ac9b3d2e6..087287d2339 100644 +index 1570be4870b..3eab43beead 100644 --- a/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml +++ b/solr/server/solr/configsets/sample_techproducts_configs/conf/solrconfig.xml @@ -86,6 +86,8 @@ - + + + - + + + @@ -49,5 +49,5 @@ index 06ac9b3d2e6..087287d2339 100644 + + + ++ ++ ++ ++ ++ ++ ++ explicit ++ ++ ++ text ++ edismax ++ ++ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 ++ title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0 ++ ++ 100% ++ *:* ++ 10 ++ *,score ++ ++ on ++ on ++ on ++ ++ ++ ++ ++ spellcheck ++ ++ ++ + ++ ++ ++ ++ ++ ++ explicit ++ ++ ++ text ++ edismax ++ ++ text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 ++ title^10.0 description^5.0 keywords^5.0 author^2.0 resourcename^1.0 ++ ++ 100% ++ *:* ++ 10 ++ *,score ++ ++ on ++ on ++ on ++ ++ ++ ++ ++ spellcheck ++ ++ ++ +