TenantAtlas/tests/Unit
ahmido d120ed7c92 feat: endpoint security restore execution (023) (#25)
Added a resolver/validation flow that fetches endpoint security template definitions and enforces them before CREATE/PATCH so we don’t call Graph with invalid settings.
Hardened restore endpoint resolution (built-in fallback to deviceManagement/configurationPolicies, clearer error metadata, preview-only fallback when metadata is missing) and exposed Graph path/method in restore UI details.
Stripped read-only fields when PATCHing endpointSecurityIntent so the request no longer fails with “properties not patchable”.
Added regression tests covering endpoint security restore, intent sanitization, unknown type safety, Graph error metadata, and endpoint resolution behavior.
Testing

GraphClientEndpointResolutionTest.php
./vendor/bin/pint --dirty

Co-authored-by: Ahmed Darrazi <ahmeddarrazi@adsmac.local>
Reviewed-on: #25
2026-01-03 22:44:08 +00:00
..
AppProtectionPolicyNormalizerTest.php feat/009-app-protection-policy (#11) 2025-12-29 16:11:50 +00:00
AssignmentBackupServiceTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
AssignmentFetcherTest.php 013-scripts-management (#19) 2026-01-01 22:02:30 +00:00
AssignmentFilterResolverTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
AssignmentRestoreServiceTest.php feat/009-app-protection-policy (#11) 2025-12-29 16:11:50 +00:00
BackupItemTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BulkActionPermissionTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkBackupSetDeleteJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkBackupSetForceDeleteJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkBackupSetRestoreJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkOperationAbortMethodTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkOperationRunProgressTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPolicyDeleteJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPolicyExportJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPolicyVersionForceDeleteJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPolicyVersionPruneJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkPolicyVersionRestoreJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkRestoreRunDeleteJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
BulkRestoreRunRestoreJobTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
CircuitBreakerTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
CompliancePolicyNormalizerTest.php feat(007): device config & compliance snapshot/restore improvements (#9) 2025-12-29 12:46:20 +00:00
DefaultPolicyNormalizerDiffTest.php feat(007): device config & compliance snapshot/restore improvements (#9) 2025-12-29 12:46:20 +00:00
DeviceConfigurationPolicyNormalizerTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
ExampleTest.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
FoundationMappingServiceTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
FoundationSnapshotServiceTest.php feat/012-windows-update-rings (#18) 2026-01-01 10:44:17 +00:00
GraphClientEndpointResolutionTest.php feat: endpoint security restore execution (023) (#25) 2026-01-03 22:44:08 +00:00
GraphClientScopeTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
GraphContractFallbackTest.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
GraphContractRegistryActualDataTest.php feat/009-app-protection-policy (#11) 2025-12-29 16:11:50 +00:00
GraphContractRegistrySettingsApplySanitizerTest.php feat: merge 001-filament-json 2025-12-14 20:23:18 +01:00
GraphContractRegistrySettingsWriteStrategyTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
GraphContractRegistryTest.php feat(007): device config & compliance snapshot/restore improvements (#9) 2025-12-29 12:46:20 +00:00
GroupResolverTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
ManagedDeviceAppConfigurationNormalizerTest.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
MicrosoftGraphClientListPoliciesSelectTest.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
MicrosoftGraphClientTest.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
PolicyCaptureOrchestratorTest.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
PolicyNormalizerRoutingTest.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
PolicyNormalizerSettingsCatalogFlattenTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
PolicyNormalizerSettingsCatalogTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
PolicyNormalizerTest.php 014-enrollment-autopilot (#20) 2026-01-02 11:59:21 +00:00
PolicyPickerOptionLabelTest.php 015-policy-picker-ux (#21) 2026-01-02 13:59:15 +00:00
PolicySnapshotServiceTest.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
PolicyVersionEligibilityTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
RbacOnboardingServiceTest.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
RestoreRunDeletableTest.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
RestoreRunTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
ScopeTagResolverTest.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
ScriptsPolicyNormalizerTest.php 013-scripts-management (#19) 2026-01-01 22:02:30 +00:00
SettingsCatalogPolicyNormalizerTest.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
TenantCurrentTest.php feat/012-windows-update-rings (#18) 2026-01-01 10:44:17 +00:00
TenantPermissionServiceTest.php feat(006): foundations + assignment mapping and preview-only restore guard (#7) 2025-12-26 23:44:31 +00:00
TenantResourceConsentUrlTest.php dev-merges/c709b36 (#3) 2025-12-21 23:15:12 +00:00
TenantScopeTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
VersionDiffTest.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00