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:
authorKrasimir Angelov <kangelov@gitlab.com>2019-12-11 07:59:37 +0300
committerKrasimir Angelov <kangelov@gitlab.com>2019-12-12 11:49:46 +0300
commita0fe1ec1de472439430679330b374e1cbe60652e (patch)
treebb4143741c6fcdf244865895447167cd4fab9352 /internal/source/gitlab/client/testdata
parent860072e9807e8ab8ce6b213f4f72f42d91c1ad70 (diff)
Fix different issues with slashes
Update code and tests to handle the fact thet API will always return prefix surrounded with slashes (e.g. `/prefix/`) and source.path with trailing slash (e.g. `path/to/public/`).
Diffstat (limited to 'internal/source/gitlab/client/testdata')
-rw-r--r--internal/source/gitlab/client/testdata/test.gitlab.io.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/source/gitlab/client/testdata/test.gitlab.io.json b/internal/source/gitlab/client/testdata/test.gitlab.io.json
index 923c7344..e3430119 100644
--- a/internal/source/gitlab/client/testdata/test.gitlab.io.json
+++ b/internal/source/gitlab/client/testdata/test.gitlab.io.json
@@ -5,20 +5,20 @@
{
"access_control": false,
"https_only": true,
- "prefix": "/my/pages/project",
+ "prefix": "/my/pages/project/",
"project_id": 123,
"source": {
- "path": "/some/path/to/project/",
+ "path": "some/path/to/project/",
"type": "file"
}
},
{
"access_control": false,
"https_only": true,
- "prefix": "/my/second-project",
+ "prefix": "/my/second-project/",
"project_id": 124,
"source": {
- "path": "/some/path/to/project-2/",
+ "path": "some/path/to/project-2/",
"type": "file"
}
},
@@ -28,7 +28,7 @@
"prefix": "/",
"project_id": 125,
"source": {
- "path": "/some/path/to/project-3/",
+ "path": "some/path/to/project-3/",
"type": "file"
}
}