Skip to content

Commit

Permalink
Generated Ml Namespace Endpoints Using OpenSearch API Specifications
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Jul 15, 2024
1 parent b4f3a4b commit 650878e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Endpoints/MlNamespaceIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testRegisterModelGroup()
{
$client = Utility::getClient();

if (!Utility::isOpenSearchVersionAtLeast($client, '2.8.0')) {
if (!Utility::isOpenSearchVersionAtLeast($client, '2.8.0') || $client->isOpenSearchVersion('2.x') || $client->isOpenSearchVersion('main')) {

Check failure on line 33 in tests/Endpoints/MlNamespaceIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method OpenSearch\Client::isOpenSearchVersion().

Check failure on line 33 in tests/Endpoints/MlNamespaceIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method OpenSearch\Client::isOpenSearchVersion().
$this->markTestSkipped('Ml plugin tests require OpenSearch >= 2.8.0');
}

Expand All @@ -47,7 +47,7 @@ public function testgetModels()
{
$client = Utility::getClient();

if (!Utility::isOpenSearchVersionAtLeast($client, '2.12.0')) {
if (!Utility::isOpenSearchVersionAtLeast($client, '2.12.0') || $client->isOpenSearchVersion('2.x') || $client->isOpenSearchVersion('main')) {

Check failure on line 50 in tests/Endpoints/MlNamespaceIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method OpenSearch\Client::isOpenSearchVersion().

Check failure on line 50 in tests/Endpoints/MlNamespaceIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method OpenSearch\Client::isOpenSearchVersion().
$this->markTestSkipped('Ml plugin tests require OpenSearch >= 2.12.0');
}

Expand All @@ -59,7 +59,7 @@ public function testsearchModels()
{
$client = Utility::getClient();

if (!Utility::isOpenSearchVersionAtLeast($client, '2.12.0')) {
if (!Utility::isOpenSearchVersionAtLeast($client, '2.12.0') || $client->isOpenSearchVersion('2.x') || $client->isOpenSearchVersion('main')) {

Check failure on line 62 in tests/Endpoints/MlNamespaceIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method OpenSearch\Client::isOpenSearchVersion().

Check failure on line 62 in tests/Endpoints/MlNamespaceIntegrationTest.php

View workflow job for this annotation

GitHub Actions / PHPStan

Call to an undefined method OpenSearch\Client::isOpenSearchVersion().
$this->markTestSkipped('Ml plugin tests require OpenSearch >= 2.12.0');
}

Expand Down

0 comments on commit 650878e

Please sign in to comment.