fleet/pkg/spec/testdata
Scott Gress 162346c4a2
Allow fleet host ID when specifying Gitops manual label hosts (#33078)
for #32014

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [X] Added/updated automated tests
- [X] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [X] QA'd all new/changed functionality manually

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

## Summary by CodeRabbit

- New Features
- GitOps manual labels can now reference hosts by Fleet host ID in
addition to hostname, hardware serial, or UUID.
- GitOps YAML/JSON accepts integers for host IDs; numeric IDs are
handled seamlessly alongside strings.

- Validation
- Stronger input validation for label hosts: only strings or integers
are allowed.
- Clear error returned for invalid types (e.g., floats) in hosts lists.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-22 13:54:30 -05:00
..
lib Add backend APIs for adding, deleting and listing secret variables (#31936) 2025-08-14 19:33:47 -03:00
policies Exclude certain sections from var interpolation when running gitops cmd (#28625) 2025-04-29 15:09:25 -04:00
software Support providing multiple packages per software package file in GitOps (#32503) 2025-09-05 08:38:00 -05:00
agent-options.yml Support environment variables in config profiles (#18891) 2024-05-28 13:44:43 -03:00
controls.yml Windows MDM Migration: API, CLI and activities (#24141) 2024-11-26 11:52:56 -05:00
empty.yml fleetctl gitops (#16535) 2024-02-09 13:34:57 -06:00
global_config.yml Manage labels in GitOps (#27038) 2025-03-19 16:35:11 -05:00
global_config_no_paths.yml Allow fleet host ID when specifying Gitops manual label hosts (#33078) 2025-09-22 13:54:30 -05:00
microsoft-teams.invalid.sha.pkg.software.yml enable specifying installers by SHA256 in gitops (#28349) 2025-04-18 16:41:41 -04:00
microsoft-teams.nourl.pkg.software.yml Tweak GitOps software handling, allow setup experience bool on package details, update generate-gitops (#32492) 2025-09-03 13:32:11 -05:00
microsoft-teams.pkg.software.yml Tweak GitOps software handling, allow setup experience bool on package details, update generate-gitops (#32492) 2025-09-03 13:32:11 -05:00
multipkg.policies.yml Support providing multiple packages per software package file in GitOps (#32503) 2025-09-05 08:38:00 -05:00
org-settings.yml Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
team-settings.yml Support environment variables in config profiles (#18891) 2024-05-28 13:44:43 -03:00
team_config.yml Tweak GitOps software handling, allow setup experience bool on package details, update generate-gitops (#32492) 2025-09-03 13:32:11 -05:00
team_config_invalid_sha.yml enable specifying installers by SHA256 in gitops (#28349) 2025-04-18 16:41:41 -04:00
team_config_no_paths.yml Tweak GitOps software handling, allow setup experience bool on package details, update generate-gitops (#32492) 2025-09-03 13:32:11 -05:00
team_config_only_sha256.yml Tweak GitOps software handling, allow setup experience bool on package details, update generate-gitops (#32492) 2025-09-03 13:32:11 -05:00
team_install_software.nourl.policies.yml Fix handling of software policy automations when a hash is specified inside a software file (#30814) 2025-07-15 13:24:24 -05:00
team_install_software.policies.yml Add GitOps support for policy installers (#21826) 2024-09-06 19:10:28 -03:00
top.labels.yml Allow fleet host ID when specifying Gitops manual label hosts (#33078) 2025-09-22 13:54:30 -05:00
top.queries.yml Support environment variables in config profiles (#18891) 2024-05-28 13:44:43 -03:00