mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
5137fe380c
Addresses #17445 Follow-up iteration: - Finalize styling of dropdown tooltips - All `//TODO`s <img width="1393" alt="Screenshot 2024-03-20 at 1 43 54 PM" src="https://github.com/fleetdm/fleet/assets/61553566/9b792cf0-058a-4ae6-8f5f-a49eb936ebef"> <img width="1393" alt="Screenshot 2024-03-20 at 1 44 01 PM" src="https://github.com/fleetdm/fleet/assets/61553566/86195dcf-ec28-4cf0-ab8b-d785d12372ed"> <img width="1393" alt="Screenshot 2024-03-20 at 1 44 21 PM" src="https://github.com/fleetdm/fleet/assets/61553566/01effdec-ca20-49ec-a442-5fe754a5e12b"> <img width="1393" alt="Screenshot 2024-03-20 at 1 44 26 PM" src="https://github.com/fleetdm/fleet/assets/61553566/b6de6891-6eae-426e-bbff-b01184094ac9"> <img width="1393" alt="Screenshot 2024-03-20 at 1 44 33 PM" src="https://github.com/fleetdm/fleet/assets/61553566/96e167dd-752c-4b49-a1a7-69fe9b4f42ac"> <img width="1393" alt="Screenshot 2024-03-20 at 1 44 43 PM" src="https://github.com/fleetdm/fleet/assets/61553566/feedbda5-e915-4e5e-84ee-2316db49434a"> <img width="1393" alt="Screenshot 2024-03-20 at 1 44 47 PM" src="https://github.com/fleetdm/fleet/assets/61553566/c4b5ac47-3357-43ef-95ca-dd0953994f6f"> <img width="1393" alt="Screenshot 2024-03-20 at 1 45 02 PM" src="https://github.com/fleetdm/fleet/assets/61553566/17838415-5bf4-46f0-9bde-522deb0f0886"> <img width="1393" alt="Screenshot 2024-03-20 at 1 45 10 PM" src="https://github.com/fleetdm/fleet/assets/61553566/b7228484-bb9f-4119-9fbf-a60ce990ba0e"> --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { IPolicyStats } from "interfaces/policy";
|
|
|
|
const DEFAULT_POLICY_MOCK: IPolicyStats = {
|
|
id: 1,
|
|
name: "Antivirus healthy (Linux)",
|
|
query:
|
|
"SELECT score FROM (SELECT case when COUNT(*) = 2 then 1 ELSE 0 END AS score FROM processes WHERE (name = 'clamd') OR (name = 'freshclam')) WHERE score == 1;",
|
|
critical: false,
|
|
description:
|
|
"Checks that both ClamAV's daemon and its updater service (freshclam) are running.",
|
|
author_id: 1,
|
|
author_name: "Test User",
|
|
author_email: "test@user.com",
|
|
team_id: undefined,
|
|
resolution: "Ensure ClamAV and Freshclam are installed and running.",
|
|
platform: "linux" as const,
|
|
created_at: "2023-03-24T22:13:59Z",
|
|
updated_at: "2023-03-31T19:05:13Z",
|
|
passing_host_count: 0,
|
|
failing_host_count: 8,
|
|
host_count_updated_at: "2023-11-30T19:05:13Z",
|
|
webhook: "Off",
|
|
has_run: true,
|
|
next_update_ms: 3600000,
|
|
calendar_events_enabled: true,
|
|
};
|
|
|
|
const createMockPolicy = (overrides?: Partial<IPolicyStats>): IPolicyStats => {
|
|
return { ...DEFAULT_POLICY_MOCK, ...overrides };
|
|
};
|
|
|
|
export default createMockPolicy;
|