diff --git a/.ci/releaseBuild.yml b/.ci/releaseBuild.yml index 5ef22dc..a0238b0 100644 --- a/.ci/releaseBuild.yml +++ b/.ci/releaseBuild.yml @@ -98,6 +98,8 @@ stages: - job: Compliance_Job pool: name: PowerShell1ES # Package ES CodeHub Lab E + demands: + - ImageOverride -equals PSMMS2019-Secure steps: - checkout: self - checkout: ComplianceRepo diff --git a/Microsoft.PowerShell.Crescendo/test/CrescendoClasses.Tests.ps1 b/Microsoft.PowerShell.Crescendo/test/CrescendoClasses.Tests.ps1 index 55acf7e..3452884 100644 --- a/Microsoft.PowerShell.Crescendo/test/CrescendoClasses.Tests.ps1 +++ b/Microsoft.PowerShell.Crescendo/test/CrescendoClasses.Tests.ps1 @@ -231,9 +231,11 @@ Describe "The class tests" { It "Exports a configuration properly" { $ci = New-CrescendoCommand -Verb Get -Noun Thing -OriginalName doesnotexist Export-CrescendoCommand -command $ci -TargetDirectory ${TESTDRIVE} - $expected = (Get-Content "${PSScriptRoot}/assets/ExportCrescendoCommand1.json") -join [System.Environment]::NewLine - $observed = (Get-Content "${TESTDRIVE}/Get-Thing.crescendo.json") -join [System.Environment]::NewLine - $observed | Should -Be $expected + $expectedObject = Get-Content "${PSScriptRoot}/assets/ExportCrescendoCommand1.json" | ConvertFrom-Json + $observedObject = Get-Content "${TESTDRIVE}/Get-Thing.crescendo.json" | ConvertFrom-Json + $expectedObject.'$schema' | Should -Be $observedObject.'$schema' + $expectedObject.Commands[0].Verb | Should -Be $observedObject.Commands[0].Verb + $expectedObject.Commands[0].Noun | Should -Be $observedObject.Commands[0].Noun } }