Skip to content

Commit

Permalink
CT-1386 - separate maintainer for test
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtabiberle committed Apr 25, 2024
1 parent c08d784 commit b6470f7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/ProjectStorageBackendTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ public function testProjectStorageAssignBackend(string $backendName): void

public function testProjectStorageAssignBackendFailedWithNonNumericBackendId(): void
{
$name = 'My org';
$organization = $this->client->createOrganization($this->testMaintainerId, [
'name' => $name,
$maintainer = $this->client->createMaintainer([
'name' => 'My test project storage assign maintainer',
]);

$organization = $this->client->createOrganization($maintainer['id'], [
'name' => 'My project storage assign testing organization',
]);

$project = $this->client->createProject($organization['id'], [
Expand Down Expand Up @@ -128,7 +131,6 @@ public function testProjectStorageAssignBackendFailedWithNonNumericBackendId():
$this->assertStringContainsString('storageBackendId must be an integer.', $e->getMessage());
}

$this->client->removeProjectStorageBackend($project['id'], $project['backends']['snowflake']['id']);
$backend = $this->client->createStorageBackend($this->getSnowflakeBackendCreateOptions());

// ensure, that backend ID is passed as string into body
Expand Down

0 comments on commit b6470f7

Please sign in to comment.