diff --git a/src/SDP/Driver.php b/src/SDP/Driver.php index 71e4618..9465b03 100644 --- a/src/SDP/Driver.php +++ b/src/SDP/Driver.php @@ -174,6 +174,19 @@ public function getGeneralParam() 'defaultValue' => 'description', 'validators' => [] ); + $params[] = array( + 'name' => 'home', + 'type' => 'String', + 'unit' => 'none', + 'title' => 'Home', + 'description' => 'Home address of drive', + 'editable' => true, + 'visible' => true, + 'priority' => 5, + 'symbol' => 'home', + 'defaultValue' => '', + 'validators' => [] + ); $params[] = array( 'name' => 'symbol', 'type' => 'String', diff --git a/tests/Drive/DriveTest.php b/tests/Drive/DriveTest.php index f2f54db..1d703a8 100644 --- a/tests/Drive/DriveTest.php +++ b/tests/Drive/DriveTest.php @@ -110,9 +110,9 @@ public function shouldOwnerCanCreateDrive() { Test_Assert::assertResponseStatusCode ( $response, 200, 'Find status code is not 200' ); $actual = json_decode($response->content, true); $this->assertEquals($actual['driver'], $params['type']); - $this->assertEquals($actual['symbole'], $params['symbol']); - $this->assertEquals($actual['home'], $params['home']); + $this->assertEquals($actual['symbol'], $params['symbol']); $this->assertEquals($actual['title'], $params['title']); + $this->assertEquals($actual['home'], $params['home']); $drive = new SDP_Drive($actual['id']); $this->assertEquals($drive->getMeta('encrypt_key'), $params['encrypt_key']); $this->assertEquals($drive->getMeta('decrypt_key'), $params['decrypt_key']); diff --git a/tests/Driver/CactusTest.php b/tests/Driver/CactusTest.php index 904e01e..1121fef 100755 --- a/tests/Driver/CactusTest.php +++ b/tests/Driver/CactusTest.php @@ -129,7 +129,8 @@ public function init() $this->drive = new SDP_Drive(); $this->drive->title = 'CactusDrive-' . rand(); $this->drive->home = 'www.test.com'; - $this->drive->setMeta('key', $this->jwt_key); + $this->drive->setMeta('encrypt_key', $this->jwt_key); + $this->drive->setMeta('decrypt_key', $this->jwt_key); $this->drive->setMeta('algorithm', $this->jwt_alg); $this->drive->driver = 'cactus'; Test_Assert::assertTrue($this->drive->create(), 'Impossible to create cactus drive');