fleet/cmd/fleetctl/integrationtest
Lucas Manuel Rodriguez 554f268768
Add team assignment checks to APIs that do label association (#37246)
Resolves #37104

## 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)

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

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

## Summary by CodeRabbit

* **New Features**
* Label validation now enforces team-context constraints for policies,
queries, and MDM profiles.
  * Global policies now verify label validity before creation.

* **Bug Fixes**
* Improved label association verification in team-specific
configurations.

* **Tests**
* Added comprehensive test coverage for team label associations,
including label scoping validation and team deletion scenarios.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2025-12-15 14:11:36 -03:00
..
gitops Add team assignment checks to APIs that do label association (#37246) 2025-12-15 14:11:36 -03:00
package Moved some integration tests into their own package. (#28978) 2025-05-09 09:26:57 -05:00
preview Apply starter library during for fleetctl preview server (#30519) 2025-07-16 08:12:32 -06:00
vuln Moved some integration tests into their own package. (#28978) 2025-05-09 09:26:57 -05:00
suite.go Moved some integration tests into their own package. (#28978) 2025-05-09 09:26:57 -05:00