minimum viable (excluding auth)

This commit is contained in:
simon987
2019-03-09 09:20:51 -05:00
parent 5a7f3316e6
commit 6048cfbebc
11 changed files with 812 additions and 0 deletions

24
test/auth_test.go Normal file
View File

@@ -0,0 +1,24 @@
package test
import (
"github.com/simon987/ws_bucket/api"
"testing"
)
func TestCreateClient(t *testing.T) {
r := createClient(api.CreateClientRequest{
Alias: "testcreateclient",
})
if r.Ok != true {
t.Error()
}
}
func createClient(request api.CreateClientRequest) (ar *api.CreateClientResponse) {
resp := Post("/client", request)
UnmarshalResponse(resp, &ar)
return
}