mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
63 lines
1.4 KiB
TypeScript
63 lines
1.4 KiB
TypeScript
import { IHostMdmData } from "interfaces/host";
|
|
import { IMdmSolution, IMdmProfile } from "interfaces/mdm";
|
|
|
|
const DEFAULT_MDM_SOLUTION_MOCK: IMdmSolution = {
|
|
id: 1,
|
|
name: "MDM Solution",
|
|
server_url: "http://mdmsolution.com",
|
|
hosts_count: 5,
|
|
};
|
|
|
|
export const createMockMdmSolution = (
|
|
overrides?: Partial<IMdmSolution>
|
|
): IMdmSolution => {
|
|
return { ...DEFAULT_MDM_SOLUTION_MOCK, ...overrides };
|
|
};
|
|
|
|
const DEFAULT_MDM_PROFILE_DATA: IMdmProfile = {
|
|
profile_uuid: "123-abc",
|
|
team_id: 0,
|
|
name: "Test Profile",
|
|
platform: "darwin",
|
|
identifier: "com.test.profile",
|
|
created_at: "2021-01-01T00:00:00Z",
|
|
updated_at: "2021-01-01T00:00:00Z",
|
|
checksum: "123abc",
|
|
};
|
|
|
|
export const createMockMdmProfile = (
|
|
overrides?: Partial<IMdmProfile>
|
|
): IMdmProfile => {
|
|
return { ...DEFAULT_MDM_PROFILE_DATA, ...overrides };
|
|
};
|
|
|
|
const DEFAULT_HOST_MDM_DATA: IHostMdmData = {
|
|
encryption_key_available: false,
|
|
enrollment_status: "On (automatic)",
|
|
server_url: "http://mdmsolution.com",
|
|
name: "MDM Solution",
|
|
id: 1,
|
|
profiles: [],
|
|
os_settings: {
|
|
disk_encryption: {
|
|
status: "verified",
|
|
detail: "",
|
|
},
|
|
},
|
|
macos_settings: {
|
|
disk_encryption: null,
|
|
action_required: null,
|
|
},
|
|
macos_setup: {
|
|
bootstrap_package_status: "",
|
|
details: "",
|
|
bootstrap_package_name: "",
|
|
},
|
|
};
|
|
|
|
export const createMockHostMdmData = (
|
|
overrides?: Partial<IHostMdmData>
|
|
): IHostMdmData => {
|
|
return { ...DEFAULT_HOST_MDM_DATA, ...overrides };
|
|
};
|