diff --git a/Testing/workflow/Build-SignRelease.Tests.ps1 b/Testing/workflow/Build-SignRelease.Tests.ps1 index 27a7952a4..437e7cf6f 100644 --- a/Testing/workflow/Build-SignRelease.Tests.ps1 +++ b/Testing/workflow/Build-SignRelease.Tests.ps1 @@ -5,18 +5,18 @@ # The purpose of this test to ensure that the function properly signs the module. Describe "Bad Inputs Check" { - It "Bad key vault URL should be handled gracefully" { + It "The root folder name should exist" { $ScriptPath = Join-Path -Path $PSScriptRoot -ChildPath '../../utils/workflow/Build-SignRelease.ps1' -Resolve # Source the function . $ScriptPath - $RootFolderPath = Join-Path -Path $PSScriptRoot -Childpath '../..' -Resolve - Write-Warning "Root Folder Path: $RootFolderPath" + # $RootFolderPath = Join-Path -Path $PSScriptRoot -Childpath '../..' -Resolve + # Write-Warning "Root Folder Path: $RootFolderPath" # Copy to pester $TestDrive and put in repo folder # pass that repo folder to signature below New-ModuleSignature ` -AzureKeyVaultUrl "https://www.cisa.gov" ` -CertificateName "certificate name" ` -ReleaseVersion "0.0.1" ` - -RootFolderName $RootFolderPath + -RootFolderName "nonexistantfoldername" | Should -Throw } }