From 20ef232e886ac09fd7e9d6f43ade7deb46b72bbd Mon Sep 17 00:00:00 2001 From: Cory Knox Date: Wed, 9 Oct 2024 09:43:22 -0700 Subject: [PATCH] (maint) Update Test Packages to match internal This commit updates the test packages on the repository to match the packages hosted on the internal repository. --- tests/packages/add-path/add-path.nuspec | 71 ++----------------- .../0.9.9/failingdependency.nuspec | 16 +++++ .../0.9.9/tools/chocolateyinstall.ps1 | 6 ++ .../1.0.0/failingdependency.nuspec | 16 +++++ .../{ => 1.0.0}/tools/chocolateyinstall.ps1 | 0 .../failingdependency.nuspec | 16 ----- 6 files changed, 43 insertions(+), 82 deletions(-) create mode 100644 tests/packages/failingdependency/0.9.9/failingdependency.nuspec create mode 100644 tests/packages/failingdependency/0.9.9/tools/chocolateyinstall.ps1 create mode 100644 tests/packages/failingdependency/1.0.0/failingdependency.nuspec rename tests/packages/failingdependency/{ => 1.0.0}/tools/chocolateyinstall.ps1 (100%) delete mode 100644 tests/packages/failingdependency/failingdependency.nuspec diff --git a/tests/packages/add-path/add-path.nuspec b/tests/packages/add-path/add-path.nuspec index 8021a8069d..6a036c1822 100644 --- a/tests/packages/add-path/add-path.nuspec +++ b/tests/packages/add-path/add-path.nuspec @@ -1,77 +1,16 @@ - - - - - - - - - - - - - - - add-path - - - 1.0.0 - - - - - - - add-path (Install) - __REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__ - - https://_Software_Location_REMOVE_OR_FILL_OUT_ - - - - - - - - - - - add-path SPACE_SEPARATED - __REPLACE__ - __REPLACE__MarkDown_Okay - - - - - - - - - - + Chocolatey Software + https://chocolatey.org + add-path + Package used for testing the add-path function + Package used for testing the add-path function - diff --git a/tests/packages/failingdependency/0.9.9/failingdependency.nuspec b/tests/packages/failingdependency/0.9.9/failingdependency.nuspec new file mode 100644 index 0000000000..2e38821882 --- /dev/null +++ b/tests/packages/failingdependency/0.9.9/failingdependency.nuspec @@ -0,0 +1,16 @@ + + + + failingdependency + 0.9.9 + dependencyfailure (Install) + Chocolatey Software + https://chocolatey.org + dependencyfailure admin + Package that fails to install by setting `ChocolateyExitCode` to `15608`. Used as part of dependency tree. + Package that fails to install by setting `ChocolateyExitCode` to `15608`. Used as part of dependency tree. + + + + + diff --git a/tests/packages/failingdependency/0.9.9/tools/chocolateyinstall.ps1 b/tests/packages/failingdependency/0.9.9/tools/chocolateyinstall.ps1 new file mode 100644 index 0000000000..266daeb5e1 --- /dev/null +++ b/tests/packages/failingdependency/0.9.9/tools/chocolateyinstall.ps1 @@ -0,0 +1,6 @@ +"Creating Runtime File" +$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" +"Test File" | Out-File "$toolsDir\test-file.txt" + +Write-Error "This should fail!" +$env:ChocolateyExitCode = '15608' diff --git a/tests/packages/failingdependency/1.0.0/failingdependency.nuspec b/tests/packages/failingdependency/1.0.0/failingdependency.nuspec new file mode 100644 index 0000000000..fef5a704f0 --- /dev/null +++ b/tests/packages/failingdependency/1.0.0/failingdependency.nuspec @@ -0,0 +1,16 @@ + + + + failingdependency + 1.0.0 + dependencyfailure (Install) + Chocolatey Software + https://chocolatey.org + dependencyfailure admin + Package that fails to install by setting `ChocolateyExitCode` to `15608`. Used as part of dependency tree. + Package that fails to install by setting `ChocolateyExitCode` to `15608`. Used as part of dependency tree. + + + + + diff --git a/tests/packages/failingdependency/tools/chocolateyinstall.ps1 b/tests/packages/failingdependency/1.0.0/tools/chocolateyinstall.ps1 similarity index 100% rename from tests/packages/failingdependency/tools/chocolateyinstall.ps1 rename to tests/packages/failingdependency/1.0.0/tools/chocolateyinstall.ps1 diff --git a/tests/packages/failingdependency/failingdependency.nuspec b/tests/packages/failingdependency/failingdependency.nuspec deleted file mode 100644 index c8179b5e80..0000000000 --- a/tests/packages/failingdependency/failingdependency.nuspec +++ /dev/null @@ -1,16 +0,0 @@ - - - - failingdependency - 1.0.0 - dependencyfailure (Install) - __REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__ - https://_Software_Location_REMOVE_OR_FILL_OUT_ - dependencyfailure admin SPACE_SEPARATED - Package that fails to install. Used as part of dependency tree. - Package that fails to install. Used as part of dependency tree. - - - - -