Fix permission errors being 400 when they should be 401
This commit is contained in:
parent
467d8b2cd2
commit
7e3c6b4944
1 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ class StorageCustomClientTest extends Scope
|
||||||
'write' => ['user:notme']
|
'write' => ['user:notme']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals($file['headers']['status-code'], 400);
|
$this->assertEquals($file['headers']['status-code'], 401);
|
||||||
$this->assertStringStartsWith('Read permissions must be one of:', $file['body']['message']);
|
$this->assertStringStartsWith('Read permissions must be one of:', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:all', $file['body']['message']);
|
$this->assertStringContainsString('role:all', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:member', $file['body']['message']);
|
$this->assertStringContainsString('role:member', $file['body']['message']);
|
||||||
|
@ -219,7 +219,7 @@ class StorageCustomClientTest extends Scope
|
||||||
'read' => ['user:notme']
|
'read' => ['user:notme']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals($file['headers']['status-code'], 400);
|
$this->assertEquals($file['headers']['status-code'], 401);
|
||||||
$this->assertStringStartsWith('Read permissions must be one of:', $file['body']['message']);
|
$this->assertStringStartsWith('Read permissions must be one of:', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:all', $file['body']['message']);
|
$this->assertStringContainsString('role:all', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:member', $file['body']['message']);
|
$this->assertStringContainsString('role:member', $file['body']['message']);
|
||||||
|
@ -232,7 +232,7 @@ class StorageCustomClientTest extends Scope
|
||||||
'write' => ['user:notme']
|
'write' => ['user:notme']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals($file['headers']['status-code'], 400);
|
$this->assertEquals($file['headers']['status-code'], 401);
|
||||||
$this->assertStringStartsWith('Write permissions must be one of:', $file['body']['message']);
|
$this->assertStringStartsWith('Write permissions must be one of:', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:all', $file['body']['message']);
|
$this->assertStringContainsString('role:all', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:member', $file['body']['message']);
|
$this->assertStringContainsString('role:member', $file['body']['message']);
|
||||||
|
@ -246,7 +246,7 @@ class StorageCustomClientTest extends Scope
|
||||||
'write' => ['user:notme']
|
'write' => ['user:notme']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals($file['headers']['status-code'], 400);
|
$this->assertEquals($file['headers']['status-code'], 401);
|
||||||
$this->assertStringStartsWith('Read permissions must be one of:', $file['body']['message']);
|
$this->assertStringStartsWith('Read permissions must be one of:', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:all', $file['body']['message']);
|
$this->assertStringContainsString('role:all', $file['body']['message']);
|
||||||
$this->assertStringContainsString('role:member', $file['body']['message']);
|
$this->assertStringContainsString('role:member', $file['body']['message']);
|
||||||
|
|
Loading…
Reference in a new issue