mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 08:28:52 +00:00
## Addresses #9414 ## Implements <img width="1021" alt="Screenshot 2023-03-06 at 5 47 18 PM" src="https://user-images.githubusercontent.com/61553566/223297991-507da9c5-1dd6-40da-b16b-9961645abd4e.png"> <img width="1257" alt="Screenshot 2023-03-06 at 5 47 49 PM" src="https://user-images.githubusercontent.com/61553566/223298063-5ff380ed-7006-40a7-8a81-3a42936fa435.png"> https://user-images.githubusercontent.com/61553566/223298116-eabbb73c-6323-49b7-b731-3b5da2e3d28d.mov ## Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Changes file added for user-visible changes in `changes/` - [ ] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
30 lines
704 B
TypeScript
30 lines
704 B
TypeScript
import { IMacadminsResponse } from "interfaces/host";
|
|
|
|
const DEFAULT_MAC_ADMINS_MOCK: IMacadminsResponse = {
|
|
macadmins: {
|
|
mobile_device_management: {
|
|
encryption_key_available: false,
|
|
enrollment_status: "On (manual)",
|
|
server_url: "https://kandji.com/2",
|
|
name: "Kandji",
|
|
id: 11,
|
|
profiles: [],
|
|
macos_settings: {
|
|
disk_encryption: null,
|
|
action_required: null,
|
|
},
|
|
},
|
|
munki: {
|
|
version: "1.2.3",
|
|
},
|
|
munki_issues: [],
|
|
},
|
|
};
|
|
|
|
const createMockMacAdmins = (
|
|
overrides?: Partial<IMacadminsResponse>
|
|
): IMacadminsResponse => {
|
|
return { ...DEFAULT_MAC_ADMINS_MOCK, ...overrides };
|
|
};
|
|
|
|
export default createMockMacAdmins;
|