Skip to content

Add Apple marketing names to backend, frontend, and an osquery table#46482

Draft
spalmesano0 wants to merge 6 commits into
mainfrom
apple-marketing-names
Draft

Add Apple marketing names to backend, frontend, and an osquery table#46482
spalmesano0 wants to merge 6 commits into
mainfrom
apple-marketing-names

Conversation

@spalmesano0
Copy link
Copy Markdown
Member

@spalmesano0 spalmesano0 commented May 29, 2026

Backend

  • A static Go map of Apple hardware identifiers to marketing names.
  • The API returns hardware_marketing_name for all hosts. If the hardware_model isn't in the map, the raw hardware_model is returned.

Frontend

  • Apple hosts show the hardware_marketing_name for the "Hardware model" on the Hosts and Host details pages. Other hosts still show hardware_model.

osquery table

  • A new apple_hardware_info for darwin with only the marketing_name column. This uses the same Go map.

Related issue: Resolves #20413

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.

Testing

  • Added/updated automated tests
  • QA'd all new/changed functionality manually

fleetd/orbit/Fleet Desktop

  • Verified compatibility with the latest released version of Fleet (see Must rule)
    • I'm not sure if this applies?
  • If the change applies to only one platform, confirmed that runtime.GOOS is used as needed to isolate changes
  • Verified that fleetd runs on macOS, Linux and Windows
    • Tested on macOS.
  • Verified auto-update works from the released version of component to the new version (see tools/tuf/test)

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.

Review Change Stack

Added a Go map of Apple hardware identifiers to marketing names. The Fleet API
now returns `hardware_marketing_name` for all Apple hosts (macOS, iOS, iPadOS;
but other platforms are in the map for future support). Falls back to the raw
identifier if the model isn't in the map.
The "Hardware model" field on the Hosts and Host details pages now shows the
marketing name instead of the raw identifier.
Added a new `apple_hardware_info` table (macOS only) with a single
`marketing_name` column.
@spalmesano0 spalmesano0 self-assigned this May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 19:07
@spalmesano0 spalmesano0 requested review from a team as code owners May 29, 2026 19:07
@fleet-release fleet-release requested a review from rachaelshaw May 29, 2026 19:07
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ab7e6515-5ff7-46ea-a610-3e44f2725d64

📥 Commits

Reviewing files that changed from the base of the PR and between 47dd6ce and 50e80c9.

📒 Files selected for processing (1)
  • server/fleet/hostresponse.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • server/fleet/hostresponse.go

Walkthrough

This pull request adds human-readable hardware marketing names for Apple devices across the Fleet system. It introduces a new hardware_marketing_name field to host data structures, backed by a mapping of Apple hardware model identifiers to marketing names. The backend populates this field for Apple platforms (darwin, iOS, iPadOS) using the mapping, while a new osquery table for macOS collects hardware information. The frontend displays this new field in host tables and vitals cards instead of raw model identifiers for Apple devices, with comprehensive test updates validating the new behavior across multiple host scenarios.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main change: adding Apple marketing names to backend, frontend, and an osquery table, matching the core objectives.
Description check ✅ Passed The description covers all major changes (backend, frontend, osquery table) and includes a changes file, testing updates, and QA confirmation, meeting the template requirements.
Linked Issues check ✅ Passed The PR fully implements the objective from issue #20413: displaying human-readable Apple marketing names instead of hardware identifiers in the 'Hardware model' field across frontend pages.
Out of Scope Changes check ✅ Passed All changes are directly related to the linked issue #20413: adding the Apple hardware marketing names map, integrating it into API responses, frontend display logic, and osquery tables.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch apple-marketing-names

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Apple hardware identifier-to-marketing-name support across Fleet host API responses, frontend host displays, and a new Darwin osquery extension table.

Changes:

  • Adds a backend Apple hardware model map and exposes hardware_marketing_name on host list/detail responses.
  • Updates host table and host vitals UI to show marketing names for Apple platforms.
  • Adds a Darwin apple_hardware_info fleetd table and schema entry.

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
server/service/hosts.go Populates hardware marketing name on host detail responses.
server/fleet/hostresponse.go Adds hardware_marketing_name to host response structs and list response construction.
server/fleet/apple_hardware_models.go Defines the Apple hardware identifier to marketing name map.
schema/osquery_fleet_schema.json Adds schema metadata for the new apple_hardware_info table.
orbit/pkg/table/extension_darwin.go Registers the new Darwin osquery extension table.
orbit/pkg/table/apple_hardware_info/apple_hardware_info_darwin.go Implements the new table by querying system_info and mapping the model.
frontend/utilities/constants.tsx Includes hardware_marketing_name in host vitals data.
frontend/pages/hosts/ManageHostsPage/HostTableConfig.tsx Displays Apple marketing names in the hardware model column.
frontend/pages/hosts/details/cards/Vitals/Vitals.tsx Displays Apple marketing names in host vitals.
frontend/pages/hosts/details/cards/Vitals/Vitals.tests.tsx Updates vitals tests for Apple marketing-name display.
frontend/interfaces/host.ts Adds the new host response field to frontend types.
frontend/mocks/hostMock.ts Adds the new field to host test mock defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread server/fleet/hostresponse.go Outdated
Comment on lines +548 to +550
{
"name": "apple_hardware_info",
"description": "Maps the Apple hardware model identifier to its marketing name.",
Comment on lines +548 to +550
{
"name": "apple_hardware_info",
"description": "Maps the Apple hardware model identifier to its marketing name.",
Comment thread server/fleet/hostresponse.go
@codecov
Copy link
Copy Markdown

codecov Bot commented May 29, 2026

Codecov Report

❌ Patch coverage is 85.71429% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.81%. Comparing base (157adae) to head (50e80c9).
⚠️ Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
...nd/pages/hosts/ManageHostsPage/HostTableConfig.tsx 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #46482      +/-   ##
==========================================
- Coverage   66.90%   66.81%   -0.09%     
==========================================
  Files        2797     2804       +7     
  Lines      223492   223592     +100     
  Branches    11429    11315     -114     
==========================================
- Hits       149518   149390     -128     
- Misses      60431    60647     +216     
- Partials    13543    13555      +12     
Flag Coverage Δ
backend 68.53% <100.00%> (-0.13%) ⬇️
frontend 56.48% <42.85%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
frontend/pages/hosts/ManageHostsPage/HostTableConfig.tsx (1)

193-199: ⚡ Quick win

Same blank-cell risk as Vitals.tsx — add a fallback to cellProps.cell.value.

When hardware_marketing_name is empty/undefined for an Apple host, the column renders blank rather than the raw model.

♻️ Proposed defensive fallback
       <TextCell
         value={
           isAppleDevice(cellProps.row.original.platform)
-            ? cellProps.row.original.hardware_marketing_name
+            ? cellProps.row.original.hardware_marketing_name ||
+              cellProps.cell.value
             : cellProps.cell.value
         }
       />
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@frontend/pages/hosts/ManageHostsPage/HostTableConfig.tsx` around lines 193 -
199, The Apple-host display can be blank when hardware_marketing_name is empty;
update the TextCell value expression used in HostTableConfig.tsx so that when
isAppleDevice(cellProps.row.original.platform) is true it renders
cellProps.row.original.hardware_marketing_name || cellProps.cell.value (i.e.
fall back to the raw model value) rather than only hardware_marketing_name;
reference the TextCell component and the isAppleDevice check and replace the
conditional branch to use the fallback.
frontend/pages/hosts/details/cards/Vitals/Vitals.tsx (1)

350-358: ⚡ Quick win

Consider falling back to hardware_model when the marketing name is empty.

For Apple devices this renders hardware_marketing_name unconditionally. The backend is expected to fall back to the raw model when unmapped, but if the field is empty/undefined (older agent data, partial rollout, or a model the backend map didn't cover) the row would render blank instead of showing the identifier.

♻️ Proposed defensive fallback
           value={
             <TooltipTruncatedText
               value={
                 isAppleDevice(vitalsData.platform)
-                  ? vitalsData.hardware_marketing_name
+                  ? vitalsData.hardware_marketing_name || vitalsData.hardware_model
                   : vitalsData.hardware_model
               }
             />
           }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@frontend/pages/hosts/details/cards/Vitals/Vitals.tsx` around lines 350 - 358,
The Apple-device branch renders hardware_marketing_name unconditionally which
can be empty; update the value passed to TooltipTruncatedText in Vitals.tsx (the
isAppleDevice(...) branch) to prefer vitalsData.hardware_marketing_name but fall
back to vitalsData.hardware_model when the marketing name is falsy
(empty/undefined), ensuring the row never renders blank; locate the usage around
the TooltipTruncatedText call in Vitals.tsx and change the ternary to a
conditional that checks the marketing name before falling back to
hardware_model.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@frontend/pages/hosts/details/cards/Vitals/Vitals.tsx`:
- Around line 350-358: The Apple-device branch renders hardware_marketing_name
unconditionally which can be empty; update the value passed to
TooltipTruncatedText in Vitals.tsx (the isAppleDevice(...) branch) to prefer
vitalsData.hardware_marketing_name but fall back to vitalsData.hardware_model
when the marketing name is falsy (empty/undefined), ensuring the row never
renders blank; locate the usage around the TooltipTruncatedText call in
Vitals.tsx and change the ternary to a conditional that checks the marketing
name before falling back to hardware_model.

In `@frontend/pages/hosts/ManageHostsPage/HostTableConfig.tsx`:
- Around line 193-199: The Apple-host display can be blank when
hardware_marketing_name is empty; update the TextCell value expression used in
HostTableConfig.tsx so that when isAppleDevice(cellProps.row.original.platform)
is true it renders cellProps.row.original.hardware_marketing_name ||
cellProps.cell.value (i.e. fall back to the raw model value) rather than only
hardware_marketing_name; reference the TextCell component and the isAppleDevice
check and replace the conditional branch to use the fallback.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 69854d5f-2e2e-4769-b102-5da15807721a

📥 Commits

Reviewing files that changed from the base of the PR and between def7f00 and 47dd6ce.

📒 Files selected for processing (14)
  • changes/20413-apple-hardware-marketing-names
  • frontend/__mocks__/hostMock.ts
  • frontend/interfaces/host.ts
  • frontend/pages/hosts/ManageHostsPage/HostTableConfig.tsx
  • frontend/pages/hosts/details/cards/Vitals/Vitals.tests.tsx
  • frontend/pages/hosts/details/cards/Vitals/Vitals.tsx
  • frontend/utilities/constants.tsx
  • orbit/changes/20413-apple-hardware-marketing-names
  • orbit/pkg/table/apple_hardware_info/apple_hardware_info_darwin.go
  • orbit/pkg/table/extension_darwin.go
  • schema/osquery_fleet_schema.json
  • server/fleet/apple_hardware_models.go
  • server/fleet/hostresponse.go
  • server/service/hosts.go

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@qodo-free-for-open-source-projects
Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test-go (fleetctl, mysql:8.0.44) / test

Failed stage: Run Go Tests [❌]

Failed test name: TestGetHosts

Failure summary:

The action failed because Go integration tests in cmd/fleetctl/fleetctl failed due to a mismatch
between expected and actual serialized host output.
- Multiple subtests in TestGetHosts and
TestGetHostsMDM failed in cmd/fleetctl/fleetctl/get_test.go:569 (and related checks at
get_test.go:708 / get_test.go:715) because the actual JSON/YAML output included a new field
hardware_marketing_name that was not present in the golden expected fixtures.
- Example diff shows
hardware_marketing_name: "" (or "hardware_marketing_name": "") appearing after
gigs_total_disk_space, causing Not equal assertions to fail.
- The Go test run ended with DONE 858
tests, 8 failures, causing make test-go to fail (make[1]: *** [Makefile:285: .run-go-tests] Error 1,
exit code 2).

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

943:  �[36;1mattempt=1�[0m
944:  �[36;1m�[0m
945:  �[36;1mwhile [ $attempt -le $max_attempts ]; do�[0m
946:  �[36;1m  echo "Attempt $attempt of $max_attempts"�[0m
947:  �[36;1m�[0m
948:  �[36;1m  # Try to connect to MySQL�[0m
949:  �[36;1m  if wait_for_mysql "mysql_test"; then�[0m
950:  �[36;1m    # If MySQL is ready, try to connect to MySQL replica�[0m
951:  �[36;1m    if wait_for_mysql "mysql_replica_test"; then�[0m
952:  �[36;1m      # Both are ready, we're done�[0m
953:  �[36;1m      echo "All MySQL connections successful"�[0m
954:  �[36;1m      exit 0�[0m
955:  �[36;1m    fi�[0m
956:  �[36;1m  fi�[0m
957:  �[36;1m�[0m
958:  �[36;1m  # If we get here, at least one connection failed�[0m
959:  �[36;1m  echo "Failed to connect to MySQL on attempt $attempt"�[0m
960:  �[36;1m�[0m
961:  �[36;1m  if [ $attempt -lt $max_attempts ]; then�[0m
962:  �[36;1m    echo "Restarting containers and trying again..."�[0m
963:  �[36;1m    restart_containers�[0m
964:  �[36;1m  else�[0m
965:  �[36;1m    echo "Maximum attempts reached. Failing the job."�[0m
966:  �[36;1m    exit 1�[0m
...

1250:  go: downloading github.com/AbGuthrie/goquery/v2 v2.0.1
1251:  go: downloading github.com/davecgh/go-spew v1.1.1
1252:  go: downloading github.com/tj/assert v0.0.3
1253:  go: downloading github.com/c-bata/go-prompt v0.2.3
1254:  go: downloading github.com/hashicorp/golang-lru v0.5.4
1255:  go: downloading github.com/pmezard/go-difflib v1.0.0
1256:  go: downloading github.com/stretchr/objx v0.5.2
1257:  go: downloading github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942
1258:  github.com/fleetdm/fleet/v4/cmd/fleetctl:
1259:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/testing_utils:
1260:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/fleetctltest:
1261:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/goquerycmd:
1262:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest:
1263:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/preview:
1264:  �[32m✓�[0m Integrations preview (48.96s)
1265:  �[32m✓�[0m Preview fails on invalid license key (0.00s)
1266:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/package:
...

1377:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days not a number (0.36s)
1378:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days out of range (0.44s)
1379:  �[32m✓�[0m Apply specs deprecated keys config with FIM values for agent options (#869 9) (0.46s)
1380:  �[32m✓�[0m Apply specs deprecated keys config with blank required org name (0.74s)
1381:  �[32m✓�[0m Apply specs deprecated keys config with blank required server url (0.40s)
1382:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options command-line flags (0.69s)
1383:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type in dry-run (0.43s)
1384:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type with force (0.46s)
1385:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options in dry-run (0.44s)
1386:  �[32m✓�[0m Apply specs deprecated keys config with invalid key type (0.53s)
1387:  �[32m✓�[0m Apply specs deprecated keys config with invalid value for agent options command-line flags (0.60s)
1388:  �[32m✓�[0m Apply specs deprecated keys config with unknown key (0.54s)
1389:  �[32m✓�[0m Apply specs deprecated keys config with valid agent options command-line flags (0.47s)
1390:  �[32m✓�[0m Apply specs deprecated keys dry-run set with unsupported spec (0.36s)
1391:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, appconfig warning for legacy (0.37s)
1392:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, no errors (0.49s)
1393:  �[32m✓�[0m Apply specs deprecated keys empty config (0.36s)
...

1396:  �[32m✓�[0m Apply specs deprecated keys invalid agent options dry-run (0.35s)
1397:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type (0.50s)
1398:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type in overrides (0.40s)
1399:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for existing team (0.53s)
1400:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for new team (0.45s)
1401:  �[32m✓�[0m Apply specs deprecated keys invalid agent options force (0.40s)
1402:  �[32m✓�[0m Apply specs deprecated keys invalid known key's value type for team cannot be forced (0.68s)
1403:  �[32m✓�[0m Apply specs deprecated keys invalid team agent options command-line flag (0.34s)
1404:  �[32m✓�[0m Apply specs deprecated keys invalid top-level key for team (0.44s)
1405:  �[32m✓�[0m Apply specs deprecated keys macos updates deadline set but minimum version empty (0.39s)
1406:  �[32m✓�[0m Apply specs deprecated keys macos updates minimum version set but deadline empty (0.66s)
1407:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with incomplete date (0.46s)
1408:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with invalid date (0.49s)
1409:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with timestamp (0.51s)
1410:  �[32m✓�[0m Apply specs deprecated keys macos updates.minimum version with build version (0.43s)
1411:  �[32m✓�[0m Apply specs deprecated keys missing required failing policies destination url (0.57s)
1412:  �[32m✓�[0m Apply specs deprecated keys missing required host status days count (0.54s)
...

1420:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption true (0.59s)
1421:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption with invalid value type (0.74s)
1422:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption without a value (0.61s)
1423:  �[32m✓�[0m Apply specs deprecated keys unknown key for team can be forced (0.46s)
1424:  �[32m✓�[0m Apply specs deprecated keys valid team agent options command-line flag (0.41s)
1425:  �[32m✓�[0m Apply specs deprecated keys windows updates unset valid (0.39s)
1426:  �[32m✓�[0m Apply specs deprecated keys windows updates valid (0.41s)
1427:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days but grace period empty (0.39s)
1428:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days not a number (0.44s)
1429:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days out of range (0.59s)
1430:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days but deadline empty (0.40s)
1431:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days not a number (0.35s)
1432:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days out of range (0.47s)
1433:  �[32m✓�[0m Apply specs dry-run set with unsupported spec (0.38s)
1434:  �[32m✓�[0m Apply specs dry-run set with various specs, appconfig warning for legacy (0.42s)
1435:  �[32m✓�[0m Apply specs dry-run set with various specs, no errors (0.52s)
1436:  �[32m✓�[0m Apply specs empty config (0.35s)
...

1439:  �[32m✓�[0m Apply specs invalid agent options dry-run (0.41s)
1440:  �[32m✓�[0m Apply specs invalid agent options field type (0.42s)
1441:  �[32m✓�[0m Apply specs invalid agent options field type in overrides (0.43s)
1442:  �[32m✓�[0m Apply specs invalid agent options for existing team (0.42s)
1443:  �[32m✓�[0m Apply specs invalid agent options for new team (0.46s)
1444:  �[32m✓�[0m Apply specs invalid agent options force (0.42s)
1445:  �[32m✓�[0m Apply specs invalid known key's value type for team cannot be forced (0.52s)
1446:  �[32m✓�[0m Apply specs invalid team agent options command-line flag (0.38s)
1447:  �[32m✓�[0m Apply specs invalid top-level key for team (0.46s)
1448:  �[32m✓�[0m Apply specs macos updates deadline set but minimum version empty (0.39s)
1449:  �[32m✓�[0m Apply specs macos updates minimum version set but deadline empty (0.44s)
1450:  �[32m✓�[0m Apply specs macos updates.deadline with incomplete date (0.38s)
1451:  �[32m✓�[0m Apply specs macos updates.deadline with invalid date (0.41s)
1452:  �[32m✓�[0m Apply specs macos updates.deadline with timestamp (0.39s)
1453:  �[32m✓�[0m Apply specs macos updates.minimum version with build version (0.44s)
1454:  �[32m✓�[0m Apply specs missing required failing policies destination url (0.36s)
1455:  �[32m✓�[0m Apply specs missing required host status days count (0.35s)
...

1474:  �[32m✓�[0m Apply specs windows updates.grace period days not a number (0.50s)
1475:  �[32m✓�[0m Apply specs windows updates.grace period days out of range (0.37s)
1476:  �[32m✓�[0m Apply team specs (0.57s)
1477:  �[32m✓�[0m Apply user roles (0.42s)
1478:  �[32m✓�[0m Apply user roles deprecated (0.71s)
1479:  �[32m✓�[0m Apply windows updates (0.36s)
1480:  �[32m✓�[0m Apply windows updates field omitted (0.00s)
1481:  �[32m✓�[0m Apply windows updates with null values (0.00s)
1482:  �[32m✓�[0m Apply windows updates with values (0.00s)
1483:  �[32m✓�[0m Can apply intervals in nanoseconds (0.42s)
1484:  �[32m✓�[0m Can apply intervals using durations (0.42s)
1485:  �[32m✓�[0m Clean status code err (0.00s)
1486:  �[32m✓�[0m Clean status code err bare wrapped status code err (0.00s)
1487:  �[32m✓�[0m Clean status code err nil (0.00s)
1488:  �[32m✓�[0m Clean status code err outer-wrapped status code err (0.00s)
1489:  �[32m✓�[0m Clean status code err plain error untouched (0.00s)
1490:  �[32m✓�[0m Compute label changes (0.00s)
...

1546:  �[32m✓�[0m Filename functions (0.00s)
1547:  �[32m✓�[0m Filename functions outfile name builds a file name using the name provided + current time (0.00s)
1548:  �[32m✓�[0m Filename functions outfile name with ext builds a file name using the name and extension provided + current time (0.00s)
1549:  �[32m✓�[0m FleetctlUpgradePacks empty packs (0.38s)
1550:  �[32m✓�[0m FleetctlUpgradePacks no pack (0.43s)
1551:  �[32m✓�[0m FleetctlUpgradePacks non empty (0.37s)
1552:  �[32m✓�[0m FleetctlUpgradePacks not admin (0.47s)
1553:  �[32m✓�[0m Format XML (0.00s)
1554:  �[32m✓�[0m Format XML XML with attributes (0.00s)
1555:  �[32m✓�[0m Format XML basic XML (0.00s)
1556:  �[32m✓�[0m Format XML empty XML (0.00s)
1557:  �[32m✓�[0m Format XML invalid XML (0.00s)
1558:  �[32m✓�[0m Format XML nested XML (0.00s)
1559:  �[32m✓�[0m Generate MDM apple (0.95s)
1560:  �[32m✓�[0m Generate MDM apple BM (0.43s)
1561:  �[32m✓�[0m Generate MDM apple CSR API call fails (0.39s)
1562:  �[32m✓�[0m Generate MDM apple successful run (0.55s)
1563:  �[32m✓�[0m Generate MDMVPP tokens (0.00s)
1564:  �[32m✓�[0m Generate MDMVPP tokens get VPP tokens error (0.00s)
1565:  �[32m✓�[0m Generate MDMVPP tokens multiple tokens with different teams (0.00s)
...

1581:  �[32m✓�[0m Generate org settings insecure (0.00s)
1582:  �[32m✓�[0m Generate org settings masked google calendar api key (0.00s)
1583:  �[32m✓�[0m Generate policies (0.00s)
1584:  �[32m✓�[0m Generate queries (0.00s)
1585:  �[32m✓�[0m Generate software (0.00s)
1586:  �[32m✓�[0m Generate software auto update schedule (0.00s)
1587:  �[32m✓�[0m Generate software script packages (0.00s)
1588:  �[32m✓�[0m Generate team settings (0.00s)
1589:  �[32m✓�[0m Generate team settings insecure (0.00s)
1590:  �[32m✓�[0m Generated org settings no SSO (0.00s)
1591:  �[32m✓�[0m Generated org settings okta conditional access not included (0.00s)
1592:  �[32m✓�[0m Get MDM command results (0.45s)
1593:  �[32m✓�[0m Get MDM command results command flag required (0.00s)
1594:  �[32m✓�[0m Get MDM command results command not found (0.01s)
1595:  �[32m✓�[0m Get MDM command results command results empty (0.01s)
1596:  �[32m✓�[0m Get MDM command results command results error (0.01s)
1597:  �[32m✓�[0m Get MDM command results darwin command results (0.00s)
1598:  �[32m✓�[0m Get MDM command results host specific results (0.01s)
1599:  �[32m✓�[0m Get MDM command results windows command results (0.00s)
1600:  �[32m✓�[0m Get MDM commands (0.55s)
1601:  �[32m✓�[0m Get apple BM (1.56s)
1602:  �[32m✓�[0m Get apple BM free license (0.33s)
1603:  �[32m✓�[0m Get apple BM premium license, multiple tokens (0.40s)
1604:  �[32m✓�[0m Get apple BM premium license, no token (0.43s)
1605:  �[32m✓�[0m Get apple BM premium license, single token (0.40s)
1606:  �[32m✓�[0m Get apple MDM (0.38s)
1607:  �[32m✓�[0m Get carve (0.36s)
1608:  �[32m✓�[0m Get carve with error (0.42s)
1609:  �[32m✓�[0m Get carves (0.36s)
...

1616:  �[32m✓�[0m Get config app config as team users (0.04s)
1617:  �[32m✓�[0m Get config include server config (0.01s)
1618:  �[32m✓�[0m Get config remove deprecated keys (0.01s)
1619:  �[32m✓�[0m Get enrollment secrets (0.43s)
1620:  �[31m✖�[0m Get hosts (0.43s)
1621:  �[31m✖�[0m Get hosts MDM (0.33s)
1622:  �[31m✖�[0m Get hosts MDM get hosts - -mdm - -json - expected list hosts MD m .json (0.01s)
1623:  �[32m✓�[0m Get hosts MDM get hosts - -mdm - -mdm-pending - (0.00s)
1624:  �[31m✖�[0m Get hosts MDM get hosts - -mdm-pending - -yaml - expected list hosts yaml.yml (0.01s)
1625:  �[32m✓�[0m Get hosts get hosts - -json - -remove-deprecated-keys (0.00s)
1626:  �[31m✖�[0m Get hosts get hosts - -json - expected list hosts json.json (0.00s)
1627:  �[31m✖�[0m Get hosts get hosts - -json test host - expected host detail response json.json (0.00s)
1628:  �[31m✖�[0m Get hosts get hosts - -yaml - expected list hosts yaml.yml (0.01s)
1629:  �[31m✖�[0m Get hosts get hosts - -yaml test host - expected host detail response yaml.yml (0.01s)
1630:  �[32m✓�[0m Get label (0.50s)
1631:  �[32m✓�[0m Get label usage multiple label keys error (0.00s)
1632:  �[32m✓�[0m Get label usage profile path shortened (0.00s)
...

1639:  �[32m✓�[0m Get queries as observer observer of multiple teams (0.01s)
1640:  �[32m✓�[0m Get queries as observer team observer (0.01s)
1641:  �[32m✓�[0m Get query (0.43s)
1642:  �[32m✓�[0m Get query labels include all (0.38s)
1643:  �[32m✓�[0m Get reports labels include all (0.41s)
1644:  �[32m✓�[0m Get software titles (0.47s)
1645:  �[32m✓�[0m Get software versions (0.42s)
1646:  �[32m✓�[0m Get teams (0.95s)
1647:  �[32m✓�[0m Get teams YAML and apply (0.34s)
1648:  �[32m✓�[0m Get teams by name (0.42s)
1649:  �[32m✓�[0m Get teams expired license (0.58s)
1650:  �[32m✓�[0m Get teams not expired license (0.37s)
1651:  �[32m✓�[0m Get user roles (0.45s)
1652:  �[32m✓�[0m Git ops ABM (6.40s)
1653:  �[32m✓�[0m Git ops ABM backwards compat (0.67s)
1654:  �[32m✓�[0m Git ops ABM both keys errors (0.54s)
1655:  �[32m✓�[0m Git ops ABM deprecated config with two tokens in the db fails (0.59s)
1656:  �[32m✓�[0m Git ops ABM new key all valid (0.88s)
1657:  �[32m✓�[0m Git ops ABM new key multiple elements (0.53s)
1658:  �[32m✓�[0m Git ops ABM no team is supported (0.55s)
1659:  �[32m✓�[0m Git ops ABM non existent org name fails (0.61s)
1660:  �[32m✓�[0m Git ops ABM not provided teams defaults to no team (0.58s)
1661:  �[32m✓�[0m Git ops ABM renamed new key all valid (0.69s)
1662:  �[32m✓�[0m Git ops ABM using an undefined team errors (0.76s)
1663:  �[32m✓�[0m Git ops EULA setting (4.71s)
...

1666:  �[32m✓�[0m Git ops EULA setting not a PDF file (0.86s)
1667:  �[32m✓�[0m Git ops EULA setting relative path to working dir to pdf file (no existing EULA uploaded) (0.55s)
1668:  �[32m✓�[0m Git ops EULA setting relative path to yaml file to pdf file (no existing EULA uploaded) (0.46s)
1669:  �[32m✓�[0m Git ops EULA setting uploading the same EULA again (0.77s)
1670:  �[32m✓�[0m Git ops EULA setting valid new pdf file (different EULA already uploaded) (0.48s)
1671:  �[32m✓�[0m Git ops EULA setting valid pdf file (no existing EULA uploaded) (0.60s)
1672:  �[32m✓�[0m Git ops MDM auth settings (0.53s)
1673:  �[32m✓�[0m Git ops SMTP settings (0.40s)
1674:  �[32m✓�[0m Git ops SSO server URL (0.46s)
1675:  �[32m✓�[0m Git ops SSO settings (0.51s)
1676:  �[32m✓�[0m Git ops android certificates add (0.49s)
1677:  �[32m✓�[0m Git ops android certificates change (0.59s)
1678:  �[32m✓�[0m Git ops android certificates delete all (0.44s)
1679:  �[32m✓�[0m Git ops android certificates delete one (0.52s)
1680:  �[32m✓�[0m Git ops app store app auto update (0.47s)
1681:  �[32m✓�[0m Git ops app store app auto update invalid auto-update window triggers error and does not call update software title auto update config (0.02s)
1682:  �[32m✓�[0m Git ops app store app auto update no auto update settings and no existing schedule does not call update software title auto update config (0.02s)
...

1685:  �[32m✓�[0m Git ops apple OS updates (0.72s)
1686:  �[32m✓�[0m Git ops apple OS updates ios updates (0.05s)
1687:  �[32m✓�[0m Git ops apple OS updates ios updates changed deadline triggers bulk set pending MDM host profiles (0.01s)
1688:  �[32m✓�[0m Git ops apple OS updates ios updates changed minimum version triggers bulk set pending MDM host profiles (0.02s)
1689:  �[32m✓�[0m Git ops apple OS updates ios updates same values do not trigger bulk set pending MDM host profiles (0.02s)
1690:  �[32m✓�[0m Git ops apple OS updates ipados updates (0.05s)
1691:  �[32m✓�[0m Git ops apple OS updates ipados updates changed deadline triggers bulk set pending MDM host profiles (0.02s)
1692:  �[32m✓�[0m Git ops apple OS updates ipados updates changed minimum version triggers bulk set pending MDM host profiles (0.01s)
1693:  �[32m✓�[0m Git ops apple OS updates ipados updates same values do not trigger bulk set pending MDM host profiles (0.01s)
1694:  �[32m✓�[0m Git ops apple OS updates macos updates (0.05s)
1695:  �[32m✓�[0m Git ops apple OS updates macos updates changed deadline triggers bulk set pending MDM host profiles (0.02s)
1696:  �[32m✓�[0m Git ops apple OS updates macos updates changed minimum version triggers bulk set pending MDM host profiles (0.02s)
1697:  �[32m✓�[0m Git ops apple OS updates macos updates same values do not trigger bulk set pending MDM host profiles (0.02s)
1698:  �[32m✓�[0m Git ops basic global and no team (0.56s)
1699:  �[32m✓�[0m Git ops basic global and no team basic global and no-team.yml (0.06s)
1700:  �[32m✓�[0m Git ops basic global and no team both global and no-team.yml define controls -- should fail (0.01s)
1701:  �[32m✓�[0m Git ops basic global and no team controls only defined in no-team.yml (0.05s)
1702:  �[32m✓�[0m Git ops basic global and no team global DOES NOT define controls -- should fail (0.01s)
1703:  �[32m✓�[0m Git ops basic global and no team global and no-team.yml DO NOT define controls -- should fail (0.01s)
1704:  �[32m✓�[0m Git ops basic global and no team global defines software -- should fail (0.01s)
1705:  �[32m✓�[0m Git ops basic global and no team no-team provided without global -- should fail (0.01s)
1706:  �[32m✓�[0m Git ops basic global and no team no-team.yml defines policy with calendar events enabled -- should fail (0.01s)
1707:  �[32m✓�[0m Git ops basic global and no team unassigned provided without global -- should fail (0.01s)
1708:  �[32m✓�[0m Git ops basic global and team (0.55s)
...

1714:  �[32m✓�[0m Git ops custom settings global macos windows custom settings valid.yml (0.56s)
1715:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix 2 .yml (0.37s)
1716:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix.yml (0.54s)
1717:  �[32m✓�[0m Git ops custom settings global windows custom settings unknown label.yml (0.52s)
1718:  �[32m✓�[0m Git ops custom settings team macos custom settings valid deprecated.yml (0.45s)
1719:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix 2 .yml (0.41s)
1720:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix.yml (0.55s)
1721:  �[32m✓�[0m Git ops custom settings team macos windows custom settings unknown label.yml (0.77s)
1722:  �[32m✓�[0m Git ops custom settings team macos windows custom settings valid.yml (0.50s)
1723:  �[32m✓�[0m Git ops dry run rejects invalid label platform (0.41s)
1724:  �[32m✓�[0m Git ops exception enforcement (0.45s)
1725:  �[32m✓�[0m Git ops exception enforcement free tier (0.45s)
1726:  �[32m✓�[0m Git ops exceptions preserve omitted keys (0.51s)
1727:  �[32m✓�[0m Git ops features (0.53s)
1728:  �[32m✓�[0m Git ops filename validation (0.00s)
1729:  �[32m✓�[0m Git ops fleet failing policies webhook policy IDs (0.46s)
1730:  �[32m✓�[0m Git ops fleet webhooks and tickets enabled (0.68s)
...

1906:  �[32m✓�[0m Run api command get scripts full path missing (0.00s)
1907:  �[32m✓�[0m Run api command get scripts team (0.00s)
1908:  �[32m✓�[0m Run api command get scripts team no cache (0.00s)
1909:  �[32m✓�[0m Run api command get typo (0.00s)
1910:  �[32m✓�[0m Run api command upload script (0.00s)
1911:  �[32m✓�[0m Run script command (0.58s)
1912:  �[32m✓�[0m Run script command disabled scripts globally (0.00s)
1913:  �[32m✓�[0m Run script command host not found (0.00s)
1914:  �[32m✓�[0m Run script command invalid file type (0.00s)
1915:  �[32m✓�[0m Run script command invalid hashbang (0.00s)
1916:  �[32m✓�[0m Run script command invalid utf 8 (0.01s)
1917:  �[32m✓�[0m Run script command missing one of script-path and script-nqme (0.00s)
1918:  �[32m✓�[0m Run script command output truncated (0.01s)
1919:  �[32m✓�[0m Run script command posix shell hashbang (0.01s)
1920:  �[32m✓�[0m Run script command script empty (0.01s)
1921:  �[32m✓�[0m Run script command script failed (0.01s)
1922:  �[32m✓�[0m Run script command script killed (0.01s)
...

1960:  �[32m✓�[0m User is observer (0.00s)
1961:  �[32m✓�[0m User is observer global maintainer (0.00s)
1962:  �[32m✓�[0m User is observer global observer (0.00s)
1963:  �[32m✓�[0m User is observer global observer+ (0.00s)
1964:  �[32m✓�[0m User is observer team maintainer (0.00s)
1965:  �[32m✓�[0m User is observer team observer (0.00s)
1966:  �[32m✓�[0m User is observer team observer and maintainer (0.00s)
1967:  �[32m✓�[0m User is observer team observer+ (0.00s)
1968:  �[32m✓�[0m User is observer user without roles (0.00s)
1969:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/gitops:
1970:  �[32m✓�[0m Git ops VPP (4.38s)
1971:  �[32m✓�[0m Git ops VPP all teams is supported (0.61s)
1972:  �[32m✓�[0m Git ops VPP new key all valid (0.61s)
1973:  �[32m✓�[0m Git ops VPP new key multiple elements (0.55s)
1974:  �[32m✓�[0m Git ops VPP no team is supported (0.55s)
1975:  �[32m✓�[0m Git ops VPP non existent location fails (0.64s)
1976:  �[32m✓�[0m Git ops VPP not provided teams defaults to no team (0.89s)
1977:  �[32m✓�[0m Git ops VPP using an undefined team errors (0.54s)
1978:  �[32m✓�[0m Git ops existing team VPP apps with missing team (0.50s)
...

2066:  �[32m✓�[0m Git ops team software installers team software installer with display name.yml (1.56s)
2067:  �[32m✓�[0m Integrations enterprise gitops (308.36s)
2068:  �[32m✓�[0m Integrations enterprise gitops test CA integrations (3.91s)
2069:  �[32m✓�[0m Integrations enterprise gitops test FMA labels include all (5.91s)
2070:  �[32m✓�[0m Integrations enterprise gitops test IPA software installers (9.40s)
2071:  �[32m✓�[0m Integrations enterprise gitops test JSON configuration profile escaping (1.28s)
2072:  �[32m✓�[0m Integrations enterprise gitops test add manual labels (1.49s)
2073:  �[32m✓�[0m Integrations enterprise gitops test configuration profile escaping (1.31s)
2074:  �[32m✓�[0m Integrations enterprise gitops test delete CA with certificate templates (5.77s)
2075:  �[32m✓�[0m Integrations enterprise gitops test delete mac OS setup (4.94s)
2076:  �[32m✓�[0m Integrations enterprise gitops test deleting no team YAML (2.61s)
2077:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience (123.70s)
2078:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience all VPP with setup experience (1.26s)
2079:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team VPP (1.13s)
2080:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team installers (60.53s)
2081:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience packages fail (60.62s)
2082:  �[32m✓�[0m Integrations enterprise gitops test dry run mac OS setup script with manual agent install conflict (0.39s)
...

2111:  �[32m✓�[0m Integrations enterprise gitops test omitted top level keys global (2.43s)
2112:  �[32m✓�[0m Integrations enterprise gitops test remove custom settings from default YAML (2.53s)
2113:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps (3.70s)
2114:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps all teams (2.33s)
2115:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps no team (1.22s)
2116:  �[32m✓�[0m Integrations enterprise gitops test unset configuration profile labels (4.82s)
2117:  �[32m✓�[0m Integrations enterprise gitops test unset software installer labels (9.23s)
2118:  �[32m✓�[0m Integrations enterprise starter library (4.76s)
2119:  �[32m✓�[0m Integrations enterprise starter library test apply starter library premium (3.40s)
2120:  �[32m✓�[0m Integrations gitops (2.58s)
2121:  �[32m✓�[0m Integrations gitops test fleet gitops (0.73s)
2122:  �[32m✓�[0m Integrations gitops test fleet gitops DDM fleet vars requires premium (0.12s)
2123:  �[32m✓�[0m Integrations gitops test fleet gitops with fleet secrets (0.23s)
2124:  �[32m✓�[0m Integrations starter library (1.52s)
2125:  �[32m✓�[0m Integrations starter library test apply starter library free (0.18s)
2126:  === �[31mFailed�[0m
2127:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHosts/get_hosts_--json_-_expectedListHostsJson.json (0.00s)
2128:  get_test.go:569: 
2129:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/get_test.go:569
2130:  Error:      	Not equal: 
2131:  expected: "{\n  \"apiVersion\": \"v1\",\n  \"kind\": \"host\",\n  \"spec\": {\n    \"additional\": {\n      \"query1\": [\n        {\n          \"col1\": \"val\",\n          \"col2\": 42\n        }\n      ]\n    },\n    \"build\": \"\",\n    \"code_name\": \"\",\n    \"computer_name\": \"test_host\",\n    \"config_tls_refresh\": 0,\n    \"cpu_brand\": \"\",\n    \"cpu_logical_cores\": 0,\n    \"cpu_physical_cores\": 0,\n    \"cpu_subtype\": \"\",\n    \"cpu_type\": \"\",\n    \"created_at\": \"0001-01-01T00:00:00Z\",\n    \"detail_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"display_name\": \"test_host\",\n    \"display_text\": \"test_host\",\n    \"distributed_interval\": 0,\n    \"fleet_desktop_version\": null,\n    \"fleet_id\": null,\n    \"fleet_name\": null,\n    \"gigs_all_disk_space\": null,\n    \"gigs_disk_space_available\": 0,\n    \"gigs_total_disk_space\": 0,\n    \"hardware_model\": \"\",\n    \"hardware_serial\": \"\",\n    \"hardware_vendor\": \"\",\n    \"hardware_version\": \"\",\n    \"hostname\": \"test_host\",\n    \"id\": 0,\n    \"issues\": {\n      \"failing_policies_count\": 0,\n      \"total_issues_count\": 0\n    },\n    \"label_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"last_enrolled_at\": \"0001-01-01T00:00:00Z\",\n    \"last_restarted_at\": \"0001-01-01T00:00:00Z\",\n    \"logger_tls_period\": 0,\n    \"mdm\": {\n      \"connected_to_fleet\": null,\n      \"dep_profile_error\": false,\n      \"encryption_key_available\": false,\n      \"enrollment_status\": null,\n      \"name\": \"\",\n      \"server_url\": null\n    },\n    \"memory\": 0,\n    \"orbit_version\": null,\n    \"os_version\": \"\",\n    \"osquery_version\": \"\",\n    \"pack_stats\": null,\n    \"percent_disk_space_available\": 0,\n    \"platform\": \"\",\n    \"platform_like\": \"\",\n    \"policy_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"primary_ip\": \"\",\n    \"primary_mac\": \"\",\n    \"public_ip\": \"\",\n    \"refetch_critical_queries_until\": null,\n    \"refetch_requested\": false,\n    \"scripts_enabled\": null,\n    \"seen_time\": \"0001-01-01T00:00:00Z\",\n    \"software\": [],\n    \"software_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"status\": \"offline\",\n    \"team_id\": null,\n    \"team_name\": null,\n    \"timezone\": null,\n    \"updated_at\": \"0001-01-01T00:00:00Z\",\n    \"uptime\": 0,\n    \"uuid\": \"\"\n  }\n}"
2132:  actual  : "{\n  \"apiVersion\": \"v1\",\n  \"kind\": \"host\",\n  \"spec\": {\n    \"additional\": {\n      \"query1\": [\n        {\n          \"col1\": \"val\",\n          \"col2\": 42\n        }\n      ]\n    },\n    \"build\": \"\",\n    \"code_name\": \"\",\n    \"computer_name\": \"test_host\",\n    \"config_tls_refresh\": 0,\n    \"cpu_brand\": \"\",\n    \"cpu_logical_cores\": 0,\n    \"cpu_physical_cores\": 0,\n    \"cpu_subtype\": \"\",\n    \"cpu_type\": \"\",\n    \"created_at\": \"0001-01-01T00:00:00Z\",\n    \"detail_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"display_name\": \"test_host\",\n    \"display_text\": \"test_host\",\n    \"distributed_interval\": 0,\n    \"fleet_desktop_version\": null,\n    \"fleet_id\": null,\n    \"fleet_name\": null,\n    \"gigs_all_disk_space\": null,\n    \"gigs_disk_space_available\": 0,\n    \"gigs_total_disk_space\": 0,\n    \"hardware_marketing_name\": \"\",\n    \"hardware_model\": \"\",\n    \"hardware_serial\": \"\",\n    \"hardware_vendor\": \"\",\n    \"hardware_version\": \"\",\n    \"hostname\": \"test_host\",\n    \"id\": 0,\n    \"issues\": {\n      \"failing_policies_count\": 0,\n      \"total_issues_count\": 0\n    },\n    \"label_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"last_enrolled_at\": \"0001-01-01T00:00:00Z\",\n    \"last_restarted_at\": \"0001-01-01T00:00:00Z\",\n    \"logger_tls_period\": 0,\n    \"mdm\": {\n      \"connected_to_fleet\": null,\n      \"dep_profile_error\": false,\n      \"encryption_key_available\": false,\n      \"enrollment_status\": null,\n      \"name\": \"\",\n      \"server_url\": null\n    },\n    \"memory\": 0,\n    \"orbit_version\": null,\n    \"os_version\": \"\",\n    \"osquery_version\": \"\",\n    \"pack_stats\": null,\n    \"percent_disk_space_available\": 0,\n    \"platform\": \"\",\n    \"platform_like\": \"\",\n    \"policy_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"primary_ip\": \"\",\n    \"primary_mac\": \"\",\n    \"public_ip\": \"\",\n    \"refetch_critical_queries_until\": null,\n    \"refetch_requested\": false,\n    \"scripts_enabled\": null,\n    \"seen_time\": \"0001-01-01T00:00:00Z\",\n    \"software\": [],\n    \"software_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"status\": \"offline\",\n    \"team_id\": null,\n    \"team_name\": null,\n    \"timezone\": null,\n    \"updated_at\": \"0001-01-01T00:00:00Z\",\n    \"uptime\": 0,\n    \"uuid\": \"\"\n  }\n}"
2133:  Diff:
2134:  --- Expected
2135:  +++ Actual
2136:  @@ -32,2 +32,3 @@
2137:  "gigs_total_disk_space": 0,
2138:  +    "hardware_marketing_name": "",
2139:  "hardware_model": "",
2140:  Test:       	TestGetHosts/get_hosts_--json_-_expectedListHostsJson.json
2141:  --- FAIL: TestGetHosts/get_hosts_--json_-_expectedListHostsJson.json (0.00s)
2142:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHosts/get_hosts_--json_test_host_-_expectedHostDetailResponseJson.json (0.00s)
2143:  get_test.go:569: 
2144:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/get_test.go:569
2145:  Error:      	Not equal: 
2146:  expected: "{\n  \"apiVersion\": \"v1\",\n  \"kind\": \"host\",\n  \"spec\": {\n    \"build\": \"\",\n    \"code_name\": \"\",\n    \"computer_name\": \"test_host\",\n    \"conditional_access_bypassed\": false,\n    \"config_tls_refresh\": 0,\n    \"cpu_brand\": \"\",\n    \"cpu_logical_cores\": 0,\n    \"cpu_physical_cores\": 0,\n    \"cpu_subtype\": \"\",\n    \"cpu_type\": \"\",\n    \"created_at\": \"0001-01-01T00:00:00Z\",\n    \"detail_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"display_name\": \"test_host\",\n    \"display_text\": \"test_host\",\n    \"distributed_interval\": 0,\n    \"fleet_desktop_version\": null,\n    \"fleet_id\": null,\n    \"fleet_name\": null,\n    \"gigs_all_disk_space\": null,\n    \"gigs_disk_space_available\": 0,\n    \"gigs_total_disk_space\": 0,\n    \"hardware_model\": \"\",\n    \"hardware_serial\": \"\",\n    \"hardware_vendor\": \"\",\n    \"hardware_version\": \"\",\n    \"hostname\": \"test_host\",\n    \"id\": 0,\n    \"issues\": {\n      \"failing_policies_count\": 0,\n      \"total_issues_count\": 0\n    },\n    \"label_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"labels\": [],\n    \"last_enrolled_at\": \"0001-01-01T00:00:00Z\",\n    \"last_mdm_checked_in_at\": null,\n    \"last_mdm_enrolled_at\": null,\n    \"last_restarted_at\": \"0001-01-01T00:00:00Z\",\n    \"logger_tls_period\": 0,\n    \"mdm\": {\n      \"connected_to_fleet\": null,\n      \"dep_profile_error\": false,\n      \"device_status\": \"unlocked\",\n      \"encryption_key_archived\": false,\n      \"encryption_key_available\": false,\n      \"enrollment_status\": null,\n      \"name\": \"\",\n      \"pending_action\": \"\",\n      \"server_url\": null\n    },\n    \"mdm_enrollment_hardware_attested\": false,\n    \"memory\": 0,\n    \"orbit_version\": null,\n    \"os_version\": \"\",\n    \"osquery_version\": \"\",\n    \"pack_stats\": null,\n    \"packs\": [],\n    \"percent_disk_space_available\": 0,\n    \"platform\": \"\",\n    \"platform_like\": \"\",\n    \"policies\": [\n      {\n        \"author_email\": \"alice@example.com\",\n        \"author_id\": 1,\n        \"author_name\": \"Alice\",\n        \"calendar_events_enabled\": true,\n        \"conditional_access_enabled\": false,\n        \"continuous_automations_enabled\": false,\n        \"created_at\": \"0001-01-01T00:00:00Z\",\n        \"critical\": false,\n        \"description\": \"Some description\",\n        \"fleet_id\": 1,\n        \"id\": 1,\n        \"name\": \"query1\",\n        \"platform\": \"\",\n        \"query\": \"select 1 from osquery_info where start_time \\u003e 1;\",\n        \"resolution\": \"Some resolution\",\n        \"response\": \"passes\",\n        \"team_id\": 1,\n        \"type\": \"dynamic\",\n        \"updated_at\": \"0001-01-01T00:00:00Z\"\n      },\n      {\n        \"author_email\": \"alice@example.com\",\n        \"author_id\": 1,\n        \"author_name\": \"Alice\",\n        \"calendar_events_enabled\": false,\n        \"conditional_access_enabled\": false,\n        \"continuous_automations_enabled\": false,\n        \"created_at\": \"0001-01-01T00:00:00Z\",\n        \"critical\": false,\n        \"description\": \"\",\n        \"fleet_id\": null,\n        \"id\": 2,\n        \"name\": \"query2\",\n        \"platform\": \"\",\n        \"query\": \"select 1 from osquery_info where start_time \\u003e 1;\",\n        \"response\": \"fails\",\n        \"team_id\": null,\n        \"type\": \"dynamic\",\n        \"updated_at\": \"0001-01-01T00:00:00Z\"\n      }\n    ],\n    \"policy_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"primary_ip\": \"\",\n    \"primary_mac\": \"\",\n    \"public_ip\": \"\",\n    \"refetch_critical_queries_until\": null,\n    \"refetch_requested\": false,\n    \"scripts_enabled\": null,\n    \"seen_time\": \"0001-01-01T00:00:00Z\",\n    \"software\": [],\n    \"software_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"status\": \"offline\",\n    \"team_id\": null,\n    \"team_name\": null,\n    \"timezone\": null,\n    \"updated_at\": \"0001-01-01T00:00:00Z\",\n    \"uptime\": 0,\n    \"uuid\": \"\"\n  }\n}"
2147:  actual  : "{\n  \"apiVersion\": \"v1\",\n  \"kind\": \"host\",\n  \"spec\": {\n    \"build\": \"\",\n    \"code_name\": \"\",\n    \"computer_name\": \"test_host\",\n    \"conditional_access_bypassed\": false,\n    \"config_tls_refresh\": 0,\n    \"cpu_brand\": \"\",\n    \"cpu_logical_cores\": 0,\n    \"cpu_physical_cores\": 0,\n    \"cpu_subtype\": \"\",\n    \"cpu_type\": \"\",\n    \"created_at\": \"0001-01-01T00:00:00Z\",\n    \"detail_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"display_name\": \"test_host\",\n    \"display_text\": \"test_host\",\n    \"distributed_interval\": 0,\n    \"fleet_desktop_version\": null,\n    \"fleet_id\": null,\n    \"fleet_name\": null,\n    \"gigs_all_disk_space\": null,\n    \"gigs_disk_space_available\": 0,\n    \"gigs_total_disk_space\": 0,\n    \"hardware_marketing_name\": \"\",\n    \"hardware_model\": \"\",\n    \"hardware_serial\": \"\",\n    \"hardware_vendor\": \"\",\n    \"hardware_version\": \"\",\n    \"hostname\": \"test_host\",\n    \"id\": 0,\n    \"issues\": {\n      \"failing_policies_count\": 0,\n      \"total_issues_count\": 0\n    },\n    \"label_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"labels\": [],\n    \"last_enrolled_at\": \"0001-01-01T00:00:00Z\",\n    \"last_mdm_checked_in_at\": null,\n    \"last_mdm_enrolled_at\": null,\n    \"last_restarted_at\": \"0001-01-01T00:00:00Z\",\n    \"logger_tls_period\": 0,\n    \"mdm\": {\n      \"connected_to_fleet\": null,\n      \"dep_profile_error\": false,\n      \"device_status\": \"unlocked\",\n      \"encryption_key_archived\": false,\n      \"encryption_key_available\": false,\n      \"enrollment_status\": null,\n      \"name\": \"\",\n      \"pending_action\": \"\",\n      \"server_url\": null\n    },\n    \"mdm_enrollment_hardware_attested\": false,\n    \"memory\": 0,\n    \"orbit_version\": null,\n    \"os_version\": \"\",\n    \"osquery_version\": \"\",\n    \"pack_stats\": null,\n    \"packs\": [],\n    \"percent_disk_space_available\": 0,\n    \"platform\": \"\",\n    \"platform_like\": \"\",\n    \"policies\": [\n      {\n        \"author_email\": \"alice@example.com\",\n        \"author_id\": 1,\n        \"author_name\": \"Alice\",\n        \"calendar_events_enabled\": true,\n        \"conditional_access_enabled\": false,\n        \"continuous_automations_enabled\": false,\n        \"created_at\": \"0001-01-01T00:00:00Z\",\n        \"critical\": false,\n        \"description\": \"Some description\",\n        \"fleet_id\": 1,\n        \"id\": 1,\n        \"name\": \"query1\",\n        \"platform\": \"\",\n        \"query\": \"select 1 from osquery_info where start_time \\u003e 1;\",\n        \"resolution\": \"Some resolution\",\n        \"response\": \"passes\",\n        \"team_id\": 1,\n        \"type\": \"dynamic\",\n        \"updated_at\": \"0001-01-01T00:00:00Z\"\n      },\n      {\n        \"author_email\": \"alice@example.com\",\n        \"author_id\": 1,\n        \"author_name\": \"Alice\",\n        \"calendar_events_enabled\": false,\n        \"conditional_access_enabled\": false,\n        \"continuous_automations_enabled\": false,\n        \"created_at\": \"0001-01-01T00:00:00Z\",\n        \"critical\": false,\n        \"description\": \"\",\n        \"fleet_id\": null,\n        \"id\": 2,\n        \"name\": \"query2\",\n        \"platform\": \"\",\n        \"query\": \"select 1 from osquery_info where start_time \\u003e 1;\",\n        \"response\": \"fails\",\n        \"team_id\": null,\n        \"type\": \"dynamic\",\n        \"updated_at\": \"0001-01-01T00:00:00Z\"\n      }\n    ],\n    \"policy_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"primary_ip\": \"\",\n    \"primary_mac\": \"\",\n    \"public_ip\": \"\",\n    \"refetch_critical_queries_until\": null,\n    \"refetch_requested\": false,\n    \"scripts_enabled\": null,\n    \"seen_time\": \"0001-01-01T00:00:00Z\",\n    \"software\": [],\n    \"software_updated_at\": \"0001-01-01T00:00:00Z\",\n    \"status\": \"offline\",\n    \"team_id\": null,\n    \"team_name\": null,\n    \"timezone\": null,\n    \"updated_at\": \"0001-01-01T00:00:00Z\",\n    \"uptime\": 0,\n    \"uuid\": \"\"\n  }\n}"
2148:  Diff:
2149:  --- Expected
2150:  +++ Actual
2151:  @@ -25,2 +25,3 @@
2152:  "gigs_total_disk_space": 0,
2153:  +    "hardware_marketing_name": "",
2154:  "hardware_model": "",
2155:  Test:       	TestGetHosts/get_hosts_--json_test_host_-_expectedHostDetailResponseJson.json
2156:  --- FAIL: TestGetHosts/get_hosts_--json_test_host_-_expectedHostDetailResponseJson.json (0.00s)
2157:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHosts/get_hosts_--yaml_-_expectedListHostsYaml.yml (0.01s)
2158:  get_test.go:569: 
2159:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/get_test.go:569
2160:  Error:      	Not equal: 
2161:  expected: "apiVersion: v1\nkind: host\nspec:\n  additional:\n    query1:\n    - col1: val\n      col2: 42\n  build: \"\"\n  code_name: \"\"\n  computer_name: test_host\n  config_tls_refresh: 0\n  cpu_brand: \"\"\n  cpu_logical_cores: 0\n  cpu_physical_cores: 0\n  cpu_subtype: \"\"\n  cpu_type: \"\"\n  created_at: \"0001-01-01T00:00:00Z\"\n  detail_updated_at: \"0001-01-01T00:00:00Z\"\n  display_name: test_host\n  display_text: test_host\n  distributed_interval: 0\n  fleet_desktop_version: null\n  fleet_id: null\n  fleet_name: null\n  gigs_all_disk_space: null\n  gigs_disk_space_available: 0\n  gigs_total_disk_space: 0\n  hardware_model: \"\"\n  hardware_serial: \"\"\n  hardware_vendor: \"\"\n  hardware_version: \"\"\n  hostname: test_host\n  id: 0\n  issues:\n    failing_policies_count: 0\n    total_issues_count: 0\n  label_updated_at: \"0001-01-01T00:00:00Z\"\n  last_enrolled_at: \"0001-01-01T00:00:00Z\"\n  last_restarted_at: \"0001-01-01T00:00:00Z\"\n  logger_tls_period: 0\n  mdm:\n    connected_to_fleet: null\n    dep_profile_error: false\n    encryption_key_available: false\n    enrollment_status: null\n    name: \"\"\n    server_url: null\n  memory: 0\n  orbit_version: null\n  os_version: \"\"\n  osquery_version: \"\"\n  pack_stats: null\n  percent_disk_space_available: 0\n  platform: \"\"\n  platform_like: \"\"\n  policy_updated_at: \"0001-01-01T00:00:00Z\"\n  primary_ip: \"\"\n  primary_mac: \"\"\n  public_ip: \"\"\n  refetch_critical_queries_until: null\n  refetch_requested: false\n  scripts_enabled: null\n  seen_time: \"0001-01-01T00:00:00Z\"\n  software: []\n  software_updated_at: \"0001-01-01T00:00:00Z\"\n  status: offline\n  team_id: null\n  team_name: null\n  timezone: null\n  updated_at: \"0001-01-01T00:00:00Z\"\n  uptime: 0\n  uuid: \"\"\n"
2162:  actual  : "apiVersion: v1\nkind: host\nspec:\n  additional:\n    query1:\n    - col1: val\n      col2: 42\n  build: \"\"\n  code_name: \"\"\n  computer_name: test_host\n  config_tls_refresh: 0\n  cpu_brand: \"\"\n  cpu_logical_cores: 0\n  cpu_physical_cores: 0\n  cpu_subtype: \"\"\n  cpu_type: \"\"\n  created_at: \"0001-01-01T00:00:00Z\"\n  detail_updated_at: \"0001-01-01T00:00:00Z\"\n  display_name: test_host\n  display_text: test_host\n  distributed_interval: 0\n  fleet_desktop_version: null\n  fleet_id: null\n  fleet_name: null\n  gigs_all_disk_space: null\n  gigs_disk_space_available: 0\n  gigs_total_disk_space: 0\n  hardware_marketing_name: \"\"\n  hardware_model: \"\"\n  hardware_serial: \"\"\n  hardware_vendor: \"\"\n  hardware_version: \"\"\n  hostname: test_host\n  id: 0\n  issues:\n    failing_policies_count: 0\n    total_issues_count: 0\n  label_updated_at: \"0001-01-01T00:00:00Z\"\n  last_enrolled_at: \"0001-01-01T00:00:00Z\"\n  last_restarted_at: \"0001-01-01T00:00:00Z\"\n  logger_tls_period: 0\n  mdm:\n    connected_to_fleet: null\n    dep_profile_error: false\n    encryption_key_available: false\n    enrollment_status: null\n    name: \"\"\n    server_url: null\n  memory: 0\n  orbit_version: null\n  os_version: \"\"\n  osquery_version: \"\"\n  pack_stats: null\n  percent_disk_space_available: 0\n  platform: \"\"\n  platform_like: \"\"\n  policy_updated_at: \"0001-01-01T00:00:00Z\"\n  primary_ip: \"\"\n  primary_mac: \"\"\n  public_ip: \"\"\n  refetch_critical_queries_until: null\n  refetch_requested: false\n  scripts_enabled: null\n  seen_time: \"0001-01-01T00:00:00Z\"\n  software: []\n  software_updated_at: \"0001-01-01T00:00:00Z\"\n  status: offline\n  team_id: null\n  team_name: null\n  timezone: null\n  updated_at: \"0001-01-01T00:00:00Z\"\n  uptime: 0\n  uuid: \"\"\n"
2163:  Diff:
2164:  --- Expected
2165:  +++ Actual
2166:  @@ -27,2 +27,3 @@
2167:  gigs_total_disk_space: 0
2168:  +  hardware_marketing_name: ""
2169:  hardware_model: ""
2170:  Test:       	TestGetHosts/get_hosts_--yaml_-_expectedListHostsYaml.yml
2171:  --- FAIL: TestGetHosts/get_hosts_--yaml_-_expectedListHostsYaml.yml (0.01s)
2172:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHosts/get_hosts_--yaml_test_host_-_expectedHostDetailResponseYaml.yml (0.01s)
2173:  get_test.go:569: 
2174:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/get_test.go:569
2175:  Error:      	Not equal: 
2176:  expected: "apiVersion: v1\nkind: host\nspec:\n  build: \"\"\n  code_name: \"\"\n  computer_name: test_host\n  conditional_access_bypassed: false\n  config_tls_refresh: 0\n  cpu_brand: \"\"\n  cpu_logical_cores: 0\n  cpu_physical_cores: 0\n  cpu_subtype: \"\"\n  cpu_type: \"\"\n  created_at: \"0001-01-01T00:00:00Z\"\n  detail_updated_at: \"0001-01-01T00:00:00Z\"\n  display_name: test_host\n  display_text: test_host\n  distributed_interval: 0\n  fleet_desktop_version: null\n  fleet_id: null\n  fleet_name: null\n  gigs_all_disk_space: null\n  gigs_disk_space_available: 0\n  gigs_total_disk_space: 0\n  hardware_model: \"\"\n  hardware_serial: \"\"\n  hardware_vendor: \"\"\n  hardware_version: \"\"\n  hostname: test_host\n  id: 0\n  issues:\n    failing_policies_count: 0\n    total_issues_count: 0\n  label_updated_at: \"0001-01-01T00:00:00Z\"\n  labels: []\n  last_enrolled_at: \"0001-01-01T00:00:00Z\"\n  last_mdm_checked_in_at: null\n  last_mdm_enrolled_at: null\n  last_restarted_at: \"0001-01-01T00:00:00Z\"\n  logger_tls_period: 0\n  mdm:\n    connected_to_fleet: null\n    dep_profile_error: false\n    device_status: unlocked\n    encryption_key_archived: false\n    encryption_key_available: false\n    enrollment_status: null\n    name: \"\"\n    pending_action: \"\"\n    server_url: null\n  mdm_enrollment_hardware_attested: false\n  memory: 0\n  orbit_version: null\n  os_version: \"\"\n  osquery_version: \"\"\n  pack_stats: null\n  packs: []\n  percent_disk_space_available: 0\n  platform: \"\"\n  platform_like: \"\"\n  policies:\n  - author_email: alice@example.com\n    author_id: 1\n    author_name: Alice\n    calendar_events_enabled: true\n    conditional_access_enabled: false\n    continuous_automations_enabled: false\n    created_at: \"0001-01-01T00:00:00Z\"\n    critical: false\n    description: Some description\n    fleet_id: 1\n    id: 1\n    name: query1\n    platform: \"\"\n    query: select 1 from osquery_info where start_time > 1;\n    resolution: Some resolution\n    response: passes\n    team_id: 1\n    type: dynamic\n    updated_at: \"0001-01-01T00:00:00Z\"\n  - author_email: alice@example.com\n    author_id: 1\n    author_name: Alice\n    calendar_events_enabled: false\n    conditional_access_enabled: false\n    continuous_automations_enabled: false\n    created_at: \"0001-01-01T00:00:00Z\"\n    critical: false\n    description: \"\"\n    fleet_id: null\n    id: 2\n    name: query2\n    platform: \"\"\n    query: select 1 from osquery_info where start_time > 1;\n    response: fails\n    team_id: null\n    type: dynamic\n    updated_at: \"0001-01-01T00:00:00Z\"\n  policy_updated_at: \"0001-01-01T00:00:00Z\"\n  primary_ip: \"\"\n  primary_mac: \"\"\n  public_ip: \"\"\n  refetch_critical_queries_until: null\n  refetch_requested: false\n  scripts_enabled: null\n  seen_time: \"0001-01-01T00:00:00Z\"\n  software: []\n  software_updated_at: \"0001-01-01T00:00:00Z\"\n  status: offline\n  team_id: null\n  team_name: null\n  timezone: null\n  updated_at: \"0001-01-01T00:00:00Z\"\n  uptime: 0\n  uuid: \"\"\n"
2177:  actual  : "apiVersion: v1\nkind: host\nspec:\n  build: \"\"\n  code_name: \"\"\n  computer_name: test_host\n  conditional_access_bypassed: false\n  config_tls_refresh: 0\n  cpu_brand: \"\"\n  cpu_logical_cores: 0\n  cpu_physical_cores: 0\n  cpu_subtype: \"\"\n  cpu_type: \"\"\n  created_at: \"0001-01-01T00:00:00Z\"\n  detail_updated_at: \"0001-01-01T00:00:00Z\"\n  display_name: test_host\n  display_text: test_host\n  distributed_interval: 0\n  fleet_desktop_version: null\n  fleet_id: null\n  fleet_name: null\n  gigs_all_disk_space: null\n  gigs_disk_space_available: 0\n  gigs_total_disk_space: 0\n  hardware_marketing_name: \"\"\n  hardware_model: \"\"\n  hardware_serial: \"\"\n  hardware_vendor: \"\"\n  hardware_version: \"\"\n  hostname: test_host\n  id: 0\n  issues:\n    failing_policies_count: 0\n    total_issues_count: 0\n  label_updated_at: \"0001-01-01T00:00:00Z\"\n  labels: []\n  last_enrolled_at: \"0001-01-01T00:00:00Z\"\n  last_mdm_checked_in_at: null\n  last_mdm_enrolled_at: null\n  last_restarted_at: \"0001-01-01T00:00:00Z\"\n  logger_tls_period: 0\n  mdm:\n    connected_to_fleet: null\n    dep_profile_error: false\n    device_status: unlocked\n    encryption_key_archived: false\n    encryption_key_available: false\n    enrollment_status: null\n    name: \"\"\n    pending_action: \"\"\n    server_url: null\n  mdm_enrollment_hardware_attested: false\n  memory: 0\n  orbit_version: null\n  os_version: \"\"\n  osquery_version: \"\"\n  pack_stats: null\n  packs: []\n  percent_disk_space_available: 0\n  platform: \"\"\n  platform_like: \"\"\n  policies:\n  - author_email: alice@example.com\n    author_id: 1\n    author_name: Alice\n    calendar_events_enabled: true\n    conditional_access_enabled: false\n    continuous_automations_enabled: false\n    created_at: \"0001-01-01T00:00:00Z\"\n    critical: false\n    description: Some description\n    fleet_id: 1\n    id: 1\n    name: query1\n    platform: \"\"\n    query: select 1 from osquery_info where start_time > 1;\n    resolution: Some resolution\n    response: passes\n    team_id: 1\n    type: dynamic\n    updated_at: \"0001-01-01T00:00:00Z\"\n  - author_email: alice@example.com\n    author_id: 1\n    author_name: Alice\n    calendar_events_enabled: false\n    conditional_access_enabled: false\n    continuous_automations_enabled: false\n    created_at: \"0001-01-01T00:00:00Z\"\n    critical: false\n    description: \"\"\n    fleet_id: null\n    id: 2\n    name: query2\n    platform: \"\"\n    query: select 1 from osquery_info where start_time > 1;\n    response: fails\n    team_id: null\n    type: dynamic\n    updated_at: \"0001-01-01T00:00:00Z\"\n  policy_updated_at: \"0001-01-01T00:00:00Z\"\n  primary_ip: \"\"\n  primary_mac: \"\"\n  public_ip: \"\"\n  refetch_critical_queries_until: null\n  refetch_requested: false\n  scripts_enabled: null\n  seen_time: \"0001-01-01T00:00:00Z\"\n  software: []\n  software_updated_at: \"0001-01-01T00:00:00Z\"\n  status: offline\n  team_id: null\n  team_name: null\n  timezone: null\n  updated_at: \"0001-01-01T00:00:00Z\"\n  uptime: 0\n  uuid: \"\"\n"
2178:  Diff:
2179:  --- Expected
2180:  +++ Actual
2181:  @@ -24,2 +24,3 @@
2182:  gigs_total_disk_space: 0
2183:  +  hardware_marketing_name: ""
2184:  hardware_model: ""
2185:  Test:       	TestGetHosts/get_hosts_--yaml_test_host_-_expectedHostDetailResponseYaml.yml
2186:  --- FAIL: TestGetHosts/get_hosts_--yaml_test_host_-_expectedHostDetailResponseYaml.yml (0.01s)
2187:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHosts (0.43s)
2188:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHostsMDM/get_hosts_--mdm_--json_-_expectedListHostsMDM.json (0.01s)
2189:  get_test.go:708: 
2190:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/get_test.go:708
2191:  Error:      	Not equal: 
2192:  expected: []interface {}{map[string]interface {}{"apiVersion":"v1", "kind":"host", "spec":map[string]interface {}{"additional":map[string]interface {}{"query1":[]interface {}{map[string]interface {}{"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":interface {}(nil), "fleet_id":interface {}(nil), "fleet_name":interface {}(nil), "gigs_all_disk_space":interface {}(nil), "gigs_disk_space_available":0, "gigs_total_disk_space":0, "hardware_model":"", "hardware_serial":"", "hardware_vendor":"", "hardware_version":"", "hostname":"test_host", "id":0, "issues":map[string]interface {}{"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":map[string]interface {}{"connected_to_fleet":interface {}(nil), "dep_profile_error":false, "encryption_key_available":false, "enrollment_status":interface {}(nil), "name":"", "server_url":interface {}(nil)}, "memory":0, "orbit_version":interface {}(nil), "os_version":"", "osquery_version":"", "pack_stats":interface {}(nil), "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":interface {}(nil), "refetch_requested":false, "scripts_enabled":interface {}(nil), "seen_time":"0001-01-01T00:00:00Z", "software":[]interface {}{}, "software_updated_at":"0001-01-01T00:00:00Z", "status":"offline", "team_id":interface {}(nil), "team_name":interface {}(nil), "timezone":interface {}(nil), "updated_at":"0001-01-01T00:00:00Z", "uptime":0, "uuid":""}}, map[string]interface {}{"apiVersion":"v1", "kind":"host", "spec":map[string]interface {}{"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":interface {}(nil), "fleet_id":interface {}(nil), "fleet_name":interface {}(nil), "gigs_all_disk_space":interface {}(nil), "gigs_disk_space_available":0, "gigs_total_disk_space":0, "hardware_model":"", "hardware_serial":"", "hardware_vendor":"", "hardware_version":"", "hostname":"test_host2", "id":0, "issues":map[string]interface {}{"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":map[string]interface {}{"connected_to_fleet":interface {}(nil), "dep_profile_error":false, "encryption_key_available":false, "enrollment_status":interface {}(nil), "name":"", "server_url":interface {}(nil)}, "memory":0, "orbit_version":interface {}(nil), "os_version":"", "osquery_version":"", "pack_stats":interface {}(nil), "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":interface {}(nil), "refetch_requested":false, "scripts_enabled":interface {}(nil), "seen_time":"0001-01-01T00:00:00Z", "software":[]interface {}{}, "software_updated_at":"0001-01-01T00:00:00Z", "status":"offline", "team_id":interface {}(nil), "team_name":interface {}(nil), "timezone":interface {}(nil), "updated_at":"0001-01-01T00:00:00Z", "uptime":0, "uuid":""}}}
2193:  actual  : []interface {}{map[string]interface {}{"apiVersion":"v1", "kind":"host", "spec":map[string]interface {}{"additional":map[string]interface {}{"query1":[]interface {}{map[string]interface {}{"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":interface {}(nil), "fleet_id":interface {}(nil), "fleet_name":interface {}(nil), "gigs_all_disk_space":interface {}(nil), "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":map[string]interface {}{"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":map[string]interface {}{"connected_to_fleet":interface {}(nil), "dep_profile_error":false, "encryption_key_available":false, "enrollment_status":interface {}(nil), "name":"", "server_url":interface {}(nil)}, "memory":0, "orbit_version":interface {}(nil), "os_version":"", "osquery_version":"", "pack_stats":interface {}(nil), "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":interface {}(nil), "refetch_requested":false, "scripts_enabled":interface {}(nil), "seen_time":"0001-01-01T00:00:00Z", "software":[]interface {}{}, "software_updated_at":"0001-01-01T00:00:00Z", "status":"offline", "team_id":interface {}(nil), "team_name":interface {}(nil), "timezone":interface {}(nil), "updated_at":"0001-01-01T00:00:00Z", "uptime":0, "uuid":""}}, map[string]interface {}{"apiVersion":"v1", "kind":"host", "spec":map[string]interface {}{"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":interface {}(nil), "fleet_id":interface {}(nil), "fleet_name":interface {}(nil), "gigs_all_disk_space":interface {}(nil), "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":map[string]interface {}{"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":map[string]interface {}{"connected_to_fleet":interface {}(nil), "dep_profile_error":false, "encryption_key_available":false, "enrollment_status":interface {}(nil), "name":"", "server_url":interface {}(nil)}, "memory":0, "orbit_version":interface {}(nil), "os_version":"", "osquery_version":"", "pack_stats":interface {}(nil), "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":interface {}(nil), "refetch_requested":false, "scripts_enabled":interface {}(nil), "seen_time":"0001-01-01T00:00:00Z", "software":[]interface {}{}, "software_updated_at":"0001-01-01T00:00:00Z", "status":"offline", "team_id":interface {}(nil), "team_name":interface {}(nil), "timezone":interface {}(nil), "updated_at":"0001-01-01T00:00:00Z", "uptime":0, "uuid":""}}}
2194:  Diff:
...

2201:  (string) (len=10) "additional": (map[string]interface {}) (len=1) {
2202:  @@ -33,2 +33,3 @@
2203:  (string) (len=21) "gigs_total_disk_space": (float64) 0,
2204:  +   (string) (len=23) "hardware_marketing_name": (string) "",
2205:  (string) (len=14) "hardware_model": (string) "",
2206:  @@ -86,3 +87,3 @@
2207:  (string) (len=4) "kind": (string) (len=4) "host",
2208:  -  (string) (len=4) "spec": (map[string]interface {}) (len=57) {
2209:  +  (string) (len=4) "spec": (map[string]interface {}) (len=58) {
2210:  (string) (len=5) "build": (string) "",
2211:  @@ -107,2 +108,3 @@
2212:  (string) (len=21) "gigs_total_disk_space": (float64) 0,
2213:  +   (string) (len=23) "hardware_marketing_name": (string) "",
2214:  (string) (len=14) "hardware_model": (string) "",
2215:  Test:       	TestGetHostsMDM/get_hosts_--mdm_--json_-_expectedListHostsMDM.json
2216:  --- FAIL: TestGetHostsMDM/get_hosts_--mdm_--json_-_expectedListHostsMDM.json (0.01s)
2217:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGetHostsMDM/get_hosts_--mdm-pending_--yaml_-_expectedListHostsYaml.yml (0.01s)
2218:  get_test.go:715: 
2219:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/get_test.go:715
2220:  Error:      	Not equal: 
2221:  expected: map[string]interface {}{"apiVersion":"v1", "kind":"host", "spec":map[string]interface {}{"additional":map[string]interface {}{"query1":[]interface {}{map[string]interface {}{"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":interface {}(nil), "fleet_id":interface {}(nil), "fleet_name":interface {}(nil), "gigs_all_disk_space":interface {}(nil), "gigs_disk_space_available":0, "gigs_total_disk_space":0, "hardware_model":"", "hardware_serial":"", "hardware_vendor":"", "hardware_version":"", "hostname":"test_host", "id":0, "issues":map[string]interface {}{"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":map[string]interface {}{"connected_to_fleet":interface {}(nil), "dep_profile_error":false, "encryption_key_available":false, "enrollment_status":interface {}(nil), "name":"", "server_url":interface {}(nil)}, "memory":0, "orbit_version":interface {}(nil), "os_version":"", "osquery_version":"", "pack_stats":interface {}(nil), "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":interface {}(nil), "refetch_requested":false, "scripts_enabled":interface {}(nil), "seen_time":"0001-01-01T00:00:00Z", "software":[]interface {}{}, "software_updated_at":"0001-01-01T00:00:00Z", "status":"offline", "team_id":interface {}(nil), "team_name":interface {}(nil), "timezone":interface {}(nil), "updated_at":"0001-01-01T00:00:00Z", "uptime":0, "uuid":""}}
2222:  actual  : map[string]interface {}{"apiVersion":"v1", "kind":"host", "spec":map[string]interface {}{"additional":map[string]interface {}{"query1":[]interface {}{map[string]interface {}{"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":interface {}(nil), "fleet_id":interface {}(nil), "fleet_name":interface {}(nil), "gigs_all_disk_space":interface {}(nil), "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":map[string]interf...

@spalmesano0 spalmesano0 marked this pull request as draft May 29, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display hardware marketing names instead of hardware identifiers in host details

2 participants