:test_cube: Upgrade testing data schema to v2

This commit is contained in:
LittleSheep 2024-01-26 13:19:31 +08:00
parent 61d30315ec
commit 440851a305
7 changed files with 41 additions and 35 deletions

View File

@ -14,6 +14,7 @@ host = ["localhost:4321"]
path = ["/"] path = ["/"]
[[locations.destinations]] [[locations.destinations]]
id = "example-warden-destination" id = "example-warden-destination"
uri = "http://localhost:4321"
[[applications]] [[applications]]
id = "example-warden-app" id = "example-warden-app"
@ -21,10 +22,10 @@ workdir = "test/data/warden"
command = ["node", "dist/server/entry.mjs"] command = ["node", "dist/server/entry.mjs"]
environment = ["PUBLIC_CMS=https://smartsheep.studio"] environment = ["PUBLIC_CMS=https://smartsheep.studio"]
# [[locations]] [[locations]]
# id = "example-location" id = "example-static"
# host = ["localhost:8000"] host = ["localhost:8000"]
# path = ["/"] path = ["/roadsign"]
# [[locations.destinations]] [[locations.destinations]]
# id = "example-destination" id = "example-static-destination"
# uri = "files://test/data" uri = "files://test/data"

View File

@ -0,0 +1,9 @@
id = "example"
[[locations]]
id = "example-location"
host = ["localhost:8000"]
path = ["/"]
[[locations.destinations]]
id = "example-destination"
uri = "files://../data/spa?fallback=index.html"

View File

@ -1,8 +0,0 @@
name: Example Site
rules:
- host: ["localhost:8000"]
path: ["/"]
upstreams:
- id: example
name: Benchmarking Data
uri: files://../data/spa?fallback=index.html

View File

@ -0,0 +1,15 @@
id = "example-region"
[[locations]]
id = "example-warden"
host = ["localhost:8000"]
path = ["/"]
[[locations.destinations]]
id = "example-warden-destination"
uri = "http://localhost:4321"
[[applications]]
id = "example-warden-app"
workdir = "../data/warden"
command = ["node", "dist/server/entry.mjs"]
environment = ["PUBLIC_CMS=https://smartsheep.studio"]

View File

@ -1,12 +0,0 @@
name: Example Site
rules:
- host: ["localhost:8000"]
path: ["/"]
upstreams:
- id: example
name: Benchmarking Data
uri: http://localhost:3000
processes:
- id: nuxt-ssr
workdir: ../data/ssr
command: ["node", ".output/server/index.mjs"]

View File

@ -0,0 +1,9 @@
id = "example"
[[locations]]
id = "example-location"
host = ["localhost:8000"]
path = ["/"]
[[locations.destinations]]
id = "example-destination"
uri = "files://../data/spa?fallback=index.html"

View File

@ -1,8 +0,0 @@
name: Example Site
rules:
- host: ["localhost:8000"]
path: ["/"]
upstreams:
- id: example
name: Benchmarking Data
uri: files://../data