mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Revert "Merge pull request #11795 from rathi-yash/fix-11765-global-variable-creation"
This reverts commit597b20a6cb, reversing changes made to20f80ac067.
This commit is contained in:
@@ -4771,22 +4771,6 @@ class ProjectsConsoleClientTest extends Scope
|
||||
$this->assertEquals('APP_TEST_CREATE_1', $variable['body']['key']);
|
||||
$this->assertEmpty($variable['body']['value']);
|
||||
|
||||
// test for variable without variableId (auto-generated)
|
||||
$variable = $this->client->call(Client::METHOD_POST, '/project/variables', array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $data['projectId'],
|
||||
'x-appwrite-mode' => 'admin',
|
||||
], $this->getHeaders()), [
|
||||
'key' => 'APP_TEST_CREATE_AUTO_ID',
|
||||
'value' => 'AUTOIDVALUE',
|
||||
'secret' => false
|
||||
]);
|
||||
|
||||
$this->assertEquals(201, $variable['headers']['status-code']);
|
||||
$this->assertNotEmpty($variable['body']['$id']);
|
||||
$this->assertEquals('APP_TEST_CREATE_AUTO_ID', $variable['body']['key']);
|
||||
$this->assertEquals('AUTOIDVALUE', $variable['body']['value']);
|
||||
|
||||
/**
|
||||
* Test for FAILURE
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user