mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #34433 Part 2 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. Added by first PR - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters. - [x] If paths of existing endpoints are modified without backwards compatibility, checked the frontend/CLI for any necessary changes ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Profiles now install during device enrollment setup * **Bug Fixes** * Enhanced Apple MDM profile synchronization to handle concurrent processing scenarios * Improved profile reconciliation to prevent conflicts when multiple workers process the same device simultaneously <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
23 lines
828 B
Go
23 lines
828 B
Go
package mock
|
|
|
|
import (
|
|
"github.com/fleetdm/fleet/v4/server/fleet"
|
|
kvmock "github.com/fleetdm/fleet/v4/server/mock/redis"
|
|
akvmock "github.com/fleetdm/fleet/v4/server/mock/redis_advanced"
|
|
svcmock "github.com/fleetdm/fleet/v4/server/mock/service"
|
|
)
|
|
|
|
//go:generate go run ./mockimpl/impl.go -o service/service_mock.go "s *Service" "fleet.Service"
|
|
//go:generate go run ./mockimpl/impl.go -o redis/key_value_store.go "kv *KeyValueStore" "fleet.KeyValueStore"
|
|
// We need to use a new folder to avoid multiple of the same functions
|
|
//go:generate go run ./mockimpl/impl.go -o redis_advanced/advanced_key_value_store.go "akv *AdvancedKeyValueStore" "fleet.AdvancedKeyValueStore"
|
|
|
|
var _ fleet.Service = new(svcmock.Service)
|
|
|
|
type KVStore struct {
|
|
kvmock.KeyValueStore
|
|
}
|
|
|
|
type AdvancedKVStore struct {
|
|
akvmock.AdvancedKeyValueStore
|
|
}
|