This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from devblackops/script-parameters
Add ability to override Pester script parameters and specify version of module to execute
- Loading branch information
Showing
8 changed files
with
285 additions
and
59 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
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
-1.61 KB
(81%)
Modules/OperationValidation/Test/OperationValidation.Tests.ps1
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
Modules/VersionedModule/1.0.0/Diagnostics/Simple/PSGallery.Simple.Tests.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,18 @@ | ||
param( | ||
[string]$WebsiteUrl = 'https://www.powershellgallery.com', | ||
[string]$StatusCode = 'OK' | ||
) | ||
|
||
|
||
Describe 'Simple Validation of PSGallery' { | ||
It 'The PowerShell Gallery should be responsive' { | ||
$request = [System.Net.WebRequest]::Create($WebsiteUrl) | ||
$response = $Request.GetResponse() | ||
$response.StatusCode | Should Be $StatusCode | ||
} | ||
|
||
it 'Has correct test parameters' { | ||
$WebsiteUrl | Should Be 'https://www.powershellgallery.com' | ||
$StatusCode | Should Be 'OK' | ||
} | ||
} |
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
Modules/VersionedModule/2.0.0/Diagnostics/Simple/PSGallery.Simple.Tests.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,15 @@ | ||
Describe 'Simple Validation of PSGallery' { | ||
It 'The PowerShell Gallery should be responsive' { | ||
$request = [System.Net.WebRequest]::Create('https://www.powershellgallery.com') | ||
$response = $Request.GetResponse() | ||
$response.StatusCode | Should be OK | ||
} | ||
} | ||
|
||
Describe 'Simple Validation of Microsoft' { | ||
It 'Microsoft should be responsive' { | ||
$request = [System.Net.WebRequest]::Create('https://www.microsoft.com') | ||
$response = $Request.GetResponse() | ||
$response.StatusCode | Should be OK | ||
} | ||
} |
Binary file not shown.