diff --git a/src/Identity/v3/Api.php b/src/Identity/v3/Api.php index 3f1b0bf6..f1386d90 100644 --- a/src/Identity/v3/Api.php +++ b/src/Identity/v3/Api.php @@ -61,6 +61,7 @@ public function postServices(): array 'params' => [ 'name' => $this->params->name('service'), 'type' => $this->params->type('service'), + 'description' => $this->params->desc('service'), ] ]; } diff --git a/tests/integration/Identity/v3/CoreTest.php b/tests/integration/Identity/v3/CoreTest.php index c26735e7..2533a395 100644 --- a/tests/integration/Identity/v3/CoreTest.php +++ b/tests/integration/Identity/v3/CoreTest.php @@ -147,7 +147,7 @@ public function domains() public function endpoints() { - $service = $this->getService()->createService(['name' => $this->randomStr(), 'type' => 'volume']); + $service = $this->getService()->createService(['name' => $this->randomStr(), 'type' => 'volume', 'description' => $this->randomStr()]); $replacements = [ '{endpointName}' => $this->randomStr(), diff --git a/tests/unit/Identity/v3/Fixtures/service.resp b/tests/unit/Identity/v3/Fixtures/service.resp index b2eb960c..e4009290 100644 --- a/tests/unit/Identity/v3/Fixtures/service.resp +++ b/tests/unit/Identity/v3/Fixtures/service.resp @@ -5,6 +5,7 @@ Content-Type: application/json "service": { "id": "serviceId", "name": "foo", - "type": "bar" + "type": "bar", + "description": "description" } -} \ No newline at end of file +} diff --git a/tests/unit/Identity/v3/ServiceTest.php b/tests/unit/Identity/v3/ServiceTest.php index 2d94c499..825ce751 100644 --- a/tests/unit/Identity/v3/ServiceTest.php +++ b/tests/unit/Identity/v3/ServiceTest.php @@ -157,7 +157,7 @@ public function test_it_revokes_token() public function test_it_creates_service() { - $userOptions = ['name' => 'foo', 'type' => 'bar']; + $userOptions = ['name' => 'foo', 'type' => 'bar', 'description' => 'description']; $this->setupMock('POST', 'services', ['service' => $userOptions], [], 'service');