Files
appwrite/tests/e2e/Services/Databases/DocumentsDBConsoleClientTest.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

19 lines
399 B
PHP

<?php
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;
class DocumentsDBConsoleClientTest extends Scope
{
use DatabasesBase;
use ProjectCustom;
use RequiresDocumentsDB;
use SideConsole;
use ApiDocumentsDB;
}