add static redirect
This commit is contained in:
parent
993caf5058
commit
c6dd1dccc3
5 changed files with 21 additions and 36 deletions
|
@ -333,10 +333,7 @@ func TestServerResponseEmptyBackend(t *testing.T) {
|
|||
dynamicConfigs := types.Configurations{"config": test.config(testServer.URL)}
|
||||
|
||||
srv := NewServer(globalConfig, nil, entryPointsConfig)
|
||||
entryPoints, err := srv.loadConfig(dynamicConfigs, globalConfig)
|
||||
if err != nil {
|
||||
t.Fatalf("error loading config: %s", err)
|
||||
}
|
||||
entryPoints := srv.loadConfig(dynamicConfigs, globalConfig)
|
||||
|
||||
responseRecorder := &httptest.ResponseRecorder{}
|
||||
request := httptest.NewRequest(http.MethodGet, testServer.URL+requestPath, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue