diff --git a/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.psm1 b/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.psm1 index a3da095f..7e05639c 100644 --- a/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.psm1 +++ b/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.psm1 @@ -21,7 +21,7 @@ function Get-TargetResource { PublishLocation = $null ScriptPublishLocation = $null InstallationPolicy = $null - PackageManagementAdapter = $null + PackageManagementProvider = $null Trusted = $false Registered = $false } @@ -33,7 +33,7 @@ function Get-TargetResource { $returnValue.PublishLocation = 'https://www.powershellgallery.com/api/v2/package/' $returnValue.ScriptPublishLocation = 'https://www.powershellgallery.com/api/v2/package/' $returnValue.InstallationPolicy = 'Untrusted' - $returnValue.PackageManagementAdapter = 'NuGet' + $returnValue.PackageManagementProvider = 'NuGet' $returnValue.Trusted = $False $returnValue.Registered = $True } @@ -55,10 +55,10 @@ function Test-TargetResource { [Parameter()] [System.String] - $PackageManagementAdapter + $PackageManagementProvider ) - if (($Name -eq "TestPSRepository1") -and ($PackageManagementAdapter -eq 'NuGet')) + if (($Name -eq "TestPSRepository1") -and ($PackageManagementProvider -eq 'NuGet')) { return $true } @@ -78,6 +78,6 @@ function Set-TargetResource { [Parameter()] [System.String] - $PackageManagementAdapter + $PackageManagementProvider ) } diff --git a/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.schema.mof b/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.schema.mof index 5dc745ca..dd1f0aa3 100644 --- a/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.schema.mof +++ b/powershellgroup/Tests/PSTestModule/DscResources/TestPSRepository/TestPSRepository.schema.mof @@ -8,7 +8,7 @@ class TestPSRepository : OMI_BaseResource [Write] String PublishLocation; [Write] String ScriptPublishLocation; [Write, ValueMap{"Trusted","Untrusted"}, Values{"Trusted","Untrusted"}] String InstallationPolicy; - [Write] String PackageManagementAdapter; + [Write] String PackageManagementProvider; [Read] Boolean Trusted; [Read] Boolean Registered; }; diff --git a/powershellgroup/Tests/powershellgroup.resource.tests.ps1 b/powershellgroup/Tests/powershellgroup.resource.tests.ps1 index 38ec3e78..9ce6956a 100644 --- a/powershellgroup/Tests/powershellgroup.resource.tests.ps1 +++ b/powershellgroup/Tests/powershellgroup.resource.tests.ps1 @@ -62,7 +62,7 @@ Describe 'PowerShellGroup resource tests' { It 'Test works on script-based resource' -Skip:(!$IsWindows){ - $r = "{'Name':'TestPSRepository1','PackageManagementAdapter':'NuGet'}" | dsc resource test -r PSTestModule/TestPSRepository + $r = "{'Name':'TestPSRepository1','PackageManagementProvider':'NuGet'}" | dsc resource test -r PSTestModule/TestPSRepository $LASTEXITCODE | Should -Be 0 $res = $r | ConvertFrom-Json $res.actualState.InDesiredState | Should -Be $True