From abd004e910182abe40b45c7e790e6b28d977804d Mon Sep 17 00:00:00 2001 From: Cory Knox Date: Fri, 12 May 2023 09:58:47 -0700 Subject: [PATCH] (#1174) Add non-normalized packages for tests Add packages with a non-normalized version number. These are the packed nupkgs as we can't `choco pack` them with v2.x. Updated the `Invoke-Tests.ps1` file in order to also copy these files to the test packages directory. --- Invoke-Tests.ps1 | 5 +++-- .../nonnormalizedversions.004.0.01.0.nupkg | Bin 0 -> 3002 bytes .../nonnormalizedversions.01.0.0.0.nupkg | Bin 0 -> 2997 bytes 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg create mode 100644 tests/packages/nonnormalizedversions/nonnormalizedversions.01.0.0.0.nupkg diff --git a/Invoke-Tests.ps1 b/Invoke-Tests.ps1 index 9b5432a3e3..ff077219db 100644 --- a/Invoke-Tests.ps1 +++ b/Invoke-Tests.ps1 @@ -1,4 +1,4 @@ -#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' } +#Requires -Module @{ ModuleName = 'pester'; ModuleVersion = '5.3.1' } #Requires -RunAsAdministrator <# .SYNOPSIS @@ -50,7 +50,8 @@ else { if (-not (Test-Path "$TestPath/packages") -or -not $SkipPackaging) { $null = New-Item -Path "$TestPath/packages" -ItemType Directory -Force # Get and pack packages - $nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse | Where-Object Name -Like '*.nuspec' + $nuspecs = Get-ChildItem -Path $PSScriptRoot/src/chocolatey.tests.integration, $PSScriptRoot/tests/packages -Recurse -Include *.nuspec + Get-ChildItem -Path $PSScriptRoot/tests/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$TestPath/packages" foreach ($file in $nuspecs) { Write-Host "Packaging $file" diff --git a/tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg b/tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg new file mode 100644 index 0000000000000000000000000000000000000000..17a790d21e57af2204b6e29385e2d101cb6e595a GIT binary patch literal 3002 zcmb_eYfuwc6b|?Tt&g!59ihXT+DcopyCES&2tf=%5F#N2R9cOj-5au!?54XL0>bzx z)0Z;EM{%r3tByKa@P|%?7L|(AwA0e*!$+soYO&K+v`!W5OX`fhyMz!ZFt%edyED6c z&bi+?_uTJ%=A3ckC(Fd&%&exO^B?`f_Jzr0;x$DUBeQY9#bc;=NA}N=#qFIXnGV0* zI{ASvt=#QG$^ggHER!l%qPQFZ49QY7Q<5t83J!%OgULz?IP? z;79er5^*hw1C>&(Bp0eljmDmokeHyvNt~oqc8vz09^Orno#-KMX5D* zwUi$=WC!(T*gmsl;j##+ebT;{r(A@sb99^xHcyOftRjxpPYng8+Vl8~(@*roHtkvT zqIS#Hty}90t(N>Fh3{xU?blto(FXgZOP$U4*2Ua-BkN@4RV{nv)LqA)*P7?mI-4%6 zjk@g57T#`K?@ykQcJpFfA&q^ygLoCHzObEt&8faQtADz zf9~m(`IFb^quZ-Gcpnf28c*75{ioWM%d0{S%k`d?Knf z?3LN_Mcb;ab-u2{eXnnv^bCD+BAU@!x^vU*+-cWaYRvwcWsTFPcDA|OpMNT+myd4m zdAZAJ)9$8a=3ir*Nxx}@(?`-4B`AkFR`32EeYQD^WO~1`9^y2Zl zIfpjL#8w$(8jrk--3{AByz*hIJoF|WtG^zcuf$Vl4j#IG!b+ydAj5dPoJ(RTio}2m zxB(;Zm=aZD@}R8%IQJmQg*r%If|lhx9SrO9`B0xq3JfVviLEf@7D()N?o0g+Y_4Mtc)tSlfXR7xf^0Wl$(f;&q)Xu#=5BsIw?#7Gwy8G0O7qd1Dgd8oq% z-sws~g^%SZe&kq4fmy74u)aDhXfHw$Xu$6RjD9X1S$P8w^22TYnL zgCz0YySsmV3C;1dXE8dm@o-~#H6Ca9SsXt$OiXxsKgwuBtryezvF1)BGfT0TsEfE u7!G0R>8LR4x&55~Y)$VB0v=l!ipbwD;rA z(Qi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