usage test
This commit is contained in:
parent
44af561d06
commit
a0554ca91e
|
@ -1009,7 +1009,6 @@ App::post('/v1/functions/:functionId/executions')
|
|||
->addMetric('executions.compute', (int)($executionResponse['duration'] * 1000))// per project
|
||||
->addMetric("{$function->getInternalId()}" . ".executions.compute", (int)($executionResponse['duration'] * 1000))// per function
|
||||
;
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
$interval = (new \DateTime())->diff(new \DateTime($execution->getCreatedAt()));
|
||||
$execution
|
||||
|
|
|
@ -44,7 +44,6 @@ class StorageConsoleClientTest extends Scope
|
|||
$this->assertIsArray($response['body']['bucketsCount']);
|
||||
$this->assertIsArray($response['body']['filesCount']);
|
||||
$this->assertIsArray($response['body']['filesStorage']);
|
||||
|
||||
}
|
||||
|
||||
public function testGetStorageBucketUsage()
|
||||
|
|
|
@ -42,6 +42,5 @@ class UsersConsoleClientTest extends Scope
|
|||
$this->assertEquals($response['body']['range'], '24h');
|
||||
$this->assertIsArray($response['body']['usersCount']);
|
||||
$this->assertIsArray($response['body']['sessionsCount']);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,16 +12,10 @@ use Utopia\Queue\Connection;
|
|||
|
||||
class StatsTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var Connection
|
||||
*/
|
||||
protected ?Connection $connection = null;
|
||||
/**
|
||||
* @var Client
|
||||
*/
|
||||
protected ?Client $client = null;
|
||||
|
||||
const QUEUE_NAME = 'usage-test-q';
|
||||
protected const QUEUE_NAME = 'usage-test-q';
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue