diff --git a/tests/e2e/Scopes/RequiresDocumentsDB.php b/tests/e2e/Scopes/RequiresDocumentsDB.php new file mode 100644 index 0000000000..a89ff88322 --- /dev/null +++ b/tests/e2e/Scopes/RequiresDocumentsDB.php @@ -0,0 +1,45 @@ +client->call(Client::METHOD_POST, '/documentsdb', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'databaseId' => ID::custom('documentsdb-probe'), + 'name' => 'Probe', + ]); + self::$documentsDBAvailable = $response['headers']['status-code'] < 500; + + if (self::$documentsDBAvailable) { + $this->client->call(Client::METHOD_DELETE, '/documentsdb/documentsdb-probe', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + } + } + + if (!self::$documentsDBAvailable) { + $this->markTestSkipped('DocumentsDB backend (MongoDB) is not available in this CI environment.'); + } + } +} diff --git a/tests/e2e/Scopes/RequiresVectorsDB.php b/tests/e2e/Scopes/RequiresVectorsDB.php new file mode 100644 index 0000000000..8d4fec003a --- /dev/null +++ b/tests/e2e/Scopes/RequiresVectorsDB.php @@ -0,0 +1,45 @@ +client->call(Client::METHOD_POST, '/vectorsdb', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ], [ + 'databaseId' => ID::custom('vectorsdb-probe'), + 'name' => 'Probe', + ]); + self::$vectorsDBAvailable = $response['headers']['status-code'] < 500; + + if (self::$vectorsDBAvailable) { + $this->client->call(Client::METHOD_DELETE, '/vectorsdb/vectorsdb-probe', [ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + 'x-appwrite-key' => $this->getProject()['apiKey'], + ]); + } + } + + if (!self::$vectorsDBAvailable) { + $this->markTestSkipped('VectorsDB backend (PostgreSQL) is not available in this CI environment.'); + } + } +} diff --git a/tests/e2e/Services/Databases/DatabasesBase.php b/tests/e2e/Services/Databases/DatabasesBase.php index 628928914f..ead5b814cb 100644 --- a/tests/e2e/Services/Databases/DatabasesBase.php +++ b/tests/e2e/Services/Databases/DatabasesBase.php @@ -61,6 +61,10 @@ trait DatabasesBase 'name' => 'Test Database' ]); + if ($database['headers']['status-code'] >= 500) { + $this->markTestSkipped('Database backend for ' . $this->getApiBasePath() . ' is not available in this CI environment.'); + } + $this->assertNotEmpty($database['body']['$id']); $this->assertEquals(201, $database['headers']['status-code']); diff --git a/tests/e2e/Services/Databases/DocumentsDBConsoleClientTest.php b/tests/e2e/Services/Databases/DocumentsDBConsoleClientTest.php index 895cf67490..82b5cc825c 100644 --- a/tests/e2e/Services/Databases/DocumentsDBConsoleClientTest.php +++ b/tests/e2e/Services/Databases/DocumentsDBConsoleClientTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideConsole; @@ -11,6 +12,7 @@ class DocumentsDBConsoleClientTest extends Scope { use DatabasesBase; use ProjectCustom; + use RequiresDocumentsDB; use SideConsole; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/DocumentsDBCustomClientTest.php b/tests/e2e/Services/Databases/DocumentsDBCustomClientTest.php index 4a2713bcb5..d017394ad4 100644 --- a/tests/e2e/Services/Databases/DocumentsDBCustomClientTest.php +++ b/tests/e2e/Services/Databases/DocumentsDBCustomClientTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; @@ -11,6 +12,7 @@ class DocumentsDBCustomClientTest extends Scope { use DatabasesBase; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/DocumentsDBCustomServerTest.php b/tests/e2e/Services/Databases/DocumentsDBCustomServerTest.php index a235924dfc..b67c93f1d2 100644 --- a/tests/e2e/Services/Databases/DocumentsDBCustomServerTest.php +++ b/tests/e2e/Services/Databases/DocumentsDBCustomServerTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; @@ -11,6 +12,7 @@ class DocumentsDBCustomServerTest extends Scope { use DatabasesBase; use ProjectCustom; + use RequiresDocumentsDB; use SideServer; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsGuestTest.php b/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsGuestTest.php index c249b71f9e..3ff40d520d 100644 --- a/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsGuestTest.php +++ b/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsGuestTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use Tests\E2E\Client; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Utopia\Database\Helpers\ID; @@ -17,6 +18,7 @@ class DocumentsDBPermissionsGuestTest extends Scope { use DatabasesPermissionsBase; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; diff --git a/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsMemberTest.php b/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsMemberTest.php index 88e84b017d..8b6a5d0c30 100644 --- a/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsMemberTest.php +++ b/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsMemberTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use Tests\E2E\Client; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Utopia\Database\Helpers\ID; @@ -16,6 +17,7 @@ class DocumentsDBPermissionsMemberTest extends Scope { use DatabasesPermissionsBase; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; diff --git a/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsTeamTest.php b/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsTeamTest.php index db9adf9bb1..9ac79519ed 100644 --- a/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsTeamTest.php +++ b/tests/e2e/Services/Databases/Permissions/DocumentsDBPermissionsTeamTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use Tests\E2E\Client; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Utopia\Database\Helpers\ID; @@ -16,6 +17,7 @@ class DocumentsDBPermissionsTeamTest extends Scope { use DatabasesPermissionsBase; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; diff --git a/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsGuestTest.php b/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsGuestTest.php index 52ddcc8586..84f02e0238 100644 --- a/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsGuestTest.php +++ b/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsGuestTest.php @@ -5,6 +5,7 @@ namespace Tests\E2E\Services\Databases\VectorsDB; use PHPUnit\Framework\Attributes\DataProvider; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Services\Databases\VectorsDB\Permissions\DatabasesPermissionsScope; @@ -16,6 +17,7 @@ use Utopia\Database\Validator\Authorization; class VectorsDBPermissionsGuestTest extends Scope { use ProjectCustom; + use RequiresVectorsDB; use SideClient; use DatabasesPermissionsScope; diff --git a/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsMemberTest.php b/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsMemberTest.php index 3043a42dd5..6f1da52a1f 100644 --- a/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsMemberTest.php +++ b/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsMemberTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Depends; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Services\Databases\VectorsDB\Permissions\DatabasesPermissionsScope; @@ -16,6 +17,7 @@ use Utopia\Database\Helpers\Role; class VectorsDBPermissionsMemberTest extends Scope { use ProjectCustom; + use RequiresVectorsDB; use SideClient; use DatabasesPermissionsScope; diff --git a/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsTeamTest.php b/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsTeamTest.php index 11709ed729..1fa9f274cd 100644 --- a/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsTeamTest.php +++ b/tests/e2e/Services/Databases/Permissions/VectorsDBPermissionsTeamTest.php @@ -6,6 +6,7 @@ use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Depends; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Services\Databases\VectorsDB\Permissions\DatabasesPermissionsScope; @@ -16,6 +17,7 @@ use Utopia\Database\Helpers\Role; class VectorsDBPermissionsTeamTest extends Scope { use ProjectCustom; + use RequiresVectorsDB; use SideClient; use DatabasesPermissionsScope; diff --git a/tests/e2e/Services/Databases/Transactions/DocumentsDBACIDTest.php b/tests/e2e/Services/Databases/Transactions/DocumentsDBACIDTest.php index eb597e3488..e5385d44cc 100644 --- a/tests/e2e/Services/Databases/Transactions/DocumentsDBACIDTest.php +++ b/tests/e2e/Services/Databases/Transactions/DocumentsDBACIDTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Traits\DatabasesUrlHelpers; @@ -13,6 +14,7 @@ class DocumentsDBACIDTest extends Scope use ACIDBase; use DatabasesUrlHelpers; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionPermissionsCustomClientTest.php b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionPermissionsCustomClientTest.php index 5d6b315d8c..4744ad3331 100644 --- a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionPermissionsCustomClientTest.php +++ b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionPermissionsCustomClientTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Traits\DatabasesUrlHelpers; @@ -13,6 +14,7 @@ class DocumentsDBTransactionPermissionsCustomClientTest extends Scope use TransactionPermissionsBase; use DatabasesUrlHelpers; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsConsoleClientTest.php b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsConsoleClientTest.php index 4ed2df20af..e93a6b3533 100644 --- a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsConsoleClientTest.php +++ b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsConsoleClientTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideConsole; use Tests\E2E\Traits\DatabasesUrlHelpers; @@ -13,6 +14,7 @@ class DocumentsDBTransactionsConsoleClientTest extends Scope use TransactionsBase; use DatabasesUrlHelpers; use ProjectCustom; + use RequiresDocumentsDB; use SideConsole; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomClientTest.php b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomClientTest.php index 986880f036..951ffb313d 100644 --- a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomClientTest.php +++ b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomClientTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Traits\DatabasesUrlHelpers; @@ -13,6 +14,7 @@ class DocumentsDBTransactionsCustomClientTest extends Scope use TransactionsBase; use DatabasesUrlHelpers; use ProjectCustom; + use RequiresDocumentsDB; use SideClient; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomServerTest.php b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomServerTest.php index 3b6b991143..d45fb369bc 100644 --- a/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomServerTest.php +++ b/tests/e2e/Services/Databases/Transactions/DocumentsDBTransactionsCustomServerTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ApiDocumentsDB; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresDocumentsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; use Tests\E2E\Traits\DatabasesUrlHelpers; @@ -13,6 +14,7 @@ class DocumentsDBTransactionsCustomServerTest extends Scope use TransactionsBase; use DatabasesUrlHelpers; use ProjectCustom; + use RequiresDocumentsDB; use SideServer; use ApiDocumentsDB; } diff --git a/tests/e2e/Services/Databases/Transactions/VectorsDBACIDTest.php b/tests/e2e/Services/Databases/Transactions/VectorsDBACIDTest.php index 914c8d0c5b..46e3ae0e33 100644 --- a/tests/e2e/Services/Databases/Transactions/VectorsDBACIDTest.php +++ b/tests/e2e/Services/Databases/Transactions/VectorsDBACIDTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Utopia\Database\Helpers\ID; @@ -13,6 +14,7 @@ use Utopia\Database\Helpers\Role; class VectorsDBACIDTest extends Scope { use ProjectCustom; + use RequiresVectorsDB; use SideClient; private function generateEmbeddings(int $dimensions = 3, float $value = 0.1): array diff --git a/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsConsoleClientTest.php b/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsConsoleClientTest.php index f6f217ab69..ee3a18c86a 100644 --- a/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsConsoleClientTest.php +++ b/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsConsoleClientTest.php @@ -3,6 +3,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideConsole; use Tests\E2E\Services\Databases\VectorsDB\Transactions\TransactionsBase; @@ -11,5 +12,6 @@ class VectorsDBTransactionsConsoleClientTest extends Scope { use TransactionsBase; use ProjectCustom; + use RequiresVectorsDB; use SideConsole; } diff --git a/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomClientTest.php b/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomClientTest.php index 6dcfdf9f3e..be48c6733e 100644 --- a/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomClientTest.php +++ b/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomClientTest.php @@ -3,6 +3,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Services\Databases\VectorsDB\Transactions\TransactionsBase; @@ -11,5 +12,6 @@ class VectorsDBTransactionsCustomClientTest extends Scope { use TransactionsBase; use ProjectCustom; + use RequiresVectorsDB; use SideClient; } diff --git a/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomServerTest.php b/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomServerTest.php index 44f1ba36e1..3e35e4c6e0 100644 --- a/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomServerTest.php +++ b/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomServerTest.php @@ -3,6 +3,7 @@ namespace Tests\E2E\Services\Databases\Transactions; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; use Tests\E2E\Services\Databases\VectorsDB\Transactions\TransactionsBase; @@ -11,5 +12,6 @@ class VectorsDBTransactionsCustomServerTest extends Scope { use TransactionsBase; use ProjectCustom; + use RequiresVectorsDB; use SideServer; } diff --git a/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php b/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php index 1bdc77085b..9dc97105f4 100644 --- a/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php +++ b/tests/e2e/Services/Databases/VectorsDB/DatabasesBase.php @@ -26,6 +26,10 @@ trait DatabasesBase 'name' => 'Test Database' ]); + if ($database['headers']['status-code'] >= 500) { + $this->markTestSkipped('VectorsDB backend (PostgreSQL) is not available in this CI environment.'); + } + $this->assertNotEmpty($database['body']['$id']); $this->assertEquals(201, $database['headers']['status-code']); $this->assertEquals('Test Database', $database['body']['name']); diff --git a/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php b/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php index 70150a3bc8..6a536dbe72 100644 --- a/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php +++ b/tests/e2e/Services/Databases/VectorsDB/Transactions/TransactionsBase.php @@ -35,6 +35,9 @@ trait TransactionsBase 'name' => 'TransactionTestDatabase' ]); + if ($database['headers']['status-code'] >= 500) { + $this->markTestSkipped('VectorsDB backend (PostgreSQL) is not available in this CI environment.'); + } $this->assertEquals(201, $database['headers']['status-code']); $databaseId = $database['body']['$id']; diff --git a/tests/e2e/Services/Databases/VectorsDBConsoleClientTest.php b/tests/e2e/Services/Databases/VectorsDBConsoleClientTest.php index 80c2bc9d5c..60de0e7060 100644 --- a/tests/e2e/Services/Databases/VectorsDBConsoleClientTest.php +++ b/tests/e2e/Services/Databases/VectorsDBConsoleClientTest.php @@ -5,6 +5,7 @@ namespace Tests\E2E\Services\Databases; use PHPUnit\Framework\Attributes\Depends; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideConsole; use Utopia\Database\Helpers\ID; @@ -15,6 +16,7 @@ use Utopia\Database\Query; class VectorsDBConsoleClientTest extends Scope { use ProjectCustom; + use RequiresVectorsDB; use SideConsole; public function testCreateCollection(): array diff --git a/tests/e2e/Services/Databases/VectorsDBCustomClientTest.php b/tests/e2e/Services/Databases/VectorsDBCustomClientTest.php index 7add5c7f71..d7d8b2be28 100644 --- a/tests/e2e/Services/Databases/VectorsDBCustomClientTest.php +++ b/tests/e2e/Services/Databases/VectorsDBCustomClientTest.php @@ -4,6 +4,7 @@ namespace Tests\E2E\Services\Databases; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideClient; use Tests\E2E\Services\Databases\VectorsDB\DatabasesBase; @@ -15,6 +16,7 @@ class VectorsDBCustomClientTest extends Scope { use DatabasesBase; use ProjectCustom; + use RequiresVectorsDB; use SideClient; public function testAllowedPermissions(): void diff --git a/tests/e2e/Services/Databases/VectorsDBCustomServerTest.php b/tests/e2e/Services/Databases/VectorsDBCustomServerTest.php index ceb672443e..91745d5e66 100644 --- a/tests/e2e/Services/Databases/VectorsDBCustomServerTest.php +++ b/tests/e2e/Services/Databases/VectorsDBCustomServerTest.php @@ -5,6 +5,7 @@ namespace Tests\E2E\Services\Databases; use PHPUnit\Framework\Attributes\Depends; use Tests\E2E\Client; use Tests\E2E\Scopes\ProjectCustom; +use Tests\E2E\Scopes\RequiresVectorsDB; use Tests\E2E\Scopes\Scope; use Tests\E2E\Scopes\SideServer; use Tests\E2E\Services\Databases\VectorsDB\DatabasesBase; @@ -17,6 +18,7 @@ class VectorsDBCustomServerTest extends Scope { use DatabasesBase; use ProjectCustom; + use RequiresVectorsDB; use SideServer; public function testListDatabases(): array