|
@@ -17,7 +17,7 @@ import ( |
|
|
func TestVersion(t *testing.T) { |
|
|
func TestVersion(t *testing.T) { |
|
|
prepareTestEnv(t) |
|
|
prepareTestEnv(t) |
|
|
|
|
|
|
|
|
setting.AppVer = "1.1.0+dev" |
|
|
|
|
|
|
|
|
setting.AppVer = "test-version-1" |
|
|
req := NewRequest(t, "GET", "/api/v1/version") |
|
|
req := NewRequest(t, "GET", "/api/v1/version") |
|
|
resp := MakeRequest(t, req, http.StatusOK) |
|
|
resp := MakeRequest(t, req, http.StatusOK) |
|
|
|
|
|
|
|
|