fleet/pkg/spec
Victor Lyuboslavsky 55423f67e2
Fixed parsing of relative paths for MDM profiles in gitops no-team.yml (#26046)
For #25770 

We already unmarshal macOS/Windows settings (added by Martin), so we
replace the path with an absolute file path and keep them unmarshalled
so they don't have to be re-unmarshalled later. Note: the custom
UnmarshalJSON method on these structs checks for (and handles) legacy
format (before labels were added).

Also some refactorings:
- extracted `extractControlsForNoTeam`
- reorganized `TestGitOpsBasicGlobalAndNoTeam` with subtests -- I did
not actually change functionality of this test

# Checklist for submitter

- [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/Committing-Changes.md#changes-files)
for more information.
- [x] Added/updated automated tests
- [x] A detailed QA plan exists on the associated ticket (if it isn't
there, work with the product group's QA engineer to add it)
- [x] Manual QA for all new/changed functionality
2025-02-06 16:39:15 -06:00
..
testdata Add VPP install automation in GitOps (#25400) 2025-01-14 12:52:39 -06:00
gitops.go Fixed parsing of relative paths for MDM profiles in gitops no-team.yml (#26046) 2025-02-06 16:39:15 -06:00
gitops_test.go Fixed parsing of relative paths for MDM profiles in gitops no-team.yml (#26046) 2025-02-06 16:39:15 -06:00
spec.go Embedded secrets validation (#24624) 2024-12-17 17:14:12 -05:00
spec_test.go Adding secret support to scripts via gitops. (#24649) 2024-12-11 15:05:48 -06:00