Skip to content

Commit

Permalink
CT-1708 has external schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkasemmler committed Nov 13, 2024
1 parent 4a6f46f commit a10111f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function testExternalSchemaAsSharedBucket(): void
$this->shareClient->shareBucketToProjects($registeredBucketId, [$targetProjectId]);

$sharedBucket = $this->_client->getBucket($registeredBucketId);
$this->assertTrue($sharedBucket['hasExternalSchema']);
$this->assertEquals('specific-projects', $sharedBucket['sharing']);
$this->assertEquals($targetProjectId, $sharedBucket['sharingParameters']['projects'][0]['id']);

Expand Down Expand Up @@ -103,7 +104,7 @@ public function testExternalSchemaAsSharedBucket(): void
$linkedBucketId = $this->linkingClient->linkBucket('LINKED_BUCKET', 'in', $token['owner']['id'], $sharedBucket['id'], 'LINKED_BUCKET');
$linkedBucket = $this->linkingClient->getBucket($linkedBucketId);
$this->assertEquals($sharedBucket['id'], $linkedBucket['sourceBucket']['id']);

$this->assertTrue($linkedBucket['hasExternalSchema']);
$linkingTables = $this->linkingClient->listTables($linkedBucketId);
$this->assertCount(1, $linkingTables);
$linkingTable = $linkingTables[0];
Expand Down

0 comments on commit a10111f

Please sign in to comment.