1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

tests: debug travis

This commit is contained in:
Torsten Dittmann 2021-04-26 11:54:32 +02:00
parent 061f3895be
commit 9b75f7b2aa

View file

@ -472,10 +472,10 @@ class WebhooksCustomServerTest extends Scope
$this->assertEquals($webhook['headers']['X-Appwrite-Webhook-Project-Id'] ?? '', $this->getProject()['$id']);
// wait for timeout function to complete (sleep(5);)
sleep(10);
sleep(6);
$webhook = $this->getLastRequest();
var_dump($webhook);
$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,6 +484,14 @@ 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
*/