1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

tests: debug travis

This commit is contained in:
Torsten Dittmann 2021-04-26 18:40:54 +02:00
parent 7084cc6479
commit 3838c935ce
2 changed files with 2 additions and 11 deletions

View file

@ -18,14 +18,13 @@ before_install:
- mkdir -p $HOME/.docker
- echo '{"experimental":"enabled"}' | sudo tee $HOME/.docker/config.json
- sudo service docker start
- if [ "$TRAVIS_CPU_ARCH" = "amd64" ]; then sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose; fi
- if [ "$TRAVIS_CPU_ARCH" = "amd64" ]; then sudo chmod +x /usr/local/bin/docker-compose; fi
- >
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
fi
- docker --version
- sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose --version
- docker buildx create --use
- chmod -R u+x ./.travis-ci
- export COMPOSE_INTERACTIVE_NO_CLI=1

View file

@ -476,14 +476,6 @@ class WebhooksCustomServerTest extends Scope
sleep(10);
$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');