@@ -123,9 +123,18 @@ Describe "Test Set-PSResourceRepository" -tags 'CI' {
123123 Register-PSResourceRepository - Name $TestRepoName1 - Uri $tmpDir1Path
124124 Register-PSResourceRepository - Name $TestRepoName2 - Uri $tmpDir2Path
125125
126- $hashtable1 = @ {Name = $TestRepoName1 ; Uri = $tmpDir3Path }
127- $hashtable2 = @ {Name = $TestRepoName2 ; Priority = 25 }
128- $incorrectHashTable = @ {Name = $Name ; Trusted = $True }
126+ $hashtable1 = @ {
127+ Name = $TestRepoName1
128+ Uri = $tmpDir3Path
129+ }
130+ $hashtable2 = @ {
131+ Name = $TestRepoName2
132+ Priority = 25
133+ }
134+ $incorrectHashTable = @ {
135+ Name = $Name
136+ Trusted = $True
137+ }
129138 $arrayOfHashtables = $hashtable1 , $incorrectHashTable , $hashtable2
130139
131140 Set-PSResourceRepository - Repository $arrayOfHashtables - ErrorVariable err - ErrorAction SilentlyContinue
@@ -148,10 +157,25 @@ Describe "Test Set-PSResourceRepository" -tags 'CI' {
148157 Register-PSResourceRepository - Name $TestRepoName3 - Uri $tmpDir3Path
149158 Register-PSResourceRepository - PSGallery
150159
151- $hashtable1 = @ {Name = $TestRepoName1 ; Uri = $tmpDir2Path };
152- $hashtable2 = @ {Name = $TestRepoName2 ; Priority = 25 };
153- $hashtable3 = @ {Name = $TestRepoName3 ; CredentialInfo = [PSCustomObject ] @ { VaultName = " testvault" ; SecretName = $randomSecret } };
154- $hashtable4 = @ {Name = $PSGalleryName ; Trusted = $True };
160+ $hashtable1 = @ {
161+ Name = $TestRepoName1
162+ Uri = $tmpDir2Path
163+ }
164+ $hashtable2 = @ {
165+ Name = $TestRepoName2
166+ Priority = 25
167+ }
168+ $hashtable3 = @ {
169+ Name = $TestRepoName3
170+ CredentialInfo = [PSCustomObject ] @ {
171+ VaultName = " testvault"
172+ SecretName = $randomSecret
173+ }
174+ }
175+ $hashtable4 = @ {
176+ Name = $PSGalleryName
177+ Trusted = $True
178+ }
155179 $arrayOfHashtables = $hashtable1 , $hashtable2 , $hashtable3 , $hashtable4
156180
157181 Set-PSResourceRepository - Repository $arrayOfHashtables
@@ -204,8 +228,14 @@ Describe "Test Set-PSResourceRepository" -tags 'CI' {
204228
205229 Register-PSResourceRepository - Name $TestRepoName1 - Uri $tmpDir1Path
206230
207- $hashtable1 = @ {Name = $PSGalleryName ; Uri = $tmpDir1Path }
208- $hashtable2 = @ {Name = $TestRepoName1 ; Priority = 25 }
231+ $hashtable1 = @ {
232+ Name = $PSGalleryName
233+ Uri = $tmpDir1Path
234+ }
235+ $hashtable2 = @ {
236+ Name = $TestRepoName1
237+ Priority = 25
238+ }
209239 $arrayOfHashtables = $hashtable1 , $hashtable2
210240
211241 Set-PSResourceRepository - Repository $arrayOfHashtables - ErrorVariable err - ErrorAction SilentlyContinue
@@ -234,8 +264,14 @@ Describe "Test Set-PSResourceRepository" -tags 'CI' {
234264
235265 Register-PSResourceRepository - Name $TestRepoName1 - Uri $tmpDir1Path
236266
237- $hashtable1 = @ {Name = $PSGalleryName ; CredentialInfo = $credentialInfo1 }
238- $hashtable2 = @ {Name = $TestRepoName1 ; Priority = 25 }
267+ $hashtable1 = @ {
268+ Name = $PSGalleryName
269+ CredentialInfo = $credentialInfo1
270+ }
271+ $hashtable2 = @ {
272+ Name = $TestRepoName1
273+ Priority = 25
274+ }
239275 $arrayOfHashtables = $hashtable1 , $hashtable2
240276
241277 Set-PSResourceRepository - Repository $arrayOfHashtables - ErrorVariable err - ErrorAction SilentlyContinue
0 commit comments