arcus-azure/arcus.scripting

Azure Integration account integration tests fail

Closed this issue · 4 comments

Describe the bug
Currently, we don't have working Azure Integration Account integration tests on master.

To Reproduce
Steps to reproduce the behavior:
Run the integration tests (on any environment).

Expected behavior
All green.

Additional context
Add any other context about the problem here.

  • Current version on master
##[error] [-] Arcus Azure Integration Account integration tests.Uploading Certificates into an Azure Integration Account.Create a single private certificate in an Integration Account succeeds 2.59s (2.58s|1ms)
##[error]  KeyVaultErrorException: Operation returned an invalid status code 'Conflict'
##[error]  at <ScriptBlock>, D:\a\1\s\src\Arcus.Scripting.Tests.Integration\Arcus.Scripting.IntegrationAccount.tests.ps1:711

##[error] [-] Arcus Azure Integration Account integration tests.Uploading Certificates into an Azure Integration Account.Create a single private certificate, with prefix, in an Integration Account succeeds 21.87s (21.87s|2ms)
##[error]  KeyVaultErrorException: Operation returned an invalid status code 'Conflict'
##[error]  at <ScriptBlock>, D:\a\1\s\src\Arcus.Scripting.Tests.Integration\Arcus.Scripting.IntegrationAccount.tests.ps1:760

##[error] [-] Arcus Azure Integration Account integration tests.Uploading Maps into an Azure Integration Account.Create multiple maps located in a folder in an Integration Account succeeds 38.88s (38.88s|3ms)
##[error]  Expected collection @('2022-03-04T08:00:18', '2022-03-04T08:00:17') to contain '2022-03-04T08:00:16', but it was not found.
##[error]  at $actual.CreatedTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss") | Should -BeIn ($actual.ChangedTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss"), $actual.ChangedTime.ToUniversalTime().AddSeconds(-1).ToString("yyyy-MM-ddTHH:mm:ss")), D:\a\1\s\src\Arcus.Scripting.Tests.Integration\Arcus.Scripting.IntegrationAccount.tests.ps1:337
##[error]  at <ScriptBlock>, D:\a\1\s\src\Arcus.Scripting.Tests.Integration\Arcus.Scripting.IntegrationAccount.tests.ps1:337

https://dev.azure.com/codit/Arcus/_build/results?buildId=59774&view=logs&j=567e6187-e8de-5277-0318-ead044892436&t=d0c07584-3e4c-55c5-6fa8-89892ea17d50

@pim-simons , maybe you can shed some light here?

@pim-simons , maybe you can shed some light here?

Will take a look next week, currently enjoying some time off ;-)

@pim-simons , maybe you can shed some light here?

Will take a look next week, currently enjoying some time off ;-)

😅 Of course, was only tagging you here. I think I already found/fixed the problem.

All green again! Fixed in #277