1
0
Fork 0
mirror of synced 2024-06-11 07:14:51 +12:00

tests: debug travis

This commit is contained in:
Torsten Dittmann 2021-04-26 12:29:12 +02:00
parent 72d820ec36
commit a17bfffa42
3 changed files with 9 additions and 10 deletions

View file

@ -29,7 +29,7 @@ before_install:
install:
- docker-compose up -d
- sleep 10
- sleep 90
script:
- docker ps

View file

@ -7,7 +7,6 @@ use Tests\E2E\Client;
use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideServer;
use Utopia\CLI\Console;
class FunctionsCustomServerTest extends Scope
{

View file

@ -475,7 +475,15 @@ class WebhooksCustomServerTest extends Scope
sleep(6);
$webhook = $this->getLastRequest();
$function = $this->client->call(Client::METHOD_GET, '/functions/'.$data['functionId'].'/executions', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()));
var_dump($webhook);
var_dump('id: ',$execution['body']['$id']);
var_dump($function['body']);
$this->assertEquals($webhook['method'], 'POST');
$this->assertEquals($webhook['headers']['Content-Type'], 'application/json');
$this->assertEquals($webhook['headers']['User-Agent'], 'Appwrite-Server vdev. Please report abuse at security@appwrite.io');
@ -484,14 +492,6 @@ class WebhooksCustomServerTest extends Scope
$this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Id'] ?? '', $this->getProject()['webhookId']);
$this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']);
$function = $this->client->call(Client::METHOD_GET, '/functions/'.$data['functionId'].'/executions', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()));
var_dump('id: ',$execution['body']['$id']);
var_dump($function['body']);
/**
* Test for FAILURE
*/