From c4b1cdb2f695277d9731fd00accab0d302cb2d61 Mon Sep 17 00:00:00 2001 From: Stijn Moreels <9039753+stijnmoreels@users.noreply.github.com> Date: Mon, 7 Mar 2022 13:48:04 +0100 Subject: [PATCH] test: generate integration account certificate key name (#277) --- .../Arcus.Scripting.IntegrationAccount.tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Arcus.Scripting.Tests.Integration/Arcus.Scripting.IntegrationAccount.tests.ps1 b/src/Arcus.Scripting.Tests.Integration/Arcus.Scripting.IntegrationAccount.tests.ps1 index 611cd033..1bae5300 100644 --- a/src/Arcus.Scripting.Tests.Integration/Arcus.Scripting.IntegrationAccount.tests.ps1 +++ b/src/Arcus.Scripting.Tests.Integration/Arcus.Scripting.IntegrationAccount.tests.ps1 @@ -704,7 +704,7 @@ InModuleScope Arcus.Scripting.IntegrationAccount { $expectedCertificateName = $certificate.BaseName $executionDateTime = (Get-Date).ToUniversalTime() $subscriptionId = $config.Arcus.SubscriptionId - $keyName = "PrivateCertificateKey" + $keyName = "PrivateCertificateKey-$([System.Guid]::NewGuid())" $keyVaultName = $config.Arcus.KeyVault.VaultName $keyVaultId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.KeyVault/vaults/$keyVaultName" @@ -737,7 +737,7 @@ InModuleScope Arcus.Scripting.IntegrationAccount { $expectedCertificateName = $artifactsPrefix + $certificate.BaseName $executionDateTime = (Get-Date).ToUniversalTime() $subscriptionId = $config.Arcus.SubscriptionId - $keyName = 'PrivateCertificateKeyPrefix' + $keyName = "PrivateCertificateKeyPrefix-$([System.Guid]::NewGuid())" $keyVaultName = $config.Arcus.KeyVault.VaultName $keyVaultId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.KeyVault/vaults/$keyVaultName" @@ -1094,4 +1094,4 @@ InModuleScope Arcus.Scripting.IntegrationAccount { } } } -} \ No newline at end of file +}