Skip to content

Commit 45acc2b

Browse files
committed
listing of WS should be ok
1 parent e73eb26 commit 45acc2b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tests/Backend/Workspaces/ReadOnlyUserTest.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,11 @@ public function testWorkspaceRestrictionsForReadOnlyUser(): void
2626
$this->assertEquals($workspace['id'], $workspaceDetail['id']);
2727
$this->assertArrayNotHasKey('password', $workspaceDetail['connection']);
2828

29-
try {
30-
$readOnlyWorkspaces->createWorkspace([], true);
31-
$this->fail('Workspace request should be restricted for readOnly user');
32-
} catch (ClientException $e) {
33-
$this->assertSame(403, $e->getCode());
34-
$this->assertSame('accessDenied', $e->getStringCode());
35-
$this->assertSame($expectedError, $e->getMessage());
36-
}
29+
// listing workspaces should be allowed for readOnly user
30+
$readOnlyWorkspaces->listWorkspaces();
3731

3832
try {
39-
$readOnlyWorkspaces->listWorkspaces();
33+
$readOnlyWorkspaces->createWorkspace([], true);
4034
$this->fail('Workspace request should be restricted for readOnly user');
4135
} catch (ClientException $e) {
4236
$this->assertSame(403, $e->getCode());

0 commit comments

Comments
 (0)