From e49d9f39a894fab102e00bb267cd8af6e5dd0957 Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Mon, 20 Jan 2025 01:18:43 +0530 Subject: [PATCH] Fix usageTest --- tests/e2e/General/UsageTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/General/UsageTest.php b/tests/e2e/General/UsageTest.php index c50a15fd3f..51e8322544 100644 --- a/tests/e2e/General/UsageTest.php +++ b/tests/e2e/General/UsageTest.php @@ -937,7 +937,7 @@ class UsageTest extends Scope $this->assertEquals(201, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $this->assertEquals($functionId, $response['body']['functionId']); + $this->assertEquals($functionId, $response['body']['resourceId']); $executionTime += (int) ($response['body']['duration'] * 1000); @@ -961,7 +961,7 @@ class UsageTest extends Scope $this->assertEquals(201, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $this->assertEquals($functionId, $response['body']['functionId']); + $this->assertEquals($functionId, $response['body']['resourceId']); if ($response['body']['status'] == 'failed') { $failures += 1; @@ -984,7 +984,7 @@ class UsageTest extends Scope $this->assertEquals(202, $response['headers']['status-code']); $this->assertNotEmpty($response['body']['$id']); - $this->assertEquals($functionId, $response['body']['functionId']); + $this->assertEquals($functionId, $response['body']['resourceId']); sleep(self::WAIT);