From 93493d8ba38b2c0099a6c571414bfdf82d4f8be2 Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Thu, 23 May 2024 10:37:53 -0400 Subject: [PATCH] chore: generate mocks --- server/mock/datastore_mock.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/mock/datastore_mock.go b/server/mock/datastore_mock.go index ee251dce6a..f760447715 100644 --- a/server/mock/datastore_mock.go +++ b/server/mock/datastore_mock.go @@ -821,6 +821,8 @@ type MDMAppleStoreDDMStatusReportFunc func(ctx context.Context, hostUUID string, type MDMAppleSetPendingDeclarationsAsFunc func(ctx context.Context, hostUUID string, status *fleet.MDMDeliveryStatus, detail string) error +type InsertMDMConfigAssetsFunc func(ctx context.Context, assets []fleet.MDMConfigAsset) error + type WSTEPStoreCertificateFunc func(ctx context.Context, name string, crt *x509.Certificate) error type WSTEPNewSerialFunc func(ctx context.Context) (*big.Int, error) @@ -2157,6 +2159,9 @@ type DataStore struct { MDMAppleSetPendingDeclarationsAsFunc MDMAppleSetPendingDeclarationsAsFunc MDMAppleSetPendingDeclarationsAsFuncInvoked bool + InsertMDMConfigAssetsFunc InsertMDMConfigAssetsFunc + InsertMDMConfigAssetsFuncInvoked bool + WSTEPStoreCertificateFunc WSTEPStoreCertificateFunc WSTEPStoreCertificateFuncInvoked bool @@ -5165,6 +5170,13 @@ func (s *DataStore) MDMAppleSetPendingDeclarationsAs(ctx context.Context, hostUU return s.MDMAppleSetPendingDeclarationsAsFunc(ctx, hostUUID, status, detail) } +func (s *DataStore) InsertMDMConfigAssets(ctx context.Context, assets []fleet.MDMConfigAsset) error { + s.mu.Lock() + s.InsertMDMConfigAssetsFuncInvoked = true + s.mu.Unlock() + return s.InsertMDMConfigAssetsFunc(ctx, assets) +} + func (s *DataStore) WSTEPStoreCertificate(ctx context.Context, name string, crt *x509.Certificate) error { s.mu.Lock() s.WSTEPStoreCertificateFuncInvoked = true