Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Identity/v3/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function postServices(): array
'params' => [
'name' => $this->params->name('service'),
'type' => $this->params->type('service'),
'description' => $this->params->desc('service'),
]
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/Identity/v3/CoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/Identity/v3/Fixtures/service.resp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Content-Type: application/json
"service": {
"id": "serviceId",
"name": "foo",
"type": "bar"
"type": "bar",
"description": "description"
}
}
}
2 changes: 1 addition & 1 deletion tests/unit/Identity/v3/ServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down