tests: update ocm setup and docs

docs: separate provider config

tests: substitution for local and remote server urls

tests: create local configs

tests: fix vscode debugger config

tests: separate federation share steps
This commit is contained in:
Saw-jan
2024-11-11 14:37:52 +05:45
parent 22d80256d6
commit c3b442491d
18 changed files with 576 additions and 420 deletions
@@ -1,15 +0,0 @@
---
# OpenID Connect client registry.
clients:
- id: web
name: OCIS
application_type: web
trusted: yes
redirect_uris:
- https://ocis-server:9200/oidc-callback.html
- https://ocis-server:9200/
origins:
- https://ocis-server:9200
authorities:
+40 -40
View File
@@ -1,46 +1,46 @@
[
{
"name": "ocis-server",
"full_name": "first-ocis-instance",
"organization": "Owncloud",
"domain": "ocis-server:9200",
"homepage": "https://owncloud.com",
"services": [
{
"endpoint": {
"type": {
"name": "OCM",
"description": "CERNBox Open Cloud Mesh API"
},
"name": "CERNBox - OCM API",
"path": "https://ocis-server:9200/ocm/",
"is_monitored": true
},
"api_version": "0.0.1",
"host": "ocis-server:9200"
}
]
"name": "ocis-server",
"full_name": "first-ocis-instance",
"organization": "Owncloud",
"domain": "ocis-server:9200",
"homepage": "https://owncloud.com",
"services": [
{
"endpoint": {
"type": {
"name": "OCM",
"description": "CERNBox Open Cloud Mesh API"
},
"name": "CERNBox - OCM API",
"path": "https://ocis-server:9200/ocm/",
"is_monitored": true
},
"api_version": "0.0.1",
"host": "ocis-server:9200"
}
]
},
{
"name": "federation-ocis-server",
"full_name": "Federation ocis",
"organization": "Owncloud",
"domain": "federation-ocis-server:10200",
"homepage": "https://owncloud.com",
"services": [
{
"endpoint": {
"type": {
"name": "OCM",
"description": "CERNBox Open Cloud Mesh API"
},
"name": "CERNBox - OCM API",
"path": "https://federation-ocis-server:10200/ocm/",
"is_monitored": true
},
"api_version": "0.0.1",
"host": "federation-ocis-server:10200"
}
]
"name": "federation-ocis-server",
"full_name": "Federation ocis",
"organization": "Owncloud",
"domain": "federation-ocis-server:10200",
"homepage": "https://owncloud.com",
"services": [
{
"endpoint": {
"type": {
"name": "OCM",
"description": "CERNBox Open Cloud Mesh API"
},
"name": "CERNBox - OCM API",
"path": "https://federation-ocis-server:10200/ocm/",
"is_monitored": true
},
"api_version": "0.0.1",
"host": "federation-ocis-server:10200"
}
]
}
]
@@ -1,4 +1,7 @@
export OCM_OCM_PROVIDER_AUTHORIZER_PROVIDERS_FILE=tests/config/drone/providers.json
#!/bin/bash
export WEB_UI_CONFIG_FILE=tests/config/local/fed-ocis-web.json
export OCM_OCM_PROVIDER_AUTHORIZER_PROVIDERS_FILE=tests/config/local/providers.json
export OCM_OCM_INVITE_MANAGER_INSECURE=true
export OCM_OCM_SHARE_PROVIDER_INSECURE=true
export OCM_OCM_STORAGE_PROVIDER_INSECURE=true
@@ -7,7 +10,7 @@ export OCIS_CONFIG_DIR=${HOME}/.ocis-10200/config
export OCIS_EVENTS_ENDPOINT=127.0.0.1:10233
export OCIS_LDAP_URI=ldaps://localhost:10235
export OCIS_RUNTIME_PORT=10250
export OCIS_URL=https://federation-ocis-server:10200
export OCIS_URL=https://localhost:10200
export OCIS_ADD_RUN_SERVICES=ocm
export OCIS_ENABLE_OCM=true
export APP_PROVIDER_DEBUG_ADDR=127.0.0.1:10165
+31
View File
@@ -0,0 +1,31 @@
{
"server": "https://localhost:10200",
"theme": "https://localhost:10200/themes/owncloud/theme.json",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://localhost:10200/.well-known/openid-configuration",
"authority": "https://localhost:10200",
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
},
"options": {
"topCenterNotifications": true,
"displayResourcesLazy": false,
"sidebar": {
"shares": {
"showAllOnLoad": true
}
}
},
"apps": [
"files",
"ocm",
"text-editor",
"preview",
"pdf-viewer",
"search",
"admin-settings",
"app-store"
]
}
+31
View File
@@ -0,0 +1,31 @@
{
"server": "https://localhost:9200",
"theme": "https://localhost:9200/themes/owncloud/theme.json",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://localhost:9200/.well-known/openid-configuration",
"authority": "https://localhost:9200",
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
},
"options": {
"topCenterNotifications": true,
"displayResourcesLazy": false,
"sidebar": {
"shares": {
"showAllOnLoad": true
}
}
},
"apps": [
"files",
"ocm",
"text-editor",
"preview",
"pdf-viewer",
"search",
"admin-settings",
"app-store"
]
}
+46
View File
@@ -0,0 +1,46 @@
[
{
"name": "ocis-server",
"full_name": "first-ocis-instance",
"organization": "Owncloud",
"domain": "localhost:9200",
"homepage": "https://owncloud.com",
"services": [
{
"endpoint": {
"type": {
"name": "OCM",
"description": "CERNBox Open Cloud Mesh API"
},
"name": "CERNBox - OCM API",
"path": "https://localhost:9200/ocm/",
"is_monitored": true
},
"api_version": "0.0.1",
"host": "localhost:9200"
}
]
},
{
"name": "federation-ocis-server",
"full_name": "Federation ocis",
"organization": "Owncloud",
"domain": "localhost:10200",
"homepage": "https://owncloud.com",
"services": [
{
"endpoint": {
"type": {
"name": "OCM",
"description": "CERNBox Open Cloud Mesh API"
},
"name": "CERNBox - OCM API",
"path": "https://localhost:10200/ocm/",
"is_monitored": true
},
"api_version": "0.0.1",
"host": "localhost:10200"
}
]
}
]