Merge: 6f7bb901 72cb487b
Author: Michael Barz <mbarz@owncloud.com>
Date:   Mon Oct 18 16:55:34 2021 +0200

    Merge pull request #2500 from owncloud/api-tests-spaces

    add basic API test for spaces
This commit is contained in:
Michael Barz committed 2021-10-18 14:57:55 +00:00
1 parent 2ecb7c1b82
commit b82aaa97b9
14 files changed
+3731 -3731

No files matched your search

+439 -439
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:56:16+0000"
date: "2021-10-18T14:55:56+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/accounts/templates
@@ -35,11 +35,26 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### accounts add
### accounts list
List existing accounts
Usage: `accounts list [command options] [arguments...]`
Create a new account
Usage: `accounts add [command options] [arguments...]`
@@ -99,56 +114,247 @@ Usage: `accounts add [command options] [arguments...]`
: service name. Default: `"accounts"`.
-enabled |
: Enable the account.
-displayname |
: Set the displayname for the account.
### accounts rebuildIndex
Rebuilds the service's index, i.e. deleting and then re-adding all existing documents
Usage: `accounts rebuildIndex [command options] [arguments...]`
### accounts server
Start ocis accounts service
Usage: `accounts server [command options] [arguments...]`
-log-file | $ACCOUNTS_LOG_FILE , $OCIS_LOG_FILE
: Enable log to file.
-tracing-enabled | $ACCOUNTS_TRACING_ENABLED , $OCIS_TRACING_ENABLED
: Enable sending traces.
-tracing-type | $ACCOUNTS_TRACING_TYPE , $OCIS_TRACING_TYPE
: Tracing backend type. Default: `"jaeger"`.
-tracing-endpoint | $ACCOUNTS_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT
: Endpoint for the agent. Default: `""`.
-tracing-collector | $ACCOUNTS_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR
: Endpoint for the collector. Default: `""`.
-tracing-service | $ACCOUNTS_TRACING_SERVICE
: Service name for tracing. Default: `"accounts"`.
-http-namespace | $ACCOUNTS_HTTP_NAMESPACE
: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`.
-http-addr | $ACCOUNTS_HTTP_ADDR
: Address to bind http server. Default: `"127.0.0.1:9181"`.
-http-root | $ACCOUNTS_HTTP_ROOT
: Root path of http server. Default: `"/"`.
-http-cache-ttl | $ACCOUNTS_CACHE_TTL
: Set the static assets caching duration in seconds. Default: `604800`.
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-grpc-addr | $ACCOUNTS_GRPC_ADDR
: Address to bind grpc server. Default: `"127.0.0.1:9180"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-accounts-hash-difficulty | $ACCOUNTS_HASH_DIFFICULTY
: accounts password hash difficulty. Default: `11`.
-demo-users-and-groups | $ACCOUNTS_DEMO_USERS_AND_GROUPS
: Enable demo users and groups. Default: `true`.
-asset-path | $ACCOUNTS_ASSET_PATH
: Path to custom assets. Default: `""`.
-jwt-secret | $ACCOUNTS_JWT_SECRET , $OCIS_JWT_SECRET
: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`.
-storage-disk-path | $ACCOUNTS_STORAGE_DISK_PATH
: Path on the local disk, e.g. /var/tmp/ocis/accounts. Default: `""`.
-storage-cs3-provider-addr | $ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR
: bind address for the metadata storage provider. Default: `"localhost:9215"`.
-storage-cs3-data-url | $ACCOUNTS_STORAGE_CS3_DATA_URL
: http endpoint of the metadata storage. Default: `"http://localhost:9216"`.
-storage-cs3-data-prefix | $ACCOUNTS_STORAGE_CS3_DATA_PREFIX
: path prefix for the http endpoint of the metadata storage, without leading slash. Default: `"data"`.
-storage-cs3-jwt-secret | $ACCOUNTS_STORAGE_CS3_JWT_SECRET , $OCIS_JWT_SECRET
: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`.
-service-user-uuid | $ACCOUNTS_SERVICE_USER_UUID
: uuid of the internal service user (required on EOS). Default: `"95cb8724-03b2-11eb-a0a6-c33ef8ef53ad"`.
-service-user-username | $ACCOUNTS_SERVICE_USER_USERNAME
: username of the internal service user (required on EOS). Default: `""`.
-service-user-uid | $ACCOUNTS_SERVICE_USER_UID
: uid of the internal service user (required on EOS). Default: `0`.
-service-user-gid | $ACCOUNTS_SERVICE_USER_GID
: gid of the internal service user (required on EOS). Default: `0`.
-uid-index-lower-bound | $ACCOUNTS_UID_INDEX_LOWER_BOUND
: define a starting point for the account UID. Default: `0`.
-gid-index-lower-bound | $ACCOUNTS_GID_INDEX_LOWER_BOUND
: define a starting point for the account GID. Default: `1000`.
-uid-index-upper-bound | $ACCOUNTS_UID_INDEX_UPPER_BOUND
: define an ending point for the account UID. Default: `0`.
-gid-index-upper-bound | $ACCOUNTS_GID_INDEX_UPPER_BOUND
: define an ending point for the account GID. Default: `1000`.
-extensions |
: Run specific extensions during supervised mode.
-username |
: Username will be written to preferred-name and on_premises_sam_account_name.
-preferred-name |
: Set the preferred-name for the account.
-on-premises-sam-account-name |
: Set the on-premises-sam-account-name.
-uidnumber |
: Set the uidnumber for the account.
-gidnumber |
: Set the gidnumber for the account.
-mail |
: Set the mail for the account.
-description |
: Set the description for the account.
-password |
: Set the password for the account.
-password-policies |
: Possible policies: DisableStrongPassword, DisablePasswordExpiration.
-force-password-change |
: Force password change on next sign-in.
-force-password-change-mfa |
: Force password change on next sign-in with mfa.
@@ -387,415 +593,6 @@ Usage: `accounts ocis-accounts [command options] [arguments...]`
### accounts server
Start ocis accounts service
Usage: `accounts server [command options] [arguments...]`
-log-file | $ACCOUNTS_LOG_FILE , $OCIS_LOG_FILE
: Enable log to file.
-tracing-enabled | $ACCOUNTS_TRACING_ENABLED , $OCIS_TRACING_ENABLED
: Enable sending traces.
-tracing-type | $ACCOUNTS_TRACING_TYPE , $OCIS_TRACING_TYPE
: Tracing backend type. Default: `"jaeger"`.
-tracing-endpoint | $ACCOUNTS_TRACING_ENDPOINT , $OCIS_TRACING_ENDPOINT
: Endpoint for the agent. Default: `""`.
-tracing-collector | $ACCOUNTS_TRACING_COLLECTOR , $OCIS_TRACING_COLLECTOR
: Endpoint for the collector. Default: `""`.
-tracing-service | $ACCOUNTS_TRACING_SERVICE
: Service name for tracing. Default: `"accounts"`.
-http-namespace | $ACCOUNTS_HTTP_NAMESPACE
: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`.
-http-addr | $ACCOUNTS_HTTP_ADDR
: Address to bind http server. Default: `"127.0.0.1:9181"`.
-http-root | $ACCOUNTS_HTTP_ROOT
: Root path of http server. Default: `"/"`.
-http-cache-ttl | $ACCOUNTS_CACHE_TTL
: Set the static assets caching duration in seconds. Default: `604800`.
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-grpc-addr | $ACCOUNTS_GRPC_ADDR
: Address to bind grpc server. Default: `"127.0.0.1:9180"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-accounts-hash-difficulty | $ACCOUNTS_HASH_DIFFICULTY
: accounts password hash difficulty. Default: `11`.
-demo-users-and-groups | $ACCOUNTS_DEMO_USERS_AND_GROUPS
: Enable demo users and groups. Default: `true`.
-asset-path | $ACCOUNTS_ASSET_PATH
: Path to custom assets. Default: `""`.
-jwt-secret | $ACCOUNTS_JWT_SECRET , $OCIS_JWT_SECRET
: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`.
-storage-disk-path | $ACCOUNTS_STORAGE_DISK_PATH
: Path on the local disk, e.g. /var/tmp/ocis/accounts. Default: `""`.
-storage-cs3-provider-addr | $ACCOUNTS_STORAGE_CS3_PROVIDER_ADDR
: bind address for the metadata storage provider. Default: `"localhost:9215"`.
-storage-cs3-data-url | $ACCOUNTS_STORAGE_CS3_DATA_URL
: http endpoint of the metadata storage. Default: `"http://localhost:9216"`.
-storage-cs3-data-prefix | $ACCOUNTS_STORAGE_CS3_DATA_PREFIX
: path prefix for the http endpoint of the metadata storage, without leading slash. Default: `"data"`.
-storage-cs3-jwt-secret | $ACCOUNTS_STORAGE_CS3_JWT_SECRET , $OCIS_JWT_SECRET
: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`.
-service-user-uuid | $ACCOUNTS_SERVICE_USER_UUID
: uuid of the internal service user (required on EOS). Default: `"95cb8724-03b2-11eb-a0a6-c33ef8ef53ad"`.
-service-user-username | $ACCOUNTS_SERVICE_USER_USERNAME
: username of the internal service user (required on EOS). Default: `""`.
-service-user-uid | $ACCOUNTS_SERVICE_USER_UID
: uid of the internal service user (required on EOS). Default: `0`.
-service-user-gid | $ACCOUNTS_SERVICE_USER_GID
: gid of the internal service user (required on EOS). Default: `0`.
-uid-index-lower-bound | $ACCOUNTS_UID_INDEX_LOWER_BOUND
: define a starting point for the account UID. Default: `0`.
-gid-index-lower-bound | $ACCOUNTS_GID_INDEX_LOWER_BOUND
: define a starting point for the account GID. Default: `1000`.
-uid-index-upper-bound | $ACCOUNTS_UID_INDEX_UPPER_BOUND
: define an ending point for the account UID. Default: `0`.
-gid-index-upper-bound | $ACCOUNTS_GID_INDEX_UPPER_BOUND
: define an ending point for the account GID. Default: `1000`.
-extensions |
: Run specific extensions during supervised mode.
### accounts version
Print the versions of the running instances
Usage: `accounts version [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts list
List existing accounts
Usage: `accounts list [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts rebuildIndex
Rebuilds the service's index, i.e. deleting and then re-adding all existing documents
Usage: `accounts rebuildIndex [command options] [arguments...]`
@@ -933,5 +730,208 @@ Usage: `accounts update [command options] [arguments...]`
### accounts version
Print the versions of the running instances
Usage: `accounts version [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts add
Create a new account
Usage: `accounts add [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-enabled |
: Enable the account.
-displayname |
: Set the displayname for the account.
-username |
: Username will be written to preferred-name and on_premises_sam_account_name.
-preferred-name |
: Set the preferred-name for the account.
-on-premises-sam-account-name |
: Set the on-premises-sam-account-name.
-uidnumber |
: Set the uidnumber for the account.
-gidnumber |
: Set the gidnumber for the account.
-mail |
: Set the mail for the account.
-description |
: Set the description for the account.
-password |
: Set the password for the account.
-password-policies |
: Possible policies: DisableStrongPassword, DisablePasswordExpiration.
-force-password-change |
: Force password change on next sign-in.
-force-password-change-mfa |
: Force password change on next sign-in with mfa.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:12+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/glauth/templates
+31 -31
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph-explorer/templates
@@ -73,36 +73,6 @@ Usage: `graph-explorer [global options] command [command options] [arguments...]
## Sub Commands
### graph-explorer health
Check health status
Usage: `graph-explorer health [command options] [arguments...]`
-debug-addr | $GRAPH_EXPLORER_DEBUG_ADDR
: Address to debug endpoint. Default: `"127.0.0.1:9136"`.
### graph-explorer server
Start integrated server
@@ -181,3 +151,33 @@ Usage: `graph-explorer server [command options] [arguments...]`
-extensions |
: Run specific extensions during supervised mode. This flag is set by the runtime.
### graph-explorer health
Check health status
Usage: `graph-explorer health [command options] [arguments...]`
-debug-addr | $GRAPH_EXPLORER_DEBUG_ADDR
: Address to debug endpoint. Default: `"127.0.0.1:9136"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph/templates
+74 -74
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/idp/templates
@@ -35,79 +35,6 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### idp version
Print the versions of the running instances
Usage: `idp version [command options] [arguments...]`
-http-namespace | $IDP_HTTP_NAMESPACE
: Set the base namespace for service discovery. Default: `"com.owncloud.web"`.
-name | $IDP_NAME
: Service name. Default: `"idp"`.
### idp health
Check health status
@@ -486,3 +413,76 @@ Usage: `idp server [command options] [arguments...]`
### idp version
Print the versions of the running instances
Usage: `idp version [command options] [arguments...]`
-http-namespace | $IDP_HTTP_NAMESPACE
: Set the base namespace for service discovery. Default: `"com.owncloud.web"`.
-name | $IDP_NAME
: Service name. Default: `"idp"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocs/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/proxy/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/settings/templates
File diff suppressed because it is too large. Load diff
+35 -35
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:21+0000"
date: "2021-10-18T14:56:54+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/store/templates
@@ -35,40 +35,6 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with command-line flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### store version
Print the versions of the running instances
Usage: `store version [command options] [arguments...]`
-grpc-namespace | $STORE_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $STORE_NAME
: Service name. Default: `"store"`.
### store health
Check health status
@@ -213,3 +179,37 @@ Usage: `store server [command options] [arguments...]`
### store version
Print the versions of the running instances
Usage: `store version [command options] [arguments...]`
-grpc-namespace | $STORE_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $STORE_NAME
: Service name. Default: `"store"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:27+0000"
date: "2021-10-18T14:56:58+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/thumbnails/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:32+0000"
date: "2021-10-18T14:57:02+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/web/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:32+0000"
date: "2021-10-18T14:57:02+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/webdav/templates
+82 -82
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-10-18T08:57:13+0000"
date: "2021-10-18T14:56:50+0000"
weight: 2
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocis/templates
@@ -107,34 +107,6 @@ Usage: `ocis [global options] command [command options] [arguments...]`
## Sub Commands
### ocis list
Lists running ocis extensions
Usage: `ocis list [command options] [arguments...]`
### ocis server
@@ -188,11 +160,11 @@ Usage: `ocis server [command options] [arguments...]`
-extensions | $OCIS_RUN_EXTENSIONS
: Run specific extensions during supervised mode.
### ocis health
### ocis kill
Check health status
Kill an extension by name
Usage: `ocis health [command options] [arguments...]`
Usage: `ocis kill [command options] [arguments...]`
@@ -208,9 +180,6 @@ Usage: `ocis health [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to debug endpoint. Default: `127.0.0.1:9010`.
@@ -247,11 +216,42 @@ Usage: `ocis run [command options] [arguments...]`
### ocis kill
### ocis health
Kill an extension by name
Check health status
Usage: `ocis kill [command options] [arguments...]`
Usage: `ocis health [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to debug endpoint. Default: `127.0.0.1:9010`.
### ocis list
Lists running ocis extensions
Usage: `ocis list [command options] [arguments...]`
@@ -279,13 +279,9 @@ Usage: `ocis kill [command options] [arguments...]`
There are more subcommands to start the individual extensions. Please check the documentation about their usage and options in the dedicated section of the documentation.
#### ocis storage-auth-bearer
#### ocis accounts
Start storage auth-bearer service
#### ocis storage-frontend
Start storage frontend
Start accounts server
#### ocis storage-gateway
@@ -295,53 +291,21 @@ Start storage gateway
Start storage and data service for metadata
#### ocis storage-sharing
#### ocis webdav
Start storage sharing service
#### ocis version
Lists running services with version
#### ocis storage-users
Start storage and data provider for /users mount
#### ocis accounts
Start accounts server
Start webdav server
#### ocis proxy
Start proxy server
#### ocis storage-auth-basic
Start storage auth-basic service
#### ocis storage-userprovider
Start storage userprovider service
#### ocis glauth
Start glauth server
#### ocis webdav
Start webdav server
#### ocis idp
Start idp server
#### ocis storage-home
Start storage and data provider for /home mount
#### ocis storage-public-link
#### ocis store
Start storage public link storage
Start a go-micro store
#### ocis thumbnails
@@ -351,6 +315,38 @@ Start thumbnails server
Start ocs server
#### ocis storage-auth-basic
Start storage auth-basic service
#### ocis version
Lists running services with version
#### ocis storage-auth-bearer
Start storage auth-bearer service
#### ocis storage-sharing
Start storage sharing service
#### ocis storage-users
Start storage and data provider for /users mount
#### ocis idp
Start idp server
#### ocis storage-public-link
Start storage public link storage
#### ocis glauth
Start glauth server
#### ocis settings
Start settings server
@@ -363,11 +359,15 @@ Start web server
Start storage app-provider service
#### ocis storage-frontend
Start storage frontend
#### ocis storage-groupprovider
Start storage groupprovider service
#### ocis store
#### ocis storage-userprovider
Start a go-micro store
Start storage userprovider service