@@ -146,15 +146,15 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
146146 $actual = Get-ModuleFastPlan $Spec
147147 $actual | Should - HaveCount 1
148148 $ModuleName | Should - Be $actual.Name
149- $actual.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should -Not - BeNullOrEmpty
149+ $actual.ModuleVersion | Should -Not - BeNullOrEmpty
150150 if ($Check ) { . $Check }
151151 } - TestCases $moduleSpecTestCases
152152
153153 It ' Gets Module with Pipeline: <Test>' {
154154 $actual = $Spec | Get-ModuleFastPlan
155155 $actual | Should - HaveCount 1
156156 $ModuleName | Should - Be $actual.Name
157- $actual.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should -Not - BeNullOrEmpty
157+ $actual.ModuleVersion | Should -Not - BeNullOrEmpty
158158 if ($Check ) { . $Check }
159159 } - TestCases $moduleSpecTestCases
160160 }
@@ -288,15 +288,15 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
288288 $actual = Get-ModuleFastPlan $Spec
289289 $actual | Should - HaveCount 1
290290 $ModuleName | Should - Be $actual.Name
291- $actual.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should -Not - BeNullOrEmpty
291+ $actual.ModuleVersion | Should -Not - BeNullOrEmpty
292292 if ($Check ) { . $Check }
293293 } - TestCases $stringTestCases
294294
295295 It ' Gets Module with String Pipeline: <Spec>' {
296296 $actual = $Spec | Get-ModuleFastPlan
297297 $actual | Should - HaveCount 1
298298 $ModuleName | Should - Be $actual.Name
299- $actual.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should -Not - BeNullOrEmpty
299+ $actual.ModuleVersion | Should -Not - BeNullOrEmpty
300300 if ($Check ) { . $Check }
301301 } - TestCases $stringTestCases
302302 }
@@ -307,31 +307,31 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
307307 $actual | Should - HaveCount 3
308308 $actual | ForEach-Object {
309309 $PSItem.Name | Should - BeIn ' Az.Accounts' , ' Az.Compute' , ' ImportExcel'
310- $PSItem.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should - BeGreaterThan ' 1.0'
310+ $PSItem.ModuleVersion | Should - BeGreaterThan ' 1.0'
311311 }
312312 }
313313 It ' Strings as Pipeline' {
314314 $actual = ' Az.Accounts' , ' Az.Compute' , ' ImportExcel' | Get-ModuleFastPlan
315315 $actual | Should - HaveCount 3
316316 $actual | ForEach-Object {
317317 $PSItem.Name | Should - BeIn ' Az.Accounts' , ' Az.Compute' , ' ImportExcel'
318- $PSItem.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should - BeGreaterThan ' 1.0'
318+ $PSItem.ModuleVersion | Should - BeGreaterThan ' 1.0'
319319 }
320320 }
321321 It ' ModuleSpecs as Parameter' {
322322 $actual = Get-ModuleFastPlan ' Az.Accounts' , ' @{ModuleName = "Az.Compute"; ModuleVersion = "1.0.0" }' , ([ModuleSpecification ]::new(' ImportExcel' ))
323323 $actual | Should - HaveCount 3
324324 $actual | ForEach-Object {
325325 $PSItem.Name | Should - BeIn ' Az.Accounts' , ' Az.Compute' , ' ImportExcel'
326- $PSItem.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should - BeGreaterThan ' 1.0'
326+ $PSItem.ModuleVersion | Should - BeGreaterThan ' 1.0'
327327 }
328328 }
329329 It ' ModuleSpecs as Pipeline' {
330330 $actual = ' Az.Accounts>1' , ' @{ModuleName = "Az.Compute"; ModuleVersion = "1.0.0" }' , ([ModuleSpecification ]::new(' ImportExcel' )) | Get-ModuleFastPlan
331331 $actual | Should - HaveCount 3
332332 $actual | ForEach-Object {
333333 $PSItem.Name | Should - BeIn ' Az.Accounts' , ' Az.Compute' , ' ImportExcel'
334- $PSItem.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should - BeGreaterThan ' 1.0'
334+ $PSItem.ModuleVersion | Should - BeGreaterThan ' 1.0'
335335 }
336336 }
337337
@@ -345,7 +345,7 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
345345 }
346346 It ' -Prerelease overrides even if prerelease is not specified' {
347347 # The prerelease flag on az.accounts should not trigger prerelease on PrereleaseTest
348- $actual = ' Az.Accounts!' , ' PrereleaseTest' | Get-ModuleFastPlan - PreRelease
348+ $actual = ' Az.Accounts!' , ' PrereleaseTest' | Get-ModuleFastPlan - Prerelease
349349 $actual | Should - HaveCount 2
350350 $actual | Where-Object Name -EQ ' PrereleaseTest' | ForEach-Object {
351351 $PSItem.ModuleVersion | Should - Be ' 0.0.2-prerelease'
@@ -362,13 +362,13 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
362362 Get-ModuleFastPlan ' Az.Compute' | Should - HaveCount 2
363363 }
364364 It ' Gets all dependencies for a Module with lots of dependencies (Az)' {
365- Get-ModuleFastPlan @ {ModuleName = ' Az' ; ModuleVersion = ' 11.0 .0' } | Should - HaveCount 86
365+ Get-ModuleFastPlan @ {ModuleName = ' Az' ; RequiredVersion = ' 11.1 .0' } | Should - HaveCount 86
366366 }
367367 It ' Gets Module with 4 section version number and a 4 section version number dependency (VMware.VimAutomation.Common)' {
368368 Get-ModuleFastPlan ' VMware.VimAutomation.Common' | Should - HaveCount 2
369369 }
370370 It ' Gets multiple modules' {
371- Get-ModuleFastPlan @ {ModuleName = ' Az' ; ModuleVersion = ' 11.0' }, @ {ModuleName = ' VMWare.PowerCli' ; ModuleVersion = ' 13.2' }
371+ Get-ModuleFastPlan @ {ModuleName = ' Az' ; RequiredVersion = ' 11.1. 0' }, @ {ModuleName = ' VMWare.PowerCli' ; RequiredVersion = ' 13.2.0.22746353 ' }
372372 | Should - HaveCount 168
373373 }
374374
@@ -384,7 +384,7 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
384384 $actual.ModuleVersion | Should - Be ' 0.0.1'
385385 }
386386 It ' Shows Prerelease Modules if Prerelease is specified' {
387- $actual = Get-ModuleFastPlan ' PrereleaseTest' - PreRelease
387+ $actual = Get-ModuleFastPlan ' PrereleaseTest' - Prerelease
388388 $actual.ModuleVersion | Should - Be ' 0.0.2-prerelease'
389389 }
390390 It ' Detects Prerelease even if Prerelease not specified' {
@@ -759,7 +759,7 @@ Describe 'Install-ModuleFast' -Tag 'E2E' {
759759 $credential = [PSCredential ]::new(' Pester' , (Get-Secret - Name ' ReadOnlyPackagesGithubPAT' ))
760760 $actual = Install-ModuleFast @imfParams - Specification ' PrereleaseTest=0.0.1' - Source ' https://nuget.pkg.github.com/justingrote/index.json' - Credential $credential - Plan
761761 $actual.Name | Should - Be ' PrereleaseTest'
762- $actual.ModuleVersion -as ' NuGet.Versioning.NuGetVersion ' | Should - Be ' 0.0.1'
762+ $actual.ModuleVersion | Should - Be ' 0.0.1'
763763 }
764764 }
765765
0 commit comments