Merge: 93a317bb ccf456aa
Author: Phil Davis <phil@jankaritech.com>
Date:   Mon Jul 12 12:37:09 2021 +0545

    Merge pull request #2283 from owncloud/update-testing-doc

    [docs-only] update testing docs to include STORAGE_DRIVER env var
This commit is contained in:
Phil Davis committed 2021-07-12 06:54:40 +00:00
1 parent f5d95925d8
commit e8cc2d9a2d
16 files changed
+4324 -4320

No files matched your search

File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:02+0000"
date: "2021-07-12T06:53:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/glauth/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:02+0000"
date: "2021-07-12T06:53:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph-explorer/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:02+0000"
date: "2021-07-12T06:53:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph/templates
+147 -147
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/idp/templates
@@ -34,152 +34,6 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### idp health
Check health status
Usage: `idp health [command options] [arguments...]`
-debug-addr | $IDP_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9134"`.
### idp ocis-idp
Serve IDP API for oCIS
Usage: `idp ocis-idp [command options] [arguments...]`
-log-level | $IDP_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $IDP_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $IDP_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
### idp server
@@ -485,4 +339,150 @@ Usage: `idp version [command options] [arguments...]`
-name | $IDP_NAME
: Service name. Default: `"idp"`.
### idp health
Check health status
Usage: `idp health [command options] [arguments...]`
-debug-addr | $IDP_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9134"`.
### idp ocis-idp
Serve IDP API for oCIS
Usage: `idp ocis-idp [command options] [arguments...]`
-log-level | $IDP_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $IDP_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $IDP_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
+37 -37
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:40+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocs/templates
@@ -34,6 +34,42 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### ocs health
Check health status
Usage: `ocs health [command options] [arguments...]`
-debug-addr | $OCS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9114"`.
### ocs ocis-ocs
@@ -211,40 +247,4 @@ Usage: `ocs version [command options] [arguments...]`
-name | $OCS_NAME
: Service name. Default: `"ocs"`.
### ocs health
Check health status
Usage: `ocs health [command options] [arguments...]`
-debug-addr | $OCS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9114"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:40+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/onlyoffice/templates
+49 -49
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:40+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/proxy/templates
@@ -34,54 +34,6 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### proxy health
Check health status
Usage: `proxy health [command options] [arguments...]`
-debug-addr | $PROXY_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9109"`.
### proxy ocis-proxy
@@ -343,4 +295,52 @@ Usage: `proxy version [command options] [arguments...]`
-service-name | $PROXY_SERVICE_NAME
: Service name. Default: `"proxy"`.
### proxy health
Check health status
Usage: `proxy health [command options] [arguments...]`
-debug-addr | $PROXY_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9109"`.
+37 -37
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:40+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/settings/templates
@@ -34,6 +34,42 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### settings health
Check health status
Usage: `settings health [command options] [arguments...]`
-debug-addr | $SETTINGS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9194"`.
### settings ocis-settings
@@ -211,40 +247,4 @@ Usage: `settings version [command options] [arguments...]`
-name | $SETTINGS_NAME
: service name. Default: `"settings"`.
### settings health
Check health status
Usage: `settings health [command options] [arguments...]`
-debug-addr | $SETTINGS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9194"`.
File diff suppressed because it is too large. Load diff
+70 -70
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:40+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/store/templates
@@ -35,75 +35,6 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### store health
Check health status
Usage: `store health [command options] [arguments...]`
-debug-addr | $STORE_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9460"`.
### store ocis-store
Service to store values for ocis extensions
Usage: `store ocis-store [command options] [arguments...]`
-config-file | $STORE_CONFIG_FILE
: Path to config file.
-log-level | $STORE_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $STORE_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $STORE_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
### store server
Start integrated server
@@ -206,3 +137,72 @@ Usage: `store version [command options] [arguments...]`
-name | $STORE_NAME
: Service name. Default: `"store"`.
### store health
Check health status
Usage: `store health [command options] [arguments...]`
-debug-addr | $STORE_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9460"`.
### store ocis-store
Service to store values for ocis extensions
Usage: `store ocis-store [command options] [arguments...]`
-config-file | $STORE_CONFIG_FILE
: Path to config file.
-log-level | $STORE_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $STORE_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $STORE_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
+68 -68
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:04+0000"
date: "2021-07-12T06:53:41+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/thumbnails/templates
@@ -34,73 +34,6 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### thumbnails health
Check health status
Usage: `thumbnails health [command options] [arguments...]`
-debug-addr | $THUMBNAILS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9189"`.
### thumbnails ocis-thumbnails
Example usage
Usage: `thumbnails ocis-thumbnails [command options] [arguments...]`
### thumbnails server
@@ -240,4 +173,71 @@ Usage: `thumbnails version [command options] [arguments...]`
-grpc-namespace | $THUMBNAILS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
### thumbnails health
Check health status
Usage: `thumbnails health [command options] [arguments...]`
-debug-addr | $THUMBNAILS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9189"`.
### thumbnails ocis-thumbnails
Example usage
Usage: `thumbnails ocis-thumbnails [command options] [arguments...]`
+41 -41
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:04+0000"
date: "2021-07-12T06:53:41+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/web/templates
@@ -73,6 +73,46 @@ Usage: `web [global options] command [command options] [arguments...]`
## Sub Commands
### web health
Check health status
Usage: `web health [command options] [arguments...]`
-debug-addr | $WEB_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9104"`.
### web server
@@ -200,44 +240,4 @@ Usage: `web server [command options] [arguments...]`
-extensions |
: Run specific extensions during supervised mode. This flag is set by the runtime.
### web health
Check health status
Usage: `web health [command options] [arguments...]`
-debug-addr | $WEB_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9104"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:04+0000"
date: "2021-07-12T06:53:41+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/webdav/templates
+129 -129
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-12T06:44:03+0000"
date: "2021-07-12T06:53:39+0000"
weight: 2
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocis/templates
@@ -108,86 +108,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
Start fullstack server
Usage: `ocis server [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9010`.
-debug-token | $OCIS_DEBUG_TOKEN
: Token to grant metrics access.
-debug-pprof | $OCIS_DEBUG_PPROF
: Enable pprof debugging.
-debug-zpages | $OCIS_DEBUG_ZPAGES
: Enable zpages debugging.
-http-addr | $OCIS_HTTP_ADDR
: Address to bind http server. Default: `0.0.0.0:9000`.
-http-root | $OCIS_HTTP_ROOT
: Root path of http server. Default: `/`.
-grpc-addr | $OCIS_GRPC_ADDR
: Address to bind grpc server. Default: `0.0.0.0:9001`.
-extensions | $OCIS_RUN_EXTENSIONS
: Run specific extensions during supervised mode.
### ocis kill
Kill an extension by name
@@ -213,6 +133,34 @@ Usage: `ocis kill [command options] [arguments...]`
### ocis list
Lists running ocis extensions
Usage: `ocis list [command options] [arguments...]`
@@ -274,58 +222,82 @@ Usage: `ocis run [command options] [arguments...]`
### ocis server
Start fullstack server
Usage: `ocis server [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to bind debug server. Default: `0.0.0.0:9010`.
-debug-token | $OCIS_DEBUG_TOKEN
: Token to grant metrics access.
-debug-pprof | $OCIS_DEBUG_PPROF
: Enable pprof debugging.
-debug-zpages | $OCIS_DEBUG_ZPAGES
: Enable zpages debugging.
-http-addr | $OCIS_HTTP_ADDR
: Address to bind http server. Default: `0.0.0.0:9000`.
-http-root | $OCIS_HTTP_ROOT
: Root path of http server. Default: `/`.
-grpc-addr | $OCIS_GRPC_ADDR
: Address to bind grpc server. Default: `0.0.0.0:9001`.
-extensions | $OCIS_RUN_EXTENSIONS
: Run specific extensions during supervised mode.
### List of available Extension subcommands
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-basic
#### ocis settings
Start storage auth-basic service
#### ocis web
Start web server
#### ocis storage-public-link
Start storage public link storage
Start settings server
#### ocis storage-auth-bearer
Start storage auth-bearer service
#### ocis storage-frontend
Start storage frontend
#### ocis storage-gateway
Start storage gateway
#### ocis storage-home
#### ocis web
Start storage and data provider for /home mount
#### ocis store
Start a go-micro store
#### ocis storage-groupprovider
Start storage groupprovider service
#### ocis storage-userprovider
Start storage userprovider service
#### ocis storage-sharing
Start storage sharing service
#### ocis thumbnails
Start thumbnails server
#### ocis glauth
Start glauth server
Start web server
#### ocis onlyoffice
@@ -335,39 +307,67 @@ Start onlyoffice server
Start proxy server
#### ocis storage-metadata
#### ocis storage-sharing
Start storage and data service for metadata
Start storage sharing service
#### ocis storage-frontend
#### ocis storage-userprovider
Start storage frontend
Start storage userprovider service
#### ocis webdav
#### ocis glauth
Start webdav server
Start glauth server
#### ocis idp
Start idp server
#### ocis storage-groupprovider
Start storage groupprovider service
#### ocis storage-home
Start storage and data provider for /home mount
#### ocis storage-public-link
Start storage public link storage
#### ocis ocs
Start ocs server
#### ocis settings
#### ocis storage-auth-basic
Start settings server
#### ocis accounts
Start accounts server
Start storage auth-basic service
#### ocis storage-users
Start storage and data provider for /users mount
#### ocis store
Start a go-micro store
#### ocis accounts
Start accounts server
#### ocis storage-metadata
Start storage and data service for metadata
#### ocis thumbnails
Start thumbnails server
#### ocis version
Lists running services with version
#### ocis webdav
Start webdav server
+4
View File
@@ -117,6 +117,7 @@ Then run the api acceptance tests with the following command from the root of th
make test-acceptance-api \
TEST_SERVER_URL=https://localhost:9200 \
TEST_OCIS=true \
STORAGE_DRIVER=OCIS \
SKELETON_DIR=apps/testing/data/apiSkeleton \
BEHAT_FILTER_TAGS='~@notToImplementOnOCIS&&~@toImplementOnOCIS'
```
@@ -127,6 +128,8 @@ This will run all tests that are relevant to oCIS.
To run a single test add `BEHAT_FEATURE=<feature file>`
To run tests with a different storage driver set `STORAGE_DRIVER` to the correct value. It can be set to `OCIS` or `OWNCLOUD` and uses `OWNCLOUD` as the default value.
### use existing tests for BDD
As a lot of scenarios are written for oC10, we can use those tests for Behaviour driven development in ocis.
@@ -157,6 +160,7 @@ If you want to work on a specific issue
make test-acceptance-api \
TEST_SERVER_URL=https://localhost:9200 \
TEST_OCIS=true \
STORAGE_DRIVER=OCIS \
BEHAT_FEATURE='tests/acceptance/features/apiComments/comments.feature:123'
```