mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
test: stabilize dedicated graph and project e2e
This commit is contained in:
@@ -1056,11 +1056,28 @@ class ProjectsConsoleClientTest extends Scope
|
||||
/**
|
||||
* Test for SUCCESS
|
||||
*/
|
||||
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id, array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-response-format' => '1.9.4',
|
||||
], $this->getHeaders()));
|
||||
$response = [];
|
||||
$this->assertEventually(function () use (&$response, $id) {
|
||||
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id, array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
'x-appwrite-response-format' => '1.9.4',
|
||||
], $this->getHeaders()));
|
||||
|
||||
$this->assertSame(200, $response['headers']['status-code']);
|
||||
$this->assertSame(135, $response['body']['authDuration']);
|
||||
|
||||
$githubProvider = null;
|
||||
foreach ($response['body']['oAuthProviders'] as $provider) {
|
||||
if ($provider['key'] === 'github') {
|
||||
$githubProvider = $provider;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertNotNull($githubProvider, 'GitHub provider not found');
|
||||
$this->assertSame('github-client-id', $githubProvider['appId']);
|
||||
}, 20000, 500);
|
||||
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
$this->assertEquals($id, $response['body']['$id']);
|
||||
|
||||
Reference in New Issue
Block a user