From 440851a305b1a588a772531380d41f3ee2f402e4 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 26 Jan 2024 13:19:31 +0800 Subject: [PATCH] :test_cube: Upgrade testing data schema to v2 --- config/example.toml | 15 ++++++++------- test/roadsign-spa/config/example.toml | 9 +++++++++ test/roadsign-spa/config/example.yaml | 8 -------- test/roadsign-ssr/config/example.toml | 15 +++++++++++++++ test/roadsign-ssr/config/example.yaml | 12 ------------ test/roadsign-with-prefork/config/example.toml | 9 +++++++++ test/roadsign-with-prefork/config/example.yaml | 8 -------- 7 files changed, 41 insertions(+), 35 deletions(-) create mode 100644 test/roadsign-spa/config/example.toml delete mode 100644 test/roadsign-spa/config/example.yaml create mode 100644 test/roadsign-ssr/config/example.toml delete mode 100644 test/roadsign-ssr/config/example.yaml create mode 100644 test/roadsign-with-prefork/config/example.toml delete mode 100644 test/roadsign-with-prefork/config/example.yaml diff --git a/config/example.toml b/config/example.toml index d08152b..6a1957d 100644 --- a/config/example.toml +++ b/config/example.toml @@ -14,6 +14,7 @@ host = ["localhost:4321"] path = ["/"] [[locations.destinations]] id = "example-warden-destination" +uri = "http://localhost:4321" [[applications]] id = "example-warden-app" @@ -21,10 +22,10 @@ workdir = "test/data/warden" command = ["node", "dist/server/entry.mjs"] environment = ["PUBLIC_CMS=https://smartsheep.studio"] -# [[locations]] -# id = "example-location" -# host = ["localhost:8000"] -# path = ["/"] -# [[locations.destinations]] -# id = "example-destination" -# uri = "files://test/data" \ No newline at end of file +[[locations]] +id = "example-static" +host = ["localhost:8000"] +path = ["/roadsign"] +[[locations.destinations]] +id = "example-static-destination" +uri = "files://test/data" \ No newline at end of file diff --git a/test/roadsign-spa/config/example.toml b/test/roadsign-spa/config/example.toml new file mode 100644 index 0000000..5fedd0c --- /dev/null +++ b/test/roadsign-spa/config/example.toml @@ -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" \ No newline at end of file diff --git a/test/roadsign-spa/config/example.yaml b/test/roadsign-spa/config/example.yaml deleted file mode 100644 index f94fd66..0000000 --- a/test/roadsign-spa/config/example.yaml +++ /dev/null @@ -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 diff --git a/test/roadsign-ssr/config/example.toml b/test/roadsign-ssr/config/example.toml new file mode 100644 index 0000000..3300ab2 --- /dev/null +++ b/test/roadsign-ssr/config/example.toml @@ -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"] \ No newline at end of file diff --git a/test/roadsign-ssr/config/example.yaml b/test/roadsign-ssr/config/example.yaml deleted file mode 100644 index b061b3f..0000000 --- a/test/roadsign-ssr/config/example.yaml +++ /dev/null @@ -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"] diff --git a/test/roadsign-with-prefork/config/example.toml b/test/roadsign-with-prefork/config/example.toml new file mode 100644 index 0000000..5fedd0c --- /dev/null +++ b/test/roadsign-with-prefork/config/example.toml @@ -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" \ No newline at end of file diff --git a/test/roadsign-with-prefork/config/example.yaml b/test/roadsign-with-prefork/config/example.yaml deleted file mode 100644 index 2a46d7d..0000000 --- a/test/roadsign-with-prefork/config/example.yaml +++ /dev/null @@ -1,8 +0,0 @@ -name: Example Site -rules: - - host: ["localhost:8000"] - path: ["/"] -upstreams: - - id: example - name: Benchmarking Data - uri: files://../data