Remove unrelated changes to site deletion

This commit is contained in:
Khushboo Verma
2025-01-09 17:41:45 +05:30
parent 426bcffd1a
commit 8a260ceece
4 changed files with 2 additions and 374 deletions
@@ -36,7 +36,6 @@ class FunctionsCustomServerTest extends Scope
'buckets.*.delete',
],
'timeout' => 10,
'subdomain' => 'test'
]);
$functionId = $functionId = $function['body']['$id'] ?? '';
@@ -73,24 +72,6 @@ class FunctionsCustomServerTest extends Scope
$this->assertEquals(201, $variable2['headers']['status-code']);
$this->assertEquals(201, $variable3['headers']['status-code']);
/**
* Test for FAILURE
*/
$function2 = $this->createFunction([
'functionId' => ID::unique(),
'name' => 'Test',
'runtime' => 'php-8.0',
'entrypoint' => 'index.php',
'events' => [
'buckets.*.create',
'buckets.*.delete',
],
'timeout' => 10,
'subdomain' => 'test'
]);
$this->assertEquals(400, $function2['headers']['status-code']);
return [
'functionId' => $functionId,
];