Files
appwrite/tests/e2e/Services/Databases/Transactions/VectorsDBTransactionsCustomClientTest.php
Prem Palanisamy d86d5ae9d7 fix: skip VectorsDB/DocumentsDB database tests when backend unavailable
Add RequiresVectorsDB and RequiresDocumentsDB traits that probe the
database create endpoint once per test class and call markTestSkipped
when the backend returns a 500 error. This handles CI environments
where COMPOSE_PROFILES only starts a single database service.

Applied to all VectorsDB test classes (need PostgreSQL) and all
DocumentsDB test classes (need MongoDB): main tests, permissions
tests, and transaction tests. Also added a fallback guard in the
shared DatabasesBase::setupDatabase() method.
2026-03-30 18:59:03 +01:00

18 lines
431 B
PHP

<?php
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;
class VectorsDBTransactionsCustomClientTest extends Scope
{
use TransactionsBase;
use ProjectCustom;
use RequiresVectorsDB;
use SideClient;
}