Compare commits
26 Commits
dev
...
feat/011-r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28c3f81521 | ||
|
|
af67de0f61 | ||
|
|
818219382f | ||
|
|
28b120c579 | ||
|
|
3e7e699e00 | ||
|
|
0e6d80c671 | ||
| e19aa09ae0 | |||
|
|
e1cda6a1dc | ||
|
|
44b4a6adf0 | ||
|
|
711e012827 | ||
|
|
9e3c2b3011 | ||
|
|
948af56185 | ||
|
|
26755df017 | ||
|
|
4c9544e9b7 | ||
|
|
5e16c25fca | ||
|
|
a43fef535b | ||
|
|
a58db008f8 | ||
|
|
cd76fa5dd7 | ||
|
|
f32fdfb1e4 | ||
|
|
8ba2aae82e | ||
|
|
2b9b649549 | ||
|
|
7e4c9bb610 | ||
|
|
e7d21e0eb8 | ||
|
|
0795d31abe | ||
|
|
3cf4aa2cf4 | ||
|
|
6844bc1c17 |
@ -19,6 +19,8 @@
|
|||||||
'type_family' => [
|
'type_family' => [
|
||||||
'#microsoft.graph.deviceConfiguration',
|
'#microsoft.graph.deviceConfiguration',
|
||||||
'#microsoft.graph.windows10CustomConfiguration',
|
'#microsoft.graph.windows10CustomConfiguration',
|
||||||
|
'#microsoft.graph.windows10GeneralConfiguration',
|
||||||
|
'#microsoft.graph.windowsHealthMonitoringConfiguration',
|
||||||
'#microsoft.graph.iosGeneralDeviceConfiguration',
|
'#microsoft.graph.iosGeneralDeviceConfiguration',
|
||||||
'#microsoft.graph.androidGeneralDeviceConfiguration',
|
'#microsoft.graph.androidGeneralDeviceConfiguration',
|
||||||
'#microsoft.graph.macOSGeneralDeviceConfiguration',
|
'#microsoft.graph.macOSGeneralDeviceConfiguration',
|
||||||
@ -344,6 +346,8 @@
|
|||||||
'#microsoft.graph.windows10CompliancePolicy',
|
'#microsoft.graph.windows10CompliancePolicy',
|
||||||
'#microsoft.graph.iosCompliancePolicy',
|
'#microsoft.graph.iosCompliancePolicy',
|
||||||
'#microsoft.graph.androidCompliancePolicy',
|
'#microsoft.graph.androidCompliancePolicy',
|
||||||
|
'#microsoft.graph.androidDeviceOwnerCompliancePolicy',
|
||||||
|
'#microsoft.graph.androidWorkProfileCompliancePolicy',
|
||||||
'#microsoft.graph.macOSCompliancePolicy',
|
'#microsoft.graph.macOSCompliancePolicy',
|
||||||
],
|
],
|
||||||
'create_method' => 'POST',
|
'create_method' => 'POST',
|
||||||
@ -369,6 +373,7 @@
|
|||||||
'#microsoft.graph.targetedManagedAppProtection',
|
'#microsoft.graph.targetedManagedAppProtection',
|
||||||
'#microsoft.graph.iosManagedAppProtection',
|
'#microsoft.graph.iosManagedAppProtection',
|
||||||
'#microsoft.graph.androidManagedAppProtection',
|
'#microsoft.graph.androidManagedAppProtection',
|
||||||
|
'#microsoft.graph.windowsManagedAppProtection',
|
||||||
'#microsoft.graph.windowsInformationProtectionPolicy',
|
'#microsoft.graph.windowsInformationProtectionPolicy',
|
||||||
'#microsoft.graph.mdmWindowsInformationProtectionPolicy',
|
'#microsoft.graph.mdmWindowsInformationProtectionPolicy',
|
||||||
],
|
],
|
||||||
@ -574,7 +579,11 @@
|
|||||||
'resource' => 'deviceManagement/deviceEnrollmentConfigurations',
|
'resource' => 'deviceManagement/deviceEnrollmentConfigurations',
|
||||||
'allowed_select' => ['id', 'displayName', 'description', '@odata.type', 'version'],
|
'allowed_select' => ['id', 'displayName', 'description', '@odata.type', 'version'],
|
||||||
'allowed_expand' => [],
|
'allowed_expand' => [],
|
||||||
'type_family' => [],
|
'type_family' => [
|
||||||
|
'#microsoft.graph.deviceEnrollmentConfiguration',
|
||||||
|
'#microsoft.graph.deviceEnrollmentWindowsHelloForBusinessConfiguration',
|
||||||
|
'#microsoft.graph.windowsRestoreDeviceEnrollmentConfiguration',
|
||||||
|
],
|
||||||
'create_method' => 'POST',
|
'create_method' => 'POST',
|
||||||
'update_method' => 'PATCH',
|
'update_method' => 'PATCH',
|
||||||
'id_field' => 'id',
|
'id_field' => 'id',
|
||||||
|
|||||||
@ -38,6 +38,7 @@ ## Phase 7 — Tests + Formatting
|
|||||||
- [x] T018 Add Pest tests for wizard gating rules and status transitions.
|
- [x] T018 Add Pest tests for wizard gating rules and status transitions.
|
||||||
- [x] T019 Add Pest tests for safety checks persistence and blocking behavior.
|
- [x] T019 Add Pest tests for safety checks persistence and blocking behavior.
|
||||||
- [x] T020 Add Pest tests for preview summary generation.
|
- [x] T020 Add Pest tests for preview summary generation.
|
||||||
|
- [x] T024 Fix Graph contract type families to accept valid derived @odata.type values during restore.
|
||||||
- [x] T021 Run `./vendor/bin/pint --dirty`.
|
- [x] T021 Run `./vendor/bin/pint --dirty`.
|
||||||
- [x] T022 Run targeted tests (e.g. `./vendor/bin/sail artisan test --filter=RestoreRunWizard` once tests exist).
|
- [x] T022 Run targeted tests (e.g. `./vendor/bin/sail artisan test --filter=RestoreRunWizard` once tests exist).
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,9 @@
|
|||||||
->use(RefreshDatabase::class)
|
->use(RefreshDatabase::class)
|
||||||
->in('Feature');
|
->in('Feature');
|
||||||
|
|
||||||
|
pest()->extend(Tests\TestCase::class)
|
||||||
|
->in('Unit');
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
putenv('INTUNE_TENANT_ID');
|
putenv('INTUNE_TENANT_ID');
|
||||||
unset($_ENV['INTUNE_TENANT_ID'], $_SERVER['INTUNE_TENANT_ID']);
|
unset($_ENV['INTUNE_TENANT_ID'], $_SERVER['INTUNE_TENANT_ID']);
|
||||||
|
|||||||
38
tests/Unit/ODataTypeValidationTest.php
Normal file
38
tests/Unit/ODataTypeValidationTest.php
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use App\Models\BackupItem;
|
||||||
|
|
||||||
|
it('accepts derived deviceConfiguration odata types', function (string $odataType) {
|
||||||
|
$result = BackupItem::validateODataType(['@odata.type' => $odataType], 'deviceConfiguration', 'all');
|
||||||
|
|
||||||
|
expect($result['matches'])->toBeTrue();
|
||||||
|
})->with([
|
||||||
|
'#microsoft.graph.windows10GeneralConfiguration',
|
||||||
|
'#microsoft.graph.windowsHealthMonitoringConfiguration',
|
||||||
|
]);
|
||||||
|
|
||||||
|
it('accepts derived deviceCompliancePolicy odata types', function (string $odataType) {
|
||||||
|
$result = BackupItem::validateODataType(['@odata.type' => $odataType], 'deviceCompliancePolicy', 'all');
|
||||||
|
|
||||||
|
expect($result['matches'])->toBeTrue();
|
||||||
|
})->with([
|
||||||
|
'#microsoft.graph.androidDeviceOwnerCompliancePolicy',
|
||||||
|
'#microsoft.graph.androidWorkProfileCompliancePolicy',
|
||||||
|
]);
|
||||||
|
|
||||||
|
it('accepts derived appProtectionPolicy odata types', function (string $odataType) {
|
||||||
|
$result = BackupItem::validateODataType(['@odata.type' => $odataType], 'appProtectionPolicy', 'mobile');
|
||||||
|
|
||||||
|
expect($result['matches'])->toBeTrue();
|
||||||
|
})->with([
|
||||||
|
'#microsoft.graph.windowsManagedAppProtection',
|
||||||
|
]);
|
||||||
|
|
||||||
|
it('accepts derived enrollmentRestriction odata types', function (string $odataType) {
|
||||||
|
$result = BackupItem::validateODataType(['@odata.type' => $odataType], 'enrollmentRestriction', 'all');
|
||||||
|
|
||||||
|
expect($result['matches'])->toBeTrue();
|
||||||
|
})->with([
|
||||||
|
'#microsoft.graph.deviceEnrollmentWindowsHelloForBusinessConfiguration',
|
||||||
|
'#microsoft.graph.windowsRestoreDeviceEnrollmentConfiguration',
|
||||||
|
]);
|
||||||
Loading…
Reference in New Issue
Block a user