Files
fleet/cmd/fleetctl/fleetctl/testdata/expectedListHostsJson.json
bf3e1bab99 Add Apple marketing names to backend, frontend, and an osquery table (#46482)
**Related issue:** Resolves
https://github.com/fleetdm/fleet/issues/46818 and
https://github.com/fleetdm/fleet/issues/48524.

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

## fleetd/orbit/Fleet Desktop

- [x] Verified compatibility with the latest released version of Fleet
(see [Must
rule](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/workflows/fleetd-development-and-release-strategy.md))
- [x] If the change applies to only one platform, confirmed that
`runtime.GOOS` is used as needed to isolate changes
- [x] Verified that fleetd runs on macOS, Linux and Windows
- [x] Verified auto-update works from the released version of component
to the new version (see [tools/tuf/test](../tools/tuf/test/README.md))


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Host lists and Host details now show human‑readable Apple hardware
marketing names (macOS, iOS, iPadOS) where available (e.g., "MacBook Pro
(16‑inch, 2021)"), replacing raw model identifiers.
* Hardware model displays fall back to the original model identifier for
non‑Apple or unmapped devices.

* **Bug Fixes / CSV**
* Exported host CSVs now align with the UI by using the marketing name
for Apple devices when available.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Lucas Manuel Rodriguez <lucas@fleetdm.com>
2026-07-27 22:26:30 -03:00

156 lines
4.7 KiB
JSON

{
"kind": "host",
"apiVersion": "v1",
"spec": {
"additional": {
"query1": [
{
"col1": "val",
"col2": 42
}
]
},
"build": "",
"code_name": "",
"computer_name": "test_host",
"config_tls_refresh": 0,
"cpu_brand": "",
"cpu_logical_cores": 0,
"cpu_physical_cores": 0,
"cpu_subtype": "",
"cpu_type": "",
"created_at": "0001-01-01T00:00:00Z",
"detail_updated_at": "0001-01-01T00:00:00Z",
"display_name": "test_host",
"display_text": "test_host",
"distributed_interval": 0,
"fleet_desktop_version": null,
"fleet_id": null,
"fleet_name": null,
"gigs_all_disk_space": null,
"gigs_disk_space_available": 0,
"gigs_total_disk_space": 0,
"hardware_marketing_name": "",
"hardware_model": "",
"hardware_serial": "",
"hardware_vendor": "",
"hardware_version": "",
"hostname": "test_host",
"id": 0,
"issues": {
"failing_policies_count": 0,
"total_issues_count": 0
},
"label_updated_at": "0001-01-01T00:00:00Z",
"last_enrolled_at": "0001-01-01T00:00:00Z",
"last_restarted_at": "0001-01-01T00:00:00Z",
"logger_tls_period": 0,
"mdm": {
"connected_to_fleet": null,
"dep_profile_error": false,
"encryption_key_available": false,
"enrollment_status": null,
"name": "",
"server_url": null
},
"memory": 0,
"orbit_version": null,
"os_version": "",
"osquery_version": "",
"pack_stats": null,
"percent_disk_space_available": 0,
"platform": "",
"platform_like": "",
"policy_updated_at": "0001-01-01T00:00:00Z",
"primary_ip": "",
"primary_mac": "",
"public_ip": "",
"refetch_critical_queries_until": null,
"refetch_requested": false,
"scripts_enabled": null,
"seen_time": "0001-01-01T00:00:00Z",
"software": [],
"software_updated_at": "0001-01-01T00:00:00Z",
"status": "offline",
"team_id": null,
"team_name": null,
"timezone": null,
"updated_at": "0001-01-01T00:00:00Z",
"uptime": 0,
"uuid": ""
}
}
{
"kind": "host",
"apiVersion": "v1",
"spec": {
"build": "",
"code_name": "",
"computer_name": "test_host2",
"config_tls_refresh": 0,
"cpu_brand": "",
"cpu_logical_cores": 0,
"cpu_physical_cores": 0,
"cpu_subtype": "",
"cpu_type": "",
"created_at": "0001-01-01T00:00:00Z",
"detail_updated_at": "0001-01-01T00:00:00Z",
"display_name": "test_host2",
"display_text": "test_host2",
"distributed_interval": 0,
"fleet_desktop_version": null,
"fleet_id": null,
"fleet_name": null,
"gigs_all_disk_space": null,
"gigs_disk_space_available": 0,
"gigs_total_disk_space": 0,
"hardware_marketing_name": "",
"hardware_model": "",
"hardware_serial": "",
"hardware_vendor": "",
"hardware_version": "",
"hostname": "test_host2",
"id": 0,
"issues": {
"failing_policies_count": 0,
"total_issues_count": 0
},
"label_updated_at": "0001-01-01T00:00:00Z",
"last_enrolled_at": "0001-01-01T00:00:00Z",
"last_restarted_at": "0001-01-01T00:00:00Z",
"logger_tls_period": 0,
"mdm": {
"connected_to_fleet": null,
"dep_profile_error": false,
"encryption_key_available": false,
"enrollment_status": null,
"name": "",
"server_url": null
},
"memory": 0,
"orbit_version": null,
"os_version": "",
"osquery_version": "",
"pack_stats": null,
"percent_disk_space_available": 0,
"platform": "",
"platform_like": "",
"policy_updated_at": "0001-01-01T00:00:00Z",
"primary_ip": "",
"primary_mac": "",
"public_ip": "",
"refetch_critical_queries_until": null,
"refetch_requested": false,
"scripts_enabled": null,
"seen_time": "0001-01-01T00:00:00Z",
"software": [],
"software_updated_at": "0001-01-01T00:00:00Z",
"status": "offline",
"team_id": null,
"team_name": null,
"timezone": null,
"updated_at": "0001-01-01T00:00:00Z",
"uptime": 0,
"uuid": ""
}
}