Testing/Unit/PowerShell/Support/ServicePrincipalSnippets/MockPowerPlatformUnneeded.json

{
    "description": "Service principal with Power Platform registered but not needed",
    "servicePrincipal": {
        "id": "sp-ppunneeded-1",
        "appId": "00000000-0000-0000-0000-000000000005",
        "displayName": "ScubaGear Test SP - PP Unneeded"
    },
    "application": {
        "id": "app-ppunneeded-1",
        "appId": "00000000-0000-0000-0000-000000000005",
        "requiredResourceAccess": []
    },
    "appRoleAssignments": [
        {
            "id": "assignment-1",
            "resourceId": "resource-sp-graph",
            "appRoleId": "7ab1d382-f21e-4acd-a863-ba3e13f7da61"
        },
        {
            "id": "assignment-2",
            "resourceId": "resource-sp-graph",
            "appRoleId": "df021288-bdef-4463-88db-98f22de89214"
        }
    ],
    "oauth2Grants": [],
    "permissionComparison": {
        "missingPermissions": [],
        "extraPermissions": [],
        "hasMissingPermissions": false,
        "hasExtraPermissions": false
    },
    "roleComparison": {
        "roleName": "Global Reader",
        "roleID": "role-123",
        "missing": false
    },
    "powerPlatformRegistered": true,
    "productNames": ["aad", "exo", "defender", "sharepoint", "teams"],
    "expectedResult": {
        "hasFixPermissionIssues": true,
        "statusPattern": "Action needed.*Power Platform registered but not required"
    }
}