addressing comments
This commit is contained in:
parent
19e37ba3fd
commit
cdbc6a1d22
1 changed files with 0 additions and 3 deletions
|
@ -111,7 +111,6 @@ class UsageTest extends Scope
|
||||||
$this->validateDates($res['users']);
|
$this->validateDates($res['users']);
|
||||||
$this->assertEquals($requestsCount, $res['requests'][array_key_last($res['requests'])]['value']);
|
$this->assertEquals($requestsCount, $res['requests'][array_key_last($res['requests'])]['value']);
|
||||||
$this->validateDates($res['requests']);
|
$this->validateDates($res['requests']);
|
||||||
$requestsCount++;
|
|
||||||
|
|
||||||
$res = $this->client->call(Client::METHOD_GET, '/users/usage?range=30d', array_merge($headers, [
|
$res = $this->client->call(Client::METHOD_GET, '/users/usage?range=30d', array_merge($headers, [
|
||||||
'x-appwrite-project' => $projectId,
|
'x-appwrite-project' => $projectId,
|
||||||
|
@ -289,7 +288,6 @@ class UsageTest extends Scope
|
||||||
$this->assertEquals($storageTotal, $res['storage'][array_key_last($res['storage'])]['value']);
|
$this->assertEquals($storageTotal, $res['storage'][array_key_last($res['storage'])]['value']);
|
||||||
$this->validateDates($res['storage']);
|
$this->validateDates($res['storage']);
|
||||||
|
|
||||||
$requestsCount++;
|
|
||||||
$res = $this->client->call(Client::METHOD_GET, '/storage/usage?range=30d', array_merge($headers, [
|
$res = $this->client->call(Client::METHOD_GET, '/storage/usage?range=30d', array_merge($headers, [
|
||||||
'x-appwrite-project' => $projectId,
|
'x-appwrite-project' => $projectId,
|
||||||
'x-appwrite-mode' => 'admin'
|
'x-appwrite-mode' => 'admin'
|
||||||
|
@ -315,7 +313,6 @@ class UsageTest extends Scope
|
||||||
$this->assertEquals($filesDelete, $res['filesDelete'][array_key_last($res['filesDelete'])]['value']);
|
$this->assertEquals($filesDelete, $res['filesDelete'][array_key_last($res['filesDelete'])]['value']);
|
||||||
$this->validateDates($res['filesDelete']);
|
$this->validateDates($res['filesDelete']);
|
||||||
|
|
||||||
$requestsCount++;
|
|
||||||
$res = $this->client->call(Client::METHOD_GET, '/storage/' . $bucketId . '/usage?range=30d', array_merge($headers, [
|
$res = $this->client->call(Client::METHOD_GET, '/storage/' . $bucketId . '/usage?range=30d', array_merge($headers, [
|
||||||
'x-appwrite-project' => $projectId,
|
'x-appwrite-project' => $projectId,
|
||||||
'x-appwrite-mode' => 'admin'
|
'x-appwrite-mode' => 'admin'
|
||||||
|
|
Loading…
Reference in a new issue