tests: fix new status codes

This commit is contained in:
Torsten Dittmann
2024-05-22 23:19:21 +02:00
parent 54093617ee
commit a9c701cdc1
3 changed files with 7 additions and 14 deletions
@@ -1282,7 +1282,9 @@ class ProjectsConsoleClientTest extends Scope
'name' => $name,
]);
$this->assertEquals($response['headers']['status-code'], 501);
$this->assertEquals($response['body']['type'], Exception::USER_COUNT_EXCEEDED);
$this->assertEquals($response['headers']['status-code'], 400);
/**
* Test for FAILURE
@@ -1,13 +0,0 @@
<?php
namespace Tests\E2E\Services\Projects;
use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideClient;
class ProjectsCustomClientTest extends Scope
{
use ProjectCustom;
use SideClient;
}
@@ -31,6 +31,10 @@ class ProjectsCustomServerTest extends Scope
$this->assertEquals(201, $response['headers']['status-code']);
$response = $this->client->call(Client::METHOD_DELETE, '/proxy/rules/' . $response['body']['$id'], $headers);
$this->assertEquals(204, $response['headers']['status-code']);
// prevent functions domain
$functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', '');