Skip to content

Commit

Permalink
(tests) Exclude Test Kitchen packages from tests
Browse files Browse the repository at this point in the history
Update the Pester tests to exclude the packages that are installed on
Test Kitchen. Without these exclusions the tests fail as it expects
only the packages being tested.
  • Loading branch information
corbob committed Nov 6, 2024
1 parent f5f2da1 commit 53ed5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pester-tests/commands/choco-upgrade.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,8 @@ To upgrade a local, or remote file, you may use:

$Setup = Invoke-Choco install $DependentPackage.Name --version $DependentPackage.Version --confirm
$Setup2 = Invoke-Choco install $BasePackage --version 1.0.0 --confirm
$Output = Invoke-Choco upgrade $PackageName --confirm --except="'chocolatey'" $Argument
# We need to exclude packages that are in Test Kitchen but not the other environments.
$Output = Invoke-Choco upgrade $PackageName --confirm --except="chocolatey,chocolatey.extension,chocolatey-agent,pester,chocolatey-license-business" $Argument
}

It "Exits with expected result (<ExpectedExit>)" {
Expand Down

0 comments on commit 53ed5aa

Please sign in to comment.