summaryrefslogtreecommitdiff
path: root/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php
diff options
context:
space:
mode:
authorEoleDev <root@serverpc.home>2016-03-09 15:36:02 +0100
committerEoleDev <root@serverpc.home>2016-03-09 15:36:02 +0100
commitc479658f0bb953ded4b29ca573404a318f1e798f (patch)
treef4c4fa4b7e245abd462794df5b6525ed41306e77 /server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php
parent5c6f6c97b7b906476ad5b9ed193e0140dd66f977 (diff)
New Library
Diffstat (limited to 'server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php')
-rw-r--r--server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php b/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php
new file mode 100644
index 0000000..4cc66b5
--- /dev/null
+++ b/server/vendor/php-opencloud/common/tests/unit/Fixtures/IdentityV2Api.php
@@ -0,0 +1,36 @@
+<?php
+
+namespace OpenCloud\Test\Fixtures;
+
+use OpenCloud\Common\Api\ApiInterface;
+
+class IdentityV2Api implements ApiInterface
+{
+ public function postToken()
+ {
+ return [
+ 'method' => 'POST',
+ 'path' => 'tokens',
+ 'params' => [
+ 'username' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'path' => 'auth.passwordCredentials'
+ ],
+ 'password' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'path' => 'auth.passwordCredentials'
+ ],
+ 'tenantId' => [
+ 'type' => 'string',
+ 'path' => 'auth',
+ ],
+ 'tenantName' => [
+ 'type' => 'string',
+ 'path' => 'auth',
+ ]
+ ],
+ ];
+ }
+}