mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix usage tests
This commit is contained in:
@@ -713,7 +713,7 @@ class UsageTest extends Scope
|
||||
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_POST,
|
||||
'/databases/' . $databaseId . '/tables',
|
||||
'/tablesdb/' . $databaseId . '/tables',
|
||||
array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id']
|
||||
@@ -742,7 +742,7 @@ class UsageTest extends Scope
|
||||
if ($i < (self::CREATE / 2)) {
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_DELETE,
|
||||
'/databases/' . $databaseId . '/tables/' . $tableId,
|
||||
'/tablesdb/' . $databaseId . '/tables/' . $tableId,
|
||||
array_merge([
|
||||
'x-appwrite-project' => $this->getProject()['$id']
|
||||
], $this->getHeaders()),
|
||||
@@ -757,7 +757,7 @@ class UsageTest extends Scope
|
||||
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_POST,
|
||||
'/databases/' . $databaseId . '/tables/' . $tableId . '/columns' . '/string',
|
||||
'/tablesdb/' . $databaseId . '/tables/' . $tableId . '/columns' . '/string',
|
||||
array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id']
|
||||
@@ -780,7 +780,7 @@ class UsageTest extends Scope
|
||||
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_POST,
|
||||
'/databases/' . $databaseId . '/tables/' . $tableId . '/rows',
|
||||
'/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows',
|
||||
array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id']
|
||||
@@ -802,7 +802,7 @@ class UsageTest extends Scope
|
||||
if ($i < (self::CREATE / 2)) {
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_DELETE,
|
||||
'/databases/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId,
|
||||
'/tablesdb/' . $databaseId . '/tables/' . $tableId . '/rows/' . $rowId,
|
||||
array_merge([
|
||||
'x-appwrite-project' => $this->getProject()['$id']
|
||||
], $this->getHeaders()),
|
||||
@@ -898,7 +898,7 @@ class UsageTest extends Scope
|
||||
|
||||
$response = $this->client->call(
|
||||
Client::METHOD_GET,
|
||||
'/databases/' . $databaseId . '/tables/' . $tableId . '/usage?range=30d',
|
||||
'/tablesdb/' . $databaseId . '/tables/' . $tableId . '/usage?range=30d',
|
||||
$this->getConsoleHeaders()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user