switch tests to yaml config

This commit is contained in:
Willy Kloucek
2022-03-28 12:54:28 +02:00
parent a81ba03d55
commit 5d19062075
3 changed files with 55 additions and 110 deletions
+1 -1
View File
@@ -2272,7 +2272,7 @@ def copyConfigs():
"commands": [
# ocis proxy config
"mkdir -p /etc/ocis",
"cp %s/ocis/proxy.json /etc/ocis/proxy.json" % (PARALLEL_DEPLOY_CONFIG_PATH),
"cp %s/ocis/proxy.yaml /etc/ocis/proxy.yaml" % (PARALLEL_DEPLOY_CONFIG_PATH),
# oc10 configs
"mkdir -p /etc/templates",
"mkdir -p /etc/pre_server.d",
@@ -1,109 +0,0 @@
{
"log": {
"level": "PROXY_LOG_LEVEL"
},
"policy_selector": {
"claims": {
"default_policy": "oc10",
"unauthenticated_policy": "oc10"
}
},
"policies": [
{
"name": "ocis",
"routes": [
{
"endpoint": "/",
"backend": "http://localhost:9100"
},
{
"endpoint": "/.well-known/",
"backend": "http://localhost:9130"
},
{
"type": "regex",
"endpoint": "/ocs/v[12].php/cloud/user/signing-key",
"backend": "http://localhost:9110"
},
{
"endpoint": "/ocs/",
"backend": "http://localhost:9140"
},
{
"type": "query",
"endpoint": "/remote.php/?preview=1",
"backend": "http://localhost:9115"
},
{
"endpoint": "/remote.php/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/dav/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/webdav/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/status.php",
"backend": "http://localhost:9140"
},
{
"endpoint": "/index.php/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/index.php/login",
"backend": "http://localhost:9100"
},
{
"endpoint": "/login",
"backend": "http://localhost:9100"
},
{
"endpoint": "/data",
"backend": "http://localhost:9140"
},
{
"endpoint": "/graph/",
"backend": "http://localhost:9120"
},
{
"endpoint": "/app/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/archiver",
"backend": "http://localhost:9140"
},
{
"endpoint": "/graph-explorer/",
"backend": "http://localhost:9135"
},
{
"endpoint": "/api/v0/settings",
"backend": "http://localhost:9190"
},
{
"endpoint": "/settings.js",
"backend": "http://localhost:9190"
}
]
},
{
"name": "oc10",
"routes": [
{
"endpoint": "/",
"backend": "http://oc10:8080"
},
{
"endpoint": "/data",
"backend": "http://localhost:9140"
}
]
}
]
}
@@ -0,0 +1,54 @@
---
policy_selector:
claims:
default_policy: oc10
unauthenticated_policy: oc10
policies:
- name: ocis
routes:
- endpoint: "/"
backend: http: //localhost:9100
- endpoint: "/.well-known/"
backend: http: //localhost:9130
- type: regex
endpoint: "/ocs/v[12].php/cloud/user/signing-key"
backend: http: //localhost:9110
- endpoint: "/ocs/"
backend: http: //localhost:9140
- type: query
endpoint: "/remote.php/?preview=1"
backend: http: //localhost:9115
- endpoint: "/remote.php/"
backend: http: //localhost:9140
- endpoint: "/dav/"
backend: http: //localhost:9140
- endpoint: "/webdav/"
backend: http: //localhost:9140
- endpoint: "/status.php"
backend: http: //localhost:9140
- endpoint: "/index.php/"
backend: http: //localhost:9140
- endpoint: "/index.php/login"
backend: http: //localhost:9100
- endpoint: "/login"
backend: http: //localhost:9100
- endpoint: "/data"
backend: http: //localhost:9140
- endpoint: "/graph/"
backend: http: //localhost:9120
- endpoint: "/app/"
backend: http: //localhost:9140
- endpoint: "/archiver"
backend: http: //localhost:9140
- endpoint: "/graph-explorer/"
backend: http: //localhost:9135
- endpoint: "/api/v0/settings"
backend: http: //localhost:9190
- endpoint: "/settings.js"
backend: http: //localhost:9190
- name: oc10
routes:
- endpoint: "/"
backend: http: //oc10:8080
- endpoint: "/data"
backend: http: //localhost:9140