mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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.
21 lines
515 B
PHP
21 lines
515 B
PHP
<?php
|
|
|
|
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;
|
|
|
|
class DocumentsDBTransactionPermissionsCustomClientTest extends Scope
|
|
{
|
|
use TransactionPermissionsBase;
|
|
use DatabasesUrlHelpers;
|
|
use ProjectCustom;
|
|
use RequiresDocumentsDB;
|
|
use SideClient;
|
|
use ApiDocumentsDB;
|
|
}
|