Skip to content

Commit

Permalink
test platformUsageType
Browse files Browse the repository at this point in the history
  • Loading branch information
zajca committed Jan 20, 2025
1 parent 789f1c1 commit 266a2ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Backend/Workspaces/ComponentsWorkspacesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
2 changes: 2 additions & 0 deletions tests/Backend/Workspaces/WorkspacesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit 266a2ce

Please sign in to comment.