// create a new group.
create a new group.
// create a new group .
func createGroup(t *testing.T, k *Keycloak, realm string, groupName string) string {
	t.Helper()
	group := &Group{
		Name: String(groupName),
	}
	res, err := k.Groups.Create(context.Background(), realm, group)
	if err != nil {
		t.Errorf("Groups.Create returned error: %v", err)
	}
	parts := strings.Split(res.Header.Get("Location"), "/")
	groupID := parts[len(parts)-1]
	return groupID
}
func createGroup ( t * testing . T , k * Keycloak , realm string , groupName string ) string { t . Helper ( ) group := & Group { Name : String ( groupName ) , } res , err := k . Groups . Create ( context . Background ( ) , realm , group ) if err != nil { t . Errorf ( " " , err ) } parts := strings . Split ( res . Header . Get ( " " ) , " " ) groupID := parts [ len ( parts ) - 1 ] return groupID }
create a new group.
create a new group .