mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
61 lines
1.4 KiB
TypeScript
61 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_id: 1,
|
|
team_id: 0,
|
|
name: "Test Profile",
|
|
identifier: "com.test.profile",
|
|
created_at: "2021-01-01T00:00:00Z",
|
|
updated_at: "2021-01-01T00:00:00Z",
|
|
};
|
|
|
|
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 };
|
|
};
|