fleet/server/test
Victor Lyuboslavsky 85a98d83dd
Refactor EnrollOrbit/EnrollHost (#30872)
Fixes #30473 

Refactore Datastore.EnrollHost and Datastore.EnrollOrbit methods to use
functional options. Doing this refactor before adding new options to
those methods. This should make the code more maintainable and easier to
understand.

No functional changes here. Just refactoring.

# Checklist for submitter

- [x] Added/updated automated tests


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

## Summary by CodeRabbit

* **Refactor**
* Streamlined host and Orbit enrollment methods to use a flexible
options-based pattern instead of fixed parameter lists.
* Updated related tests and service logic to use the new options
approach, improving clarity and extensibility for enrollment operations.

* **New Features**
* Introduced configuration options for host and Orbit enrollment,
allowing more explicit and customizable parameter setting during
enrollment.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-07-15 17:22:02 -03:00
..
httptest Replace home-made SAML implementation with https://github.com/crewjam/saml (#28486) 2025-07-07 15:13:46 -03:00
activities.go Propagate self-service flag on uninstalls through to activity (#29691) 2025-06-03 09:09:43 -06:00
comparisons.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
context.go Implement API endpoint for MDM manual enrollment profile download (#9232) 2023-01-16 10:22:12 -05:00
enrollment.go Refactor EnrollOrbit/EnrollHost (#30872) 2025-07-15 17:22:02 -03:00
functions.go Extract functionName into helper 2020-07-21 14:05:46 -07:00
mdm.go BRP: cancel single profile on delete via UI (#29107) 2025-05-20 08:55:51 -04:00
new_objects.go Android: add 'Android' builtin label, add new Android hosts to 'All hosts' and this label (#26585) 2025-02-25 14:44:48 -05:00
printing.go Bulk script execution backend (#28299) 2025-04-30 12:54:46 -04:00
testingt.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
users.go New gitops role (#10850) 2023-04-12 16:11:04 -03:00