make fmt
This commit is contained in:
@@ -118,11 +118,11 @@ func TestAPI_ErrorPaths(t *testing.T) {
|
||||
assertStatus(t, apiPost(t, env.BaseURL+"/api/redirection-hosts/bad/enable", nil, token), http.StatusBadRequest)
|
||||
|
||||
first := apiPost(t, env.BaseURL+"/api/redirection-hosts", map[string]any{
|
||||
"domainNames": []string{"dup-redir.example"},
|
||||
"forwardDomainName": "target.example",
|
||||
"forwardScheme": "https",
|
||||
"preservePath": true,
|
||||
"enabled": true,
|
||||
"domainNames": []string{"dup-redir.example"},
|
||||
"forwardDomainName": "target.example",
|
||||
"forwardScheme": "https",
|
||||
"preservePath": true,
|
||||
"enabled": true,
|
||||
}, token)
|
||||
if first.StatusCode != http.StatusCreated {
|
||||
t.Fatalf("redir create: %d %s", first.StatusCode, readBody(first))
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
type testServerMode int
|
||||
|
||||
const (
|
||||
testServerAPI testServerMode = iota
|
||||
testServerAPI testServerMode = iota
|
||||
testServerAdmin
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user