You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
410 B
23 lines
410 B
package keycloak
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetUsers(t *testing.T) {
|
|
var c = initTest(t)
|
|
var users []UserRepresentation
|
|
{
|
|
var err error
|
|
users, err = c.GetUsers("master")
|
|
require.Nil(t, err, "could not get users")
|
|
}
|
|
for _, i := range users {
|
|
fmt.Println(i.Credentials)
|
|
assert.NotZero(t, *i.Username)
|
|
}
|
|
}
|
|
|