Fix usage tests

This commit is contained in:
Jake Barnby
2025-10-01 01:30:18 +13:00
parent 766c3293d2
commit 763158fe81
+6 -6
View File
@@ -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()
);