Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-11-29 17:30:31 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-11-29 17:30:31 +0300
commit1d40c784c28bc4fd4510f843354224655ce7ec6e (patch)
tree933c79eaefa3d7a8298d092318d0821f61f53436
parentd8535b5c20a0ee10652bb8f7c11a11ecd3a34aeb (diff)
Pretty print new JSON test data / fixtures
-rw-r--r--internal/source/gitlab/client/testdata/test.gitlab.io.json37
-rw-r--r--shared/lookups/new-source-test.gitlab.io.json17
2 files changed, 52 insertions, 2 deletions
diff --git a/internal/source/gitlab/client/testdata/test.gitlab.io.json b/internal/source/gitlab/client/testdata/test.gitlab.io.json
index a13c2c85..923c7344 100644
--- a/internal/source/gitlab/client/testdata/test.gitlab.io.json
+++ b/internal/source/gitlab/client/testdata/test.gitlab.io.json
@@ -1 +1,36 @@
-{"certificate":"some--cert","key":"some--key","lookup_paths":[{"project_id":123,"access_control":false,"https_only":true,"prefix":"/my/pages/project","source":{"type":"file","path":"/some/path/to/project/"}},{"project_id":124,"access_control":false,"https_only":true,"prefix":"/my/second-project","source":{"type":"file","path":"/some/path/to/project-2/"}},{"project_id":125,"access_control":false,"https_only":true,"prefix":"/","source":{"type":"file","path":"/some/path/to/project-3/"}}]}
+{
+ "certificate": "some--cert",
+ "key": "some--key",
+ "lookup_paths": [
+ {
+ "access_control": false,
+ "https_only": true,
+ "prefix": "/my/pages/project",
+ "project_id": 123,
+ "source": {
+ "path": "/some/path/to/project/",
+ "type": "file"
+ }
+ },
+ {
+ "access_control": false,
+ "https_only": true,
+ "prefix": "/my/second-project",
+ "project_id": 124,
+ "source": {
+ "path": "/some/path/to/project-2/",
+ "type": "file"
+ }
+ },
+ {
+ "access_control": false,
+ "https_only": true,
+ "prefix": "/",
+ "project_id": 125,
+ "source": {
+ "path": "/some/path/to/project-3/",
+ "type": "file"
+ }
+ }
+ ]
+}
diff --git a/shared/lookups/new-source-test.gitlab.io.json b/shared/lookups/new-source-test.gitlab.io.json
index 8ff94e78..0332b6c2 100644
--- a/shared/lookups/new-source-test.gitlab.io.json
+++ b/shared/lookups/new-source-test.gitlab.io.json
@@ -1 +1,16 @@
-{"certificate":"","key":"","lookup_paths":[{"project_id":123,"access_control":false,"https_only":false,"prefix":"/my/pages/project","source":{"type":"file","path":"/group/new-source-test.gitlab.io/public"}}]}
+{
+ "certificate": "",
+ "key": "",
+ "lookup_paths": [
+ {
+ "access_control": false,
+ "https_only": false,
+ "prefix": "/my/pages/project",
+ "project_id": 123,
+ "source": {
+ "path": "/group/new-source-test.gitlab.io/public",
+ "type": "file"
+ }
+ }
+ ]
+}