File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/PublishPSResourceTests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -433,8 +433,8 @@ Describe "Test Publish-PSResource" -tags 'CI' {
433433 It " Publish a module to PSGallery using incorrect API key, should throw" {
434434 $version = " 1.0.0"
435435 New-ModuleManifest - Path (Join-Path - Path $script :PublishModuleBase - ChildPath " $script :PublishModuleName .psd1" ) - ModuleVersion $version - Description " $script :PublishModuleName module"
436-
437- Publish-PSResource - Path $script :PublishModuleBase - Repository PSGallery - APIKey " 123456789 " - ErrorAction SilentlyContinue
436+ $APIKey = New-Guid
437+ Publish-PSResource - Path $script :PublishModuleBase - Repository PSGallery - APIKey $APIKey - ErrorAction SilentlyContinue
438438
439439 $Error [0 ].FullyQualifiedErrorId | Should - be " 403Error,Microsoft.PowerShell.PSResourceGet.Cmdlets.PublishPSResource"
440440 }
You can’t perform that action at this time.
0 commit comments