2021-08-18 20:18:39 +02:00
|
|
|
package query
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2021-08-20 00:10:26 +02:00
|
|
|
func TestRegisteredUsers(t *testing.T) {
|
|
|
|
t.Run("success", func(t *testing.T) {
|
|
|
|
users := RegisteredUsers()
|
|
|
|
|
2021-08-18 20:18:39 +02:00
|
|
|
for _, user := range users {
|
2022-09-28 09:01:17 +02:00
|
|
|
t.Logf("user: %v, %s, %s, %s", user.ID, user.UserUID, user.Name(), user.DisplayName)
|
2021-08-18 20:18:39 +02:00
|
|
|
}
|
2021-08-20 00:10:26 +02:00
|
|
|
|
|
|
|
t.Logf("user count: %v", len(users))
|
|
|
|
|
|
|
|
assert.GreaterOrEqual(t, len(users), 3)
|
2021-08-18 20:18:39 +02:00
|
|
|
})
|
|
|
|
}
|