mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 13:19:37 -05:00
[GITEA] Enable mocked HTTP responses for GitLab migration test
This commit is contained in:
parent
bd71bdda26
commit
f609d00e1b
17 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func NewMockWebServer(t *testing.T, liveServerBaseURL, testDataDir string, liveM
|
||||||
path := NormalizedFullPath(r.URL)
|
path := NormalizedFullPath(r.URL)
|
||||||
log.Info("Mock HTTP Server: got request for path %s", r.URL.Path)
|
log.Info("Mock HTTP Server: got request for path %s", r.URL.Path)
|
||||||
// TODO check request method (support POST?)
|
// TODO check request method (support POST?)
|
||||||
fixturePath := fmt.Sprintf("%s/%s", testDataDir, strings.ReplaceAll(path, "/", "_"))
|
fixturePath := fmt.Sprintf("%s/%s", testDataDir, strings.NewReplacer("/", "_", "?", "!").Replace(path))
|
||||||
if liveMode {
|
if liveMode {
|
||||||
liveURL := fmt.Sprintf("%s%s", liveServerBaseURL, path)
|
liveURL := fmt.Sprintf("%s%s", liveServerBaseURL, path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue