diff --git a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php index c34411436..190b1186b 100644 --- a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php @@ -20,7 +20,7 @@ class FunctionsConsoleClientTest extends Scope ], $this->getHeaders()), [ 'functionId' => 'unique()', 'name' => 'Test', - 'execute' => ['user:' . $this->getUser()['$id']], + 'execute' => ['create(user:' . $this->getUser()['$id'] . ')'], 'runtime' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index b2fb7d7d3..2becfd59f 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -57,7 +57,7 @@ class FunctionsCustomClientTest extends Scope ], [ 'functionId' => 'unique()', 'name' => 'Test', - 'execute' => ['user:' . $this->getUser()['$id']], + 'execute' => ['create(user:' . $this->getUser()['$id'] . ')'], 'runtime' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', @@ -147,7 +147,7 @@ class FunctionsCustomClientTest extends Scope ], [ 'functionId' => 'unique()', 'name' => 'Test', - 'execute' => ['role:all'], + 'execute' => ['create(any)'], 'runtime' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', @@ -332,7 +332,7 @@ class FunctionsCustomClientTest extends Scope ], [ 'functionId' => 'unique()', 'name' => 'Test', - 'execute' => ['role:all'], + 'execute' => ['create(any)'], 'runtime' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index ffa995f15..b8052f2c6 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -392,7 +392,7 @@ class WebhooksCustomServerTest extends Scope ], $this->getHeaders()), [ 'functionId' => 'unique()', 'name' => 'Test', - 'execute' => ['role:all'], + 'execute' => ['create(any)'], 'runtime' => 'php-8.0', 'timeout' => 10, ]); @@ -441,7 +441,7 @@ class WebhooksCustomServerTest extends Scope ], $this->getHeaders()), [ 'name' => 'Test', 'runtime' => 'php-8.0', - 'execute' => ['role:all'], + 'execute' => ['create(any)'], 'vars' => [ 'key1' => 'value1', ]