mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 14:47:33 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! added first event
This commit is contained in:
@@ -5,11 +5,11 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/muhlemmer/gu"
|
||||
|
||||
"github.com/brianvoe/gofakeit/v6"
|
||||
"github.com/muhlemmer/gu"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/zitadel/zitadel/backend/v3/domain"
|
||||
"github.com/zitadel/zitadel/backend/v3/storage/database"
|
||||
"github.com/zitadel/zitadel/backend/v3/storage/database/repository"
|
||||
@@ -175,7 +175,7 @@ func TestCreateIDProvider(t *testing.T) {
|
||||
State: domain.OrgStateActive.String(),
|
||||
}
|
||||
organizationRepo := repository.OrganizationRepository(pool)
|
||||
err = organizationRepo.Create(t.Context(), &org)
|
||||
err = organizationRepo.Create(ctx, &org)
|
||||
require.NoError(t, err)
|
||||
|
||||
idpRepo := repository.IDProviderRepository(pool)
|
||||
@@ -876,6 +876,10 @@ func TestGetIDProvider(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// gocognit linting fails due to number of test cases
|
||||
// and the fact that each test case has a testFunc()
|
||||
//
|
||||
//nolint:gocognit
|
||||
func TestListIDProvider(t *testing.T) {
|
||||
ctx := t.Context()
|
||||
pool, stop, err := newEmbeddedDB(ctx)
|
||||
@@ -944,7 +948,7 @@ func TestListIDProvider(t *testing.T) {
|
||||
State: domain.OrgStateActive.String(),
|
||||
}
|
||||
organizationRepo := repository.OrganizationRepository(pool)
|
||||
err = organizationRepo.Create(t.Context(), &org)
|
||||
err = organizationRepo.Create(ctx, &org)
|
||||
require.NoError(t, err)
|
||||
|
||||
// create idp
|
||||
@@ -1008,7 +1012,7 @@ func TestListIDProvider(t *testing.T) {
|
||||
State: domain.OrgStateActive.String(),
|
||||
}
|
||||
organizationRepo := repository.OrganizationRepository(pool)
|
||||
err = organizationRepo.Create(t.Context(), &org)
|
||||
err = organizationRepo.Create(ctx, &org)
|
||||
require.NoError(t, err)
|
||||
|
||||
// create idp
|
||||
@@ -1670,7 +1674,7 @@ func TestListIDProvider(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
})
|
||||
|
||||
ctx := t.Context()
|
||||
ctx := context.WithoutCancel(t.Context())
|
||||
|
||||
idps := tt.testFunc(ctx, t)
|
||||
|
||||
|
Reference in New Issue
Block a user