From 33784e26c35483a3e7159210c3fabac5a67e4f94 Mon Sep 17 00:00:00 2001 From: Jorge Esteban Quilcate Otoya Date: Fri, 10 May 2024 13:29:28 +0300 Subject: [PATCH] fix: extend possible root causes message when running on macos Seems the current possible messages need to be extended when the integration tests for proxy is running on a mac. The exception is slightly different. Some similarity with other stacks trying to handle similar errors: [1] [1]: https://github.com/Shopify/semian/blob/ebe30df94cebc74d28e020206d6a2fa2019aeed7/lib/semian/redis.rb#L166 --- .../storage/azure/AzureBlobStorageSocks5Test.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/storage/azure/src/integration-test/java/io/aiven/kafka/tieredstorage/storage/azure/AzureBlobStorageSocks5Test.java b/storage/azure/src/integration-test/java/io/aiven/kafka/tieredstorage/storage/azure/AzureBlobStorageSocks5Test.java index fe17bbaa7..27aa034a9 100644 --- a/storage/azure/src/integration-test/java/io/aiven/kafka/tieredstorage/storage/azure/AzureBlobStorageSocks5Test.java +++ b/storage/azure/src/integration-test/java/io/aiven/kafka/tieredstorage/storage/azure/AzureBlobStorageSocks5Test.java @@ -118,10 +118,12 @@ protected Map storageConfigForNoProxy() { @Override protected Iterable possibleRootCauseMessagesWhenNoProxy() { - // Either - or, it seems it depends on the JVM version. + // Either - or, it seems it depends on the JVM version or OS. final String possibleMessage1 = String.format( "%s: Temporary failure in name resolution", azuriteContainerNetworkAlias); final String possibleMessage2 = String.format("%s: Name or service not known", azuriteContainerNetworkAlias); - return List.of(possibleMessage1, possibleMessage2); + final String possibleMessage3 = String.format( + "%s: nodename nor servname provided, or not known", azuriteContainerNetworkAlias); + return List.of(possibleMessage1, possibleMessage2, possibleMessage3); } }