New Library
This commit is contained in:
parent
5c6f6c97b7
commit
c479658f0b
83 changed files with 5788 additions and 0 deletions
75
server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php
vendored
Normal file
75
server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?php
|
||||
|
||||
namespace OpenCloud\Test\Fixtures;
|
||||
|
||||
class IdentityV3Api
|
||||
{
|
||||
private function domainParam()
|
||||
{
|
||||
return [
|
||||
'type' => 'object',
|
||||
'params' => [
|
||||
'id' => ['type' => 'string'],
|
||||
'name' => ['type' => 'string']
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
private function projectParam()
|
||||
{
|
||||
return [
|
||||
'type' => 'object',
|
||||
'params' => [
|
||||
'id' => ['type' => 'string'],
|
||||
'name' => ['type' => 'string'],
|
||||
'domain' => $this->domainParam(),
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public function postTokens()
|
||||
{
|
||||
return [
|
||||
'method' => 'POST',
|
||||
'path' => 'tokens',
|
||||
'params' => [
|
||||
'methods' => [
|
||||
'type' => 'array',
|
||||
'path' => 'auth.identity',
|
||||
'items' => [
|
||||
'type' => 'string'
|
||||
]
|
||||
],
|
||||
'user' => [
|
||||
'path' => 'auth.identity.password',
|
||||
'type' => 'object',
|
||||
'properties' => [
|
||||
'id' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
'name' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
'password' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
'domain' => $this->domainParam()
|
||||
]
|
||||
],
|
||||
'tokenId' => [
|
||||
'type' => 'string',
|
||||
'path' => 'auth.identity.token',
|
||||
'sentAs' => 'id',
|
||||
],
|
||||
'scope' => [
|
||||
'type' => 'object',
|
||||
'path' => 'auth',
|
||||
'properties' => [
|
||||
'project' => $this->projectParam(),
|
||||
'domain' => $this->domainParam()
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue