mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Fix new site tests
This commit is contained in:
1 parent
71103b037f
commit
28ef7da231
2 files changed
+7
-13
No files matched your search
@@ -1717,9 +1717,7 @@ class FunctionsCustomServerTest extends Scope
|
||||
'execute' => ['any']
|
||||
]);
|
||||
|
||||
$this->createFunctionDomain($functionId);
|
||||
|
||||
$domain = $this->getFunctionDomain($functionId);
|
||||
$domain = $this->createFunctionDomain($functionId);
|
||||
|
||||
$this->setupDeployment($functionId, [
|
||||
'entrypoint' => 'index.php',
|
||||
@@ -1754,9 +1752,7 @@ class FunctionsCustomServerTest extends Scope
|
||||
'execute' => ['any']
|
||||
]);
|
||||
|
||||
$this->createFunctionDomain($functionId);
|
||||
|
||||
$domain = $this->getFunctionDomain($functionId);
|
||||
$domain = $this->createFunctionDomain($functionId);
|
||||
|
||||
$this->setupDeployment($functionId, [
|
||||
'entrypoint' => 'index.php',
|
||||
@@ -1876,7 +1872,7 @@ class FunctionsCustomServerTest extends Scope
|
||||
|
||||
$functionId = $function['body']['$id'] ?? '';
|
||||
|
||||
$this->createFunctionDomain($functionId);
|
||||
$domain = $this->createFunctionDomain($functionId);
|
||||
|
||||
$this->setupDeployment($functionId, [
|
||||
'code' => $this->packageFunction('node'),
|
||||
|
||||
@@ -79,9 +79,7 @@ class SitesCustomServerTest extends Scope
|
||||
|
||||
$this->assertNotEmpty($siteId);
|
||||
|
||||
$this->createSiteDomain($siteId, 'test-site');
|
||||
|
||||
$rule = $this->getSiteDomain($siteId);
|
||||
$rule = $this->createSiteDomain($siteId, 'test-site');
|
||||
|
||||
$response = $this->client->call(Client::METHOD_GET, '/console/resources', [
|
||||
'origin' => 'http://localhost',
|
||||
@@ -1248,8 +1246,6 @@ class SitesCustomServerTest extends Scope
|
||||
}, 50000, 500);
|
||||
|
||||
$domain = $this->createSiteDomain($siteId);
|
||||
|
||||
$domain = $this->getSiteDomain($siteId);
|
||||
$proxyClient = new Client();
|
||||
$proxyClient->setEndpoint('http://' . $domain);
|
||||
|
||||
@@ -1400,6 +1396,8 @@ class SitesCustomServerTest extends Scope
|
||||
|
||||
$this->assertNotEmpty($siteId);
|
||||
|
||||
$domain = $this->createSiteDomain($siteId);
|
||||
|
||||
$deploymentId = $this->setupDeployment($siteId, [
|
||||
'code' => $this->packageSite('static'),
|
||||
'activate' => 'true'
|
||||
@@ -1463,7 +1461,7 @@ class SitesCustomServerTest extends Scope
|
||||
|
||||
$this->assertNotEmpty($siteId);
|
||||
|
||||
$domain = $this->getSiteDomain($siteId);
|
||||
$domain = $this->createSiteDomain($siteId, $subdomain);
|
||||
|
||||
$this->assertNotEmpty($domain);
|
||||
|
||||
|
||||
Reference in new issue
Block a user