From f85497a421d8dacfdb8b2591d843e7ae92357bd6 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 27 Jul 2022 08:05:50 +0000 Subject: [PATCH] function test --- composer.lock | 39 +++++++++++++-------------------- tests/e2e/General/UsageTest.php | 1 + 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/composer.lock b/composer.lock index 379a3727a6..2b6c6e6e60 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "380d806f7540199698d12a7abeb13534", + "content-hash": "677b1b47c8567f0b7b05645e2bbc7bc7", "packages": [ { "name": "adhocore/jwt", @@ -2051,16 +2051,16 @@ }, { "name": "utopia-php/database", - "version": "0.18.7", + "version": "0.18.9", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "d542ee433f1a545d926ffaf707bdf952dc18a52e" + "reference": "227b3ca919149b7b0d6556c8effe9ee46ed081e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/d542ee433f1a545d926ffaf707bdf952dc18a52e", - "reference": "d542ee433f1a545d926ffaf707bdf952dc18a52e", + "url": "https://api.github.com/repos/utopia-php/database/zipball/227b3ca919149b7b0d6556c8effe9ee46ed081e6", + "reference": "227b3ca919149b7b0d6556c8effe9ee46ed081e6", "shasum": "" }, "require": { @@ -2109,9 +2109,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.18.7" + "source": "https://github.com/utopia-php/database/tree/0.18.9" }, - "time": "2022-07-11T10:20:33+00:00" + "time": "2022-07-19T09:42:53+00:00" }, { "name": "utopia-php/domains", @@ -2387,16 +2387,16 @@ }, { "name": "utopia-php/orchestration", - "version": "dev-cli-lib-upgrade", + "version": "0.6.0", "source": { "type": "git", "url": "https://github.com/utopia-php/orchestration.git", - "reference": "06f2afef516aca900ddb483689ebe6f8e7037d28" + "reference": "94263976413871efb6b16157a7101a81df3b6d78" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/orchestration/zipball/06f2afef516aca900ddb483689ebe6f8e7037d28", - "reference": "06f2afef516aca900ddb483689ebe6f8e7037d28", + "url": "https://api.github.com/repos/utopia-php/orchestration/zipball/94263976413871efb6b16157a7101a81df3b6d78", + "reference": "94263976413871efb6b16157a7101a81df3b6d78", "shasum": "" }, "require": { @@ -2436,9 +2436,9 @@ ], "support": { "issues": "https://github.com/utopia-php/orchestration/issues", - "source": "https://github.com/utopia-php/orchestration/tree/cli-lib-upgrade" + "source": "https://github.com/utopia-php/orchestration/tree/0.6.0" }, - "time": "2022-07-13T14:55:12+00:00" + "time": "2022-07-13T16:47:18+00:00" }, { "name": "utopia-php/preloader", @@ -5346,18 +5346,9 @@ "time": "2022-05-17T05:48:52+00:00" } ], - "aliases": [ - { - "package": "utopia-php/orchestration", - "version": "dev-cli-lib-upgrade", - "alias": "0.4.1", - "alias_normalized": "0.4.1.0" - } - ], + "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "utopia-php/orchestration": 20 - }, + "stability-flags": [], "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index 4cf8a970c2..79f278af45 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -521,6 +521,7 @@ class UsageTest extends Scope $this->assertEquals(200, $execution['headers']['status-code']); $this->assertEquals($executionId, $execution['body']['$id']); $this->assertEquals($functionId, $execution['body']['functionId']); + $this->assertEquals('completed', $execution['body']['status']); $compute += (int) ($execution['body']['time'] * 1000); $executionTime += (int) ($execution['body']['time'] * 1000);