From 266a2cebc5afddf8c3a6494ef447f0983bd2b343 Mon Sep 17 00:00:00 2001 From: zajca Date: Mon, 20 Jan 2025 16:06:49 +0100 Subject: [PATCH] test platformUsageType --- tests/Backend/Workspaces/ComponentsWorkspacesTest.php | 1 + tests/Backend/Workspaces/WorkspacesTest.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/Backend/Workspaces/ComponentsWorkspacesTest.php b/tests/Backend/Workspaces/ComponentsWorkspacesTest.php index 193f4f251..feb69b433 100644 --- a/tests/Backend/Workspaces/ComponentsWorkspacesTest.php +++ b/tests/Backend/Workspaces/ComponentsWorkspacesTest.php @@ -104,6 +104,7 @@ public function testWorkspaceCreate(bool $async, ?bool $roStorageAccess): void $this->assertEquals($componentId, $workspace['component']); $this->assertEquals($configurationId, $workspace['configurationId']); $this->assertArrayHasKey('password', $workspace['connection']); + $this->assertSame('service', $workspace['platformUsageType']); $workspacesIds = array_map(function ($workspace) { return $workspace['id']; diff --git a/tests/Backend/Workspaces/WorkspacesTest.php b/tests/Backend/Workspaces/WorkspacesTest.php index 3b36964c9..ff2c6d319 100644 --- a/tests/Backend/Workspaces/WorkspacesTest.php +++ b/tests/Backend/Workspaces/WorkspacesTest.php @@ -118,7 +118,9 @@ public function testWorkspaceCreate(bool $async): void $this->assertArrayNotHasKey('password', $workspace['connection']); $this->assertArrayHasKey('region', $workspace['connection']); $this->assertNotEmpty($workspace['connection']['region']); + $this->assertSame('user', $workspace['platformUsageType']); if ($workspaceWithSnowflakeBackend) { + $this->assertArrayHasKey('warehouse', $workspace['connection']); $this->assertNotEmpty($workspace['connection']['warehouse']); }