mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-09 18:51:00 +08:00
tests working locally
This commit is contained in:
@@ -80,7 +80,7 @@ func api(t *testing.T, data interface{}, method, url, authorization string) (*ht
|
||||
}
|
||||
|
||||
func addAdmin(t *testing.T) {
|
||||
var admin models.User
|
||||
var admin models.UserAuthParams
|
||||
admin.UserName = "admin"
|
||||
admin.Password = "password"
|
||||
response, err := api(t, admin, http.MethodPost, baseURL+"/api/users/adm/createadmin", "secretkey")
|
||||
|
Reference in New Issue
Block a user