tests: fix endpoint to use traefik
This commit is contained in:
parent
bcd472ca59
commit
a1dd9fe3ff
3 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@
|
||||||
convertNoticesToExceptions="true"
|
convertNoticesToExceptions="true"
|
||||||
convertWarningsToExceptions="true"
|
convertWarningsToExceptions="true"
|
||||||
processIsolation="false"
|
processIsolation="false"
|
||||||
stopOnFailure="false"
|
stopOnFailure="true"
|
||||||
>
|
>
|
||||||
<extensions>
|
<extensions>
|
||||||
<extension class="Appwrite\Tests\TestHook" />
|
<extension class="Appwrite\Tests\TestHook" />
|
||||||
|
|
|
@ -15,7 +15,7 @@ class HTTPTest extends Scope
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->client->setEndpoint('http://localhost');
|
$this->client->setEndpoint('http://traefik');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testOptions()
|
public function testOptions()
|
||||||
|
@ -163,11 +163,11 @@ class HTTPTest extends Scope
|
||||||
|
|
||||||
public function testDefaultOAuth2()
|
public function testDefaultOAuth2()
|
||||||
{
|
{
|
||||||
$response = $this->client->call(Client::METHOD_GET, '/auth/oauth2/success', $this->getHeaders());
|
$response = $this->client->call(Client::METHOD_GET, '/console/auth/oauth2/success', $this->getHeaders());
|
||||||
|
|
||||||
$this->assertEquals(200, $response['headers']['status-code']);
|
$this->assertEquals(200, $response['headers']['status-code']);
|
||||||
|
|
||||||
$response = $this->client->call(Client::METHOD_GET, '/auth/oauth2/failure', $this->getHeaders());
|
$response = $this->client->call(Client::METHOD_GET, '/console/auth/oauth2/failure', $this->getHeaders());
|
||||||
|
|
||||||
$this->assertEquals(200, $response['headers']['status-code']);
|
$this->assertEquals(200, $response['headers']['status-code']);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ class HooksTest extends Scope
|
||||||
public function setUp(): void
|
public function setUp(): void
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->client->setEndpoint('http://localhost');
|
$this->client->setEndpoint('http://traefik');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testProjectHooks()
|
public function testProjectHooks()
|
||||||
|
|
Loading…
Reference in a new issue