Output test mode

This commit is contained in:
Jake Barnby
2024-11-15 18:55:52 +13:00
parent 6851461a3b
commit a470e2b517
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -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
@@ -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']);
}
/**