From a470e2b517b2a1782881ec835d228cb21a28fe04 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 15 Nov 2024 18:55:52 +1300 Subject: [PATCH] Output test mode --- .github/workflows/tests.yml | 3 +++ tests/e2e/Services/Projects/ProjectsConsoleClientTest.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 27e575af3d..3ab240c1b9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -153,12 +153,15 @@ jobs: - name: Run ${{ matrix.service }} tests with ${{ matrix.tables-mode }} table mode run: | if [ "${{ matrix.tables-mode }}" == "Shared V1" ]; then + echo "Using shared tables V1" export _APP_DATABASE_SHARED_TABLES=database_db_main export _APP_DATABASE_SHARED_TABLES_V1=database_db_main elif [ "${{ matrix.tables-mode }}" == "Shared V2" ]; then + echo "Using shared tables V2" export _APP_DATABASE_SHARED_TABLES=database_db_main export _APP_DATABASE_SHARED_TABLES_V1= else + echo "Using project tables" export _APP_DATABASE_SHARED_TABLES= export _APP_DATABASE_SHARED_TABLES_V1= fi diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index f80d0313a7..e3f48bb2a6 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -3882,13 +3882,13 @@ class ProjectsConsoleClientTest extends Scope \sleep(3); // Ensure project 2 user is still there - $database2 = $this->client->call(Client::METHOD_GET, '/users/' . $user2['body']['$id'], [ + $user2 = $this->client->call(Client::METHOD_GET, '/users/' . $user2['body']['$id'], [ 'content-type' => 'application/json', 'x-appwrite-project' => $project2Id, 'x-appwrite-key' => $key2['body']['secret'], ]); - $this->assertEquals(200, $database2['headers']['status-code']); + $this->assertEquals(200, $user2['headers']['status-code']); } /**