Commit e15311c
authored
Fix enforcement of unique policy name of policies across spaces (#239631)
Resolves: #228746
Fixes fleet policy name uniqueness not being consistently enforced
across spaces when name or space changes occur:
* When creating an agent policy with packages
(like system), the name incrementation accounts for package names that
already exist in the spaces to be set for the new policy.
* Creating or updating an agent policy for multiple spaces that has the
same name of another policy that is not in the current namespace now
results in an error.
* When an agent policy with multiple spaces has an integration policy
name updated to one that already exists in another space that is not the
current namespace now results in an error.1 parent 82528fc commit e15311c
File tree
16 files changed
+649
-171
lines changed- x-pack/platform
- test/fleet_api_integration/apis/space_awareness
16 files changed
+649
-171
lines changedLines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 354 | + | |
360 | 355 | | |
361 | 356 | | |
| 357 | + | |
362 | 358 | | |
363 | 359 | | |
364 | 360 | | |
| |||
401 | 397 | | |
402 | 398 | | |
403 | 399 | | |
404 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
405 | 404 | | |
406 | | - | |
407 | 405 | | |
408 | 406 | | |
409 | 407 | | |
| |||
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
546 | | - | |
| 544 | + | |
547 | 545 | | |
| 546 | + | |
548 | 547 | | |
549 | 548 | | |
550 | 549 | | |
| |||
560 | 559 | | |
561 | 560 | | |
562 | 561 | | |
563 | | - | |
| 562 | + | |
564 | 563 | | |
565 | | - | |
566 | 564 | | |
567 | | - | |
| 565 | + | |
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
| |||
0 commit comments