fix after review

This commit is contained in:
Viktor Scharf
2024-06-27 12:03:39 +02:00
parent 3f26ac5243
commit e1143dc791
5 changed files with 20 additions and 21 deletions

View File

@@ -2090,22 +2090,8 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
"%s/bin/ociswrapper serve --bin %s --url %s --admin-username admin --admin-password admin" % (dirs["ocisWrapper"], ocis_bin, environment["OCIS_URL"]),
]
ocis = {
"name": container_name,
"image": OC_CI_GOLANG,
"detach": True,
"environment": environment,
"user": user,
"commands": [
"%s init --insecure true" % ocis_bin,
"cat $OCIS_CONFIG_DIR/ocis.yaml",
] + wrapper_commands,
"volumes": volumes,
"depends_on": depends_on,
}
wait_for_ocis = {
"name": "wait-for-%s" % (ocis["name"]),
"name": "wait-for-%s" % (container_name),
"image": OC_CI_ALPINE,
"commands": [
# wait for ocis-server to be ready (5 minutes)
@@ -2117,7 +2103,19 @@ def ocisServer(storage, accounts_hash_difficulty = 4, volumes = [], depends_on =
}
return [
ocis,
{
"name": container_name,
"image": OC_CI_GOLANG,
"detach": True,
"environment": environment,
"user": user,
"commands": [
"%s init --insecure true" % ocis_bin,
"cat $OCIS_CONFIG_DIR/ocis.yaml",
] + (wrapper_commands),
"volumes": volumes,
"depends_on": depends_on,
},
wait_for_ocis,
]

5
.vscode/launch.json vendored
View File

@@ -95,7 +95,6 @@
"OCIS_LDAP_URI": "ldaps://localhost:10235",
"OCIS_RUNTIME_PORT": "10250",
"OCIS_URL": "https://federation-ocis-server:10200",
// "OCIS_OIDC_ISSUER": "federation-ocis-server",
"FRONTEND_OCS_LIST_OCM_SHARES": "true",
"FRONTEND_ENABLE_FEDERATED_SHARING_INCOMING": "true",
"FRONTEND_ENABLE_FEDERATED_SHARING_OUTGOING": "true",
@@ -187,9 +186,9 @@
"OCIS_LOG_COLOR": "true",
"PROXY_ENABLE_BASIC_AUTH": "true",
"IDM_CREATE_DEMO_USERS": "true",
"OCIS_ADMIN_USER_ID": "some-admin-user-id-0000-000000000000", // FIXME currently must have the length of a UUID, see reva/pkg/storage/utils/decomposedfs/spaces.go:228
"OCIS_ADMIN_USER_ID": "some-admin-user-id-0000-000000000000",
"IDM_ADMIN_PASSWORD": "admin",
"OCIS_SYSTEM_USER_ID": "some-system-user-id-000-000000000000", // FIXME currently must have the length of a UUID, see reva/pkg/storage/utils/decomposedfs/spaces.go:228
"OCIS_SYSTEM_USER_ID": "some-system-user-id-000-000000000000",
"OCIS_SYSTEM_USER_API_KEY": "some-system-user-machine-auth-api-key",
"OCIS_JWT_SECRET": "some-ocis-jwt-secret",
"OCIS_MACHINE_AUTH_API_KEY": "some-ocis-machine-auth-api-key",

View File

@@ -587,6 +587,8 @@ To enable ocm in the web interface, you need to set the following envs:
`FRONTEND_OCS_LIST_OCM_SHARES=true` \
`FRONTEND_ENABLE_FEDERATED_SHARING_INCOMING=true` \
`FRONTEND_ENABLE_FEDERATED_SHARING_OUTGOING=true`
and put `ocm` to apps https://github.com/owncloud/ocis/blob/master/services/web/pkg/config/defaults/defaultconfig.go#L101
{{< /hint>}}
#### Run the Acceptance Test

View File

@@ -98,7 +98,7 @@ func DefaultConfig() *config.Config {
ResponseType: "code",
Scope: "openid profile email",
},
Apps: []string{"files", "search", "text-editor", "pdf-viewer", "external", "admin-settings", "epub-reader", "draw-io", "ocm"},
Apps: []string{"files", "search", "text-editor", "pdf-viewer", "external", "admin-settings", "epub-reader", "draw-io"},
ExternalApps: []config.ExternalApp{
{
ID: "preview",

View File

@@ -1,4 +1,4 @@
@ocm @skipOnReva
@ocm
Feature: an user shares resources usin ScienceMesh application
As a user
I want to share resources between different ocis instances