-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
browse: align template to struct field renames from 4940325 (#3706)
- Loading branch information
1 parent
04f50a9
commit d4f2497
Showing
2 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package integration | ||
|
||
import ( | ||
"net/http" | ||
"testing" | ||
|
||
"github.com/caddyserver/caddy/v2/caddytest" | ||
) | ||
|
||
func TestBrowse(t *testing.T) { | ||
tester := caddytest.NewTester(t) | ||
tester.InitServer(` | ||
{ | ||
http_port 9080 | ||
https_port 9443 | ||
} | ||
http://localhost:9080 { | ||
file_server browse | ||
} | ||
`, "caddyfile") | ||
|
||
req, err := http.NewRequest(http.MethodGet, "http://localhost:9080/", nil) | ||
if err != nil { | ||
t.Fail() | ||
return | ||
} | ||
tester.AssertResponseCode(req, 200) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters