forked from majkinetor/au
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pester tests for streams on Update-AUPackages
- Loading branch information
1 parent
be9d2b9
commit e60afae
Showing
5 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tests/test_package_with_streams/test_package_with_streams.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"1.2": "1.2.3", | ||
"1.3": "1.3.1", | ||
"1.4": "1.4-beta1" | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/test_package_with_streams/test_package_with_streams.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>test_package_with_streams</id> | ||
<version>1.2.3</version> | ||
<title>Test Package with Streams</title> | ||
<authors>Miodrag Milić</authors> | ||
<owners>Miodrag Milić</owners> | ||
<licenseUrl>http://www.gnu.org/copyleft/gpl.html</licenseUrl> | ||
<projectUrl>https://github.com/majkinetor/au</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>This is a test package with streams for Pester</description> | ||
<summary>This is a test package with streams for Pester</summary> | ||
<tags>test streams pester</tags> | ||
<dependencies> | ||
<dependency id="test.install" version="1.0" /> | ||
</dependencies> | ||
<releaseNotes>None</releaseNotes> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
</files> | ||
</package> |
12 changes: 12 additions & 0 deletions
12
tests/test_package_with_streams/tools/chocolateyInstall.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$ErrorActionPreference = 'Stop' | ||
|
||
$packageName = 'test_package_with_streams' | ||
$url32 = gcm choco.exe | % Source | ||
$checksum32 = '' | ||
|
||
$params = @{ | ||
packageName = $packageName | ||
fileFullPath = "$PSScriptRoot\choco.exe" | ||
Url = "file:///$url32" | ||
} | ||
Get-ChocolateyWebFile @params |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function global:au_SearchReplace() { | ||
@{} | ||
} | ||
|
||
function global:au_GetLatest() { | ||
@{ Streams = @{ | ||
'1.4' = @{ Version = '1.4-beta1' } | ||
'1.2' = @{ Version = '1.2.3' } | ||
'1.3' = @{ Version = '1.3.1' } | ||
} } | ||
} | ||
|
||
update |