Skip to content

Commit

Permalink
Update messages in some pester tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCakeIsNaOH committed Aug 3, 2022
1 parent dd845b7 commit 0d9aea4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/chocolatey-tests/choco-install.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ Describe "choco install" -Tag Chocolatey, InstallCommand {

It "should identify a circular dependency" {
$result1.Lines | Should -Contain "Circular dependency detected 'circulardependency1 0.0.1 => circulardependency2 0.0.1 => circulardependency1 0.0.1'."
$result2.Lines | Should -Contain "Circular dependency detected 'circulardependency2 0.0.1 => circulardependency1 0.0.1 => circulardependency2 0.0.1'."
$result2.Lines | Should -Contain "Circular dependency detected 'circulardependency1 0.0.1 => circulardependency2 0.0.1 => circulardependency1 0.0.1'."
}
}
}
6 changes: 3 additions & 3 deletions tests/chocolatey-tests/choco-pack.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ $invalidFailures = @(
$emptyFailures | ForEach-Object {
@{id = $_; message = "Invalid URI: The format of the URI could not be determined." }
}
@{id = "version"; message = "'INVALID' is not a valid version string." }
@{id = "version"; message = "An error occured while trying to parse the value 'INVALID' of property 'version' in the manifest file." }
@{id = "no-content"; message = "Cannot create a package that has no dependencies nor content." }
@{id = "id"; message = "The package ID 'invalid id' contains invalid characters. Examples of valid package IDs include 'MyPackage' and 'MyPackage.Sample'." }
@{id = "requirelicenseacceptance"; message = "Enabling license acceptance requires a license url." }
@{id = "requirelicenseacceptance"; message = "Enabling license acceptance requires a license or a licenseUrl to be specified. The licenseUrl will be deprecated, consider using the license metadata." }
)

Describe "choco pack" -Tag Chocolatey, PackCommand {
Expand Down Expand Up @@ -164,7 +164,7 @@ Describe "choco pack" -Tag Chocolatey, PackCommand {
}

It "Displays serialize error" {
$Output.Lines | Should -Contain "The 'http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd:requireLicenseAcceptance' element is invalid - The value '' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:boolean' - The string '' is not a valid Boolean value."
$Output.Lines | Should -Contain "The 'http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd:requireLicenseAcceptance' element is invalid - The value '' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:boolean' - The string '' is not a valid Boolean value. This validation error occurred in a 'requireLicenseAcceptance' element."
}

It "Does not create the nuget package" {
Expand Down

0 comments on commit 0d9aea4

Please sign in to comment.