Merge: b0fd0b1e 508fa8c7
Author: Phil Davis <phil@jankaritech.com>
Date:   Wed Aug 4 11:44:49 2021 +0545

    Merge pull request #2345 from owncloud/bump-core-commit-id

    [tests-only] Bump core commit to include more previews tests
This commit is contained in:
Phil Davis committed 2021-08-04 06:01:16 +00:00
1 parent 13f493c84f
commit 798e84aede
16 files changed
+3431 -3436

No files matched your search

+212 -212
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:03:49+0000"
date: "2021-08-04T06:00:04+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/accounts/templates
@@ -35,207 +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.
### 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.
### 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 remove
Removes an existing account
@@ -404,15 +203,11 @@ Usage: `accounts ocis-accounts [command options] [arguments...]`
### accounts inspect
Show detailed data on an existing account
Usage: `accounts inspect [command options] [arguments...]`
### accounts version
Print the versions of the running instances
Usage: `accounts version [command options] [arguments...]`
@@ -485,6 +280,130 @@ Usage: `accounts inspect [command options] [arguments...]`
-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.
### accounts rebuildIndex
Rebuilds the service's index, i.e. deleting and then re-adding all existing documents
@@ -842,11 +761,92 @@ Usage: `accounts update [command options] [arguments...]`
### accounts version
### accounts inspect
Print the versions of the running instances
Show detailed data on an existing account
Usage: `accounts version [command options] [arguments...]`
Usage: `accounts inspect [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...]`
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+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-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+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-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/idp/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+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-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/onlyoffice/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/proxy/templates
+37 -37
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+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
+31 -31
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:40+0000"
date: "2021-08-04T06:00:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/store/templates
@@ -35,6 +35,36 @@ 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
@@ -176,33 +206,3 @@ 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"`.
+36 -36
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:41+0000"
date: "2021-08-04T06:00:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/thumbnails/templates
@@ -34,41 +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
@@ -240,4 +205,39 @@ 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"`.
+41 -41
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:41+0000"
date: "2021-08-04T06:00:39+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-08-03T20:04:42+0000"
date: "2021-08-04T06:00:39+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/webdav/templates
+133 -133
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-03T20:04:39+0000"
date: "2021-08-04T06:00:38+0000"
weight: 2
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocis/templates
@@ -133,34 +133,6 @@ Usage: `ocis run [command options] [arguments...]`
### ocis list
Lists running ocis extensions
Usage: `ocis list [command options] [arguments...]`
@@ -215,6 +187,62 @@ Usage: `ocis server [command options] [arguments...]`
-extensions | $OCIS_RUN_EXTENSIONS
: Run specific extensions during supervised mode.
### ocis kill
Kill an extension by name
Usage: `ocis kill [command options] [arguments...]`
### ocis list
Lists running ocis extensions
Usage: `ocis list [command options] [arguments...]`
### ocis health
@@ -244,34 +272,6 @@ Usage: `ocis health [command options] [arguments...]`
### ocis kill
Kill an extension by name
Usage: `ocis kill [command options] [arguments...]`
@@ -279,95 +279,95 @@ 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-frontend
Start storage frontend
#### ocis storage-users
Start storage and data provider for /users mount
#### ocis store
Start a go-micro store
#### ocis web
Start web server
#### ocis storage-auth-basic
Start storage auth-basic service
#### ocis idp
Start idp server
#### ocis proxy
Start proxy server
#### ocis storage-gateway
Start storage gateway
#### ocis storage-metadata
Start storage and data service for metadata
#### ocis thumbnails
Start thumbnails server
#### ocis version
Lists running services with version
#### ocis storage-sharing
Start storage sharing service
#### ocis storage-userprovider
Start storage userprovider service
#### ocis accounts
Start accounts server
#### ocis storage-groupprovider
Start storage groupprovider service
#### ocis settings
Start settings server
#### ocis glauth
Start glauth server
#### ocis ocs
Start ocs server
#### ocis storage-home
Start storage and data provider for /home mount
#### ocis storage-public-link
Start storage public link storage
#### ocis storage-sharing
Start storage sharing service
#### ocis thumbnails
Start thumbnails server
#### ocis settings
Start settings server
#### ocis storage-gateway
Start storage gateway
#### ocis idp
Start idp server
#### ocis storage-auth-basic
Start storage auth-basic service
#### ocis storage-frontend
Start storage frontend
#### ocis onlyoffice
Start onlyoffice server
#### ocis storage-auth-bearer
#### ocis storage-groupprovider
Start storage auth-bearer service
Start storage groupprovider service
#### ocis storage-public-link
#### ocis storage-userprovider
Start storage public link storage
Start storage userprovider service
#### ocis store
Start a go-micro store
#### ocis accounts
Start accounts server
#### ocis ocs
Start ocs server
#### ocis proxy
Start proxy server
#### ocis webdav
Start webdav server
#### ocis glauth
Start glauth server
#### ocis storage-auth-bearer
Start storage auth-bearer service
#### ocis storage-metadata
Start storage and data service for metadata
#### ocis storage-users
Start storage and data provider for /users mount
#### ocis web
Start web server
#### ocis version
Lists running services with version
+10 -15
View File
@@ -39,7 +39,7 @@ You can invoke two types of test suite runs:
The names of the full test suite make targets have the same naming as in the CI pipeline.
For example `make -C tests/acceptance/docker localApiTests-apiBugDemonstration-ocis` runs the same tests as the `localApiTests-apiBugDemonstration-ocis` CI pipeline, which runs the oCIS test suite "apiBugDemonstration" against an oCIS with oCIS storage.
For example `make -C tests/acceptance/docker localApiTests-apiAccountsHashDifficulty-ocis` runs the same tests as the `localApiTests-apiAccountsHashDifficulty-ocis` CI pipeline, which runs the oCIS test suite "apiAccountsHashDifficulty" against an oCIS with oCIS storage.
For example `make -C tests/acceptance/docker Core-API-Tests-owncloud-storage-3`runs the same tests as the `Core-API-Tests-owncloud-storage-3` CI pipeline, which runs the third (out of ten) ownCloud test suite against an oCIS with owncloud storage.
@@ -48,7 +48,7 @@ For example `make -C tests/acceptance/docker Core-API-Tests-owncloud-storage-3`r
The single feature tests can also be run against the different storage backends. Therefore multiple make targets with the schema test-<test source>-feature-<storage backend> exists. For selecting a single feature test you have to add an additional `BEHAT_FEATURE=...` parameter when invoking the make command:
```
make -C tests/acceptance/docker test-ocis-feature-ocis BEHAT_FEATURE='tests/acceptance/features/apiBugDemonstration/apiAuthOcs-ocsDELETEAuth.feature'
make -C tests/acceptance/docker test-ocis-feature-ocis BEHAT_FEATURE='tests/acceptance/features/apiAccountsHashDifficulty/addUser.feature'
```
This must be pointing to a valid feature definition.
@@ -58,7 +58,7 @@ This must be pointing to a valid feature definition.
By default the tests will be run against docker image built from your current working state of the oCIS repository. For some purposes it might also be handy to use a oCIS image from Docker Hub. Therefore you can provide the optional flag `OCIS_IMAGE_TAG=...` which must contain an available docker tag of the [owncloud/ocis registry on Docker Hub](https://hub.docker.com/r/owncloud/ocis) (eg. 'latest').
```
make -C tests/acceptance/docker localApiTests-apiBugDemonstration-ocis OCIS_IMAGE_TAG=latest
make -C tests/acceptance/docker localApiTests-apiAccountsHashDifficulty-ocis OCIS_IMAGE_TAG=latest
```
### Test log output
@@ -139,20 +139,17 @@ Every scenario that does not work in oCIS with "ocis" storage, is listed in `tes
Those scenarios are run in the ordinary acceptance test pipeline in CI. The scenarios that fail are checked against the
expected failures. If there are any differences then the CI pipeline fails.
Similarly, scenarios that do not work in oCIS with EOS storage are listed in `tests/acceptance/expected-failures-on-EOS-storage.md`.
Additionally, some issues have scenarios that demonstrate the current buggy behaviour in ocis(reva).
Those scenarios are in this ocis repository in `tests/acceptance/features/apiBugDemonstration`.
Have a look into the [documentation](https://doc.owncloud.com/server/developer_manual/testing/acceptance-tests.html#writing-scenarios-for-bugs) to understand why we are writing those tests.
If you want to work on a specific issue
1. adjust the core commit id to the latest commit in core so that CI will run the latest test code and scenarios from core.
1. adjust the core commit id to the latest commit in core so that CI will run the latest test code and scenarios from core.
For that change `CORE_COMMITID` in `.drone.env`:
# The test runner source for API tests
CORE_COMMITID=38c91e5cf5fc4ffdc0536ba1d147a2a618ef83b5
CORE_BRANCH=master
2. locally run each of the tests marked with that issue in the expected failures file.
2. locally run each of the tests marked with that issue in the expected failures file.
E.g.:
@@ -164,10 +161,8 @@ If you want to work on a specific issue
BEHAT_FEATURE='tests/acceptance/features/apiComments/comments.feature:123'
```
3. the tests will fail, try to understand how and why they are failing
4. fix the code
5. go back to 2. and repeat till the tests are passing.
6. remove those tests from the expected failures file
7. run each of the local tests that were demonstrating the **buggy** behavior. They should fail.
8. delete each of the local tests that were demonstrating the **buggy** behavior.
9. make a PR that has the fixed code, relevant lines removed from the expected failures file and bug demonstration tests deleted.
3. the tests will fail, try to understand how and why they are failing
4. fix the code
5. go back to 2. and repeat till the tests are passing.
6. remove those tests from the expected failures file
7. make a PR that has the fixed code, and the relevant lines removed from the expected failures file.