Handling request validation/authentication

This commit is contained in:
Deluan
2016-02-24 18:06:49 -05:00
parent 9a55fa1c64
commit 975327a6cb
14 changed files with 220 additions and 14 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import (
. "github.com/smartystreets/goconvey/convey"
"encoding/xml"
"fmt"
"github.com/deluan/gosonic/tests"
)
func init() {
@@ -22,7 +23,7 @@ func init() {
// TestGet is a sample to run an endpoint test
func TestGetLicense(t *testing.T) {
r, _ := http.NewRequest("GET", "/rest/getLicense.view", nil)
r, _ := http.NewRequest("GET", test.AddParams("/rest/getLicense.view"), nil)
w := httptest.NewRecorder()
beego.BeeApp.Handlers.ServeHTTP(w, r)