// Copyright (c) 2023 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package db_test56import (7"context"8"testing"910db "github.com/gitpod-io/gitpod/components/gitpod-db/go"11"github.com/gitpod-io/gitpod/components/gitpod-db/go/dbtest"12"github.com/stretchr/testify/require"13)1415func TestGetUser(t *testing.T) {16conn := dbtest.ConnectForTests(t).Debug()17user := dbtest.CreatUsers(t, conn, db.User{})[0]1819retrived, err := db.GetUser(context.Background(), conn, user.ID)20require.NoError(t, err)21require.Equal(t, user, retrived)22}232425