feat: remove search index and updates tests
This commit is contained in:
parent
d2ec314ef0
commit
83e9e9f016
2 changed files with 1 additions and 40 deletions
|
@ -2163,14 +2163,7 @@ $collections = [
|
||||||
'attributes' => ['status'],
|
'attributes' => ['status'],
|
||||||
'lengths' => [Database::LENGTH_KEY],
|
'lengths' => [Database::LENGTH_KEY],
|
||||||
'orders' => [Database::ORDER_ASC],
|
'orders' => [Database::ORDER_ASC],
|
||||||
],
|
]
|
||||||
[
|
|
||||||
'$id' => '_key_search',
|
|
||||||
'type' => Database::INDEX_FULLTEXT,
|
|
||||||
'attributes' => ['search'],
|
|
||||||
'lengths' => [2048],
|
|
||||||
'orders' => [Database::ORDER_ASC],
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -331,38 +331,6 @@ class FunctionsCustomServerTest extends Scope
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @depends testCreateDeployment
|
|
||||||
*/
|
|
||||||
public function testListBuild(array $data):array
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Test for SUCCESS
|
|
||||||
*/
|
|
||||||
$response = $this->client->call(Client::METHOD_GET, '/builds', array_merge([
|
|
||||||
'content-type' => 'application/json',
|
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
|
||||||
], $this->getHeaders()));
|
|
||||||
|
|
||||||
$this->assertEquals(200, $response['headers']['status-code']);
|
|
||||||
$this->assertEquals(1, $response['body']['sum']);
|
|
||||||
$this->assertEquals($response['body']['builds'][0]['status'], 'ready');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check Queries work
|
|
||||||
*/
|
|
||||||
$responseQuery = $this->client->call(Client::METHOD_GET, '/builds?status=status.equal(\"ready\")', array_merge([
|
|
||||||
'content-type' => 'application/json',
|
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
|
||||||
], $this->getHeaders()));
|
|
||||||
|
|
||||||
$this->assertEquals(200, $responseQuery['headers']['status-code']);
|
|
||||||
$this->assertEquals(1, $responseQuery['body']['sum']);
|
|
||||||
$this->assertEquals($responseQuery['body']['builds'][0]['status'], 'ready');
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @depends testCreateDeployment
|
* @depends testCreateDeployment
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue