test case for root url redirection
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
3d056418b9
commit
addcdc49c2
|
|
@ -32,6 +32,12 @@ func TestMakeHandler(t *testing.T) {
|
|||
ExpectedStatus int
|
||||
ExpectedURL string
|
||||
}{
|
||||
{
|
||||
Name: "/",
|
||||
Request: httptest.NewRequest("GET", "http://localhost:8080/", nil),
|
||||
ExpectedStatus: http.StatusPermanentRedirect,
|
||||
ExpectedURL: infoURL,
|
||||
},
|
||||
{
|
||||
Name: "/v3/",
|
||||
Request: httptest.NewRequest("GET", "http://localhost:8080/v3/", nil),
|
||||
|
|
|
|||
Loading…
Reference in New Issue