mirror of
https://github.com/simon987/ws_bucket.git
synced 2025-12-14 07:09:07 +00:00
Remove multi-user auth
This commit is contained in:
@@ -1,24 +1 @@
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user