From 8f6d0464878faa0c4a77959dfd7309a0631fa00d Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Tue, 13 Feb 2024 20:03:08 +0100 Subject: [PATCH] Fix localization --- azure-pipelines.yml | 7 ------- source/Classes/020.BootstrapPSResourceGet.ps1 | 4 ++-- .../DSC_BootstrapPSResourceGet.Integration.Tests.ps1 | 2 +- tests/Integration/DSC_BootstrapPSResourceGet.config.ps1 | 2 +- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 064f05a..03d06aa 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -328,13 +328,6 @@ stages: buildType: 'current' artifactName: $(buildArtifactName) targetPath: '$(Build.SourcesDirectory)/$(buildFolderName)' - # - task: PowerShell@2 - # name: configureWinRM - # displayName: 'Configure WinRM' - # inputs: - # targetType: 'inline' - # script: 'winrm quickconfig -quiet' - # pwsh: false - task: PowerShell@2 name: test displayName: 'Run Integration Test' diff --git a/source/Classes/020.BootstrapPSResourceGet.ps1 b/source/Classes/020.BootstrapPSResourceGet.ps1 index 8c0b0c0..d131ee0 100644 --- a/source/Classes/020.BootstrapPSResourceGet.ps1 +++ b/source/Classes/020.BootstrapPSResourceGet.ps1 @@ -84,14 +84,14 @@ class BootstrapPSResourceGet : ResourceBase [DscProperty()] [ValidateSet('CurrentUser', 'AllUsers')] [System.String] - $ModuleScope + $Scope # The Version is evaluated if exist in AssertProperties(). [DscProperty()] [System.String] $Version - BootstrapPSResourceGet () : base () + BootstrapPSResourceGet () : base ($PSScriptRoot) { # These properties will not be enforced. $this.ExcludeDscProperties = @( diff --git a/tests/Integration/DSC_BootstrapPSResourceGet.Integration.Tests.ps1 b/tests/Integration/DSC_BootstrapPSResourceGet.Integration.Tests.ps1 index dd755d9..c8128aa 100644 --- a/tests/Integration/DSC_BootstrapPSResourceGet.Integration.Tests.ps1 +++ b/tests/Integration/DSC_BootstrapPSResourceGet.Integration.Tests.ps1 @@ -102,7 +102,7 @@ Describe "$($script:dscResourceName)_Integration" -Tag @('DSC') { } #$resourceCurrentState.IsSingleInstance | Should -Be 'Yes' - $resourceCurrentState.ModuleScope | Should -Be 'CurrentUser' + $resourceCurrentState.Scope | Should -Be 'CurrentUser' } It 'Should return ''True'' when Test-DscConfiguration is run' { diff --git a/tests/Integration/DSC_BootstrapPSResourceGet.config.ps1 b/tests/Integration/DSC_BootstrapPSResourceGet.config.ps1 index f972c67..12cc16a 100644 --- a/tests/Integration/DSC_BootstrapPSResourceGet.config.ps1 +++ b/tests/Integration/DSC_BootstrapPSResourceGet.config.ps1 @@ -36,7 +36,7 @@ Configuration DSC_BootstrapPSResourceGet_CurrentUser_Config PSResourceGetBootstrap 'Integration_Test' { IsSingleInstance = 'Yes' - ModuleScope = 'CurrentUser' + Scope = 'CurrentUser' } } }