summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php
diff options
context:
space:
mode:
authorEoleDev <EoleDev@outlook.fr>2016-04-14 16:28:25 +0200
committerEoleDev <EoleDev@outlook.fr>2016-04-14 16:28:25 +0200
commit31d2d0c158ad4daa3dde7a905f3c2e312c194f2e (patch)
tree43d761d2aec8265a22c0fdedcc365bacc10dc814 /server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php
parent27730911d8c9253a4f5aa90450c57cdeca9d5d26 (diff)
parentb348dbc2266a3e8070a3951fb0bd8c19b852ec47 (diff)
Merge branch 'compute'
Conflicts: server/core/LibOverride/genTokenOptions.php
Diffstat (limited to 'server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php')
-rwxr-xr-xserver/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php75
1 files changed, 0 insertions, 75 deletions
diff --git a/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php b/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php
deleted file mode 100755
index 2fc922f..0000000
--- a/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV3Api.php
+++ /dev/null
@@ -1,75 +0,0 @@
-<?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()
- ]
- ]
- ]
- ];
- }
-}