Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update module github.com/vektra/mockery to v2.50.4 (main) #4263

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/make/prerequisites.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gci_version=v0.13.5
# renovate depName=golang.org/x/tools
golang_tools_version=v0.29.0
# renovate depName=github.com/vektra/mockery
mockery_version=v2.50.3
mockery_version=v2.50.4
# renovate depName=github.com/igorshubovych/markdownlint-cli
markdownlint_cli_version=v0.43.0
# renovate depName=github.com/helm-unittest/helm-unittest
Expand Down
20 changes: 10 additions & 10 deletions pkg/controllers/csi/provisioner/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
dynakubeName := "test-dk"

t.Run("no dynakube instance", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
provisioner := &OneAgentProvisioner{
apiReader: fake.NewClient(),
db: metadata.FakeMemoryDB(),
Expand All @@ -74,7 +74,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.Equal(t, reconcile.Result{}, result)
})
t.Run("dynakube deleted", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
db := metadata.FakeMemoryDB()
metadataDk := metadata.Dynakube{TenantUUID: tenantUUID, LatestVersion: agentVersion, Name: dkName}
_ = db.InsertDynakube(ctx, &metadataDk)
Expand All @@ -94,7 +94,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.Nil(t, ten)
})
t.Run("csi driver not used (classicFullstack)", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
provisioner := &OneAgentProvisioner{
apiReader: fake.NewClient(
&dynakube.DynaKube{
Expand Down Expand Up @@ -143,7 +143,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
)
mockDtcBuilder := dtbuildermock.NewBuilder(t)

gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
db := metadata.FakeMemoryDB()

provisioner := &OneAgentProvisioner{
Expand All @@ -166,7 +166,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.Len(t, dynakubeMetadatas, 1)
})
t.Run("no tokens", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
provisioner := &OneAgentProvisioner{
apiReader: fake.NewClient(
addFakeTenantUUID(
Expand Down Expand Up @@ -200,7 +200,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.NotNil(t, result)
})
t.Run("error when creating dynatrace client", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
mockDtcBuilder := dtbuildermock.NewBuilder(t)
mockDtcBuilder.On("SetContext", mock.Anything).Return(mockDtcBuilder)
mockDtcBuilder.On("SetDynakube", mock.Anything).Return(mockDtcBuilder)
Expand Down Expand Up @@ -249,7 +249,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.NotNil(t, result)
})
t.Run("error creating directories", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
errorfs := &mkDirAllErrorFs{
Fs: afero.NewMemMapFs(),
}
Expand Down Expand Up @@ -293,7 +293,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
log.Info("")
})
t.Run("error getting latest agent version", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
memFs := afero.NewMemMapFs()
mockDtcBuilder := dtbuildermock.NewBuilder(t)
dynakube := addFakeTenantUUID(
Expand Down Expand Up @@ -354,7 +354,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.True(t, exists)
})
t.Run("error getting dynakube from db", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
memFs := afero.NewMemMapFs()
mockDtcBuilder := dtbuildermock.NewBuilder(t)

Expand Down Expand Up @@ -396,7 +396,7 @@ func TestOneAgentProvisioner_Reconcile(t *testing.T) {
require.Empty(t, result)
})
t.Run("correct directories are created", func(t *testing.T) {
gc := reconcilermock.NewReconciler(t)
gc := reconcilermock.NewReconciler[reconcile.Request](t)
memFs := afero.NewMemMapFs()
memDB := metadata.FakeMemoryDB()
dynakube := addFakeTenantUUID(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading