Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Tschanz committed Jan 17, 2025
1 parent e32e67b commit 17fcfef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
AdditionalProperties = @{
appSupportsOemConfig = $True
'@odata.type' = "#microsoft.graph.androidManagedStoreAppConfiguration"
payloadJson = "{`"test`":`"value`"}"
payloadJson = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("{`"test`":`"value`"}"))
profileApplicability = "default"
permissionActions = @(
@{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,35 +296,6 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
}
}
}

Mock -CommandName Get-MgBetaDeviceManagementConfigurationPolicySetting -MockWith {
return @{
Id = 0
SettingDefinitions = $null
SettingInstance = @{
SettingDefinitionId = 'device_vendor_msft_policy_config_defender_attacksurfacereductionrules'
SettingInstanceTemplateReference = @{
SettingInstanceTemplateId = 'd770fcd1-62cd-4217-9b20-9ee2a12062ff'
}
AdditionalProperties = @{
'@odata.type' = '#microsoft.graph.deviceManagementConfigurationGroupSettingCollectionInstance'
groupSettingCollectionValue = @(@{
children = @(
@{
"@odata.type" = "#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance"
"settingDefinitionId" = "device_vendor_msft_policy_config_defender_attacksurfacereductionrules_useadvancedprotectionagainstransomware"
"choiceSettingValue" = @{
"@odata.type" = "#microsoft.graph.deviceManagementConfigurationChoiceSettingValue"
"value" = "device_vendor_msft_policy_config_defender_attacksurfacereductionrules_useadvancedprotectionagainstransomware_block"
}
}
)
})
}
}
AdditionalProperties = $null
}
}
}

It 'Should Reverse Engineer resource from the Export method' {
Expand Down

0 comments on commit 17fcfef

Please sign in to comment.