From 7b4754dacb9d4f0f287f84970abedbc44fc765ad Mon Sep 17 00:00:00 2001 From: sullis Date: Sat, 30 Mar 2024 07:25:06 -0700 Subject: [PATCH] add assertion for BoringSSL --- .../src/test/java/reactor/netty/tcp/SslProviderTests.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactor-netty-http/src/test/java/reactor/netty/tcp/SslProviderTests.java b/reactor-netty-http/src/test/java/reactor/netty/tcp/SslProviderTests.java index eb31947674..4f10bcb54b 100644 --- a/reactor-netty-http/src/test/java/reactor/netty/tcp/SslProviderTests.java +++ b/reactor-netty-http/src/test/java/reactor/netty/tcp/SslProviderTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2023 VMware, Inc. or its affiliates, All Rights Reserved. + * Copyright (c) 2018-2024 VMware, Inc. or its affiliates, All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -71,6 +71,12 @@ class SslProviderTests extends BaseHttpTest { private SslContext anotherSslContext; private Http11SslContextSpec clientSslContextBuilder; + @BeforeAll + static void validateOpenSsl() { + assertThat(OpenSsl.isAvailable()).isTrue(); + assertThat(OpenSsl.versionString()).isEqualTo("BoringSSL"); + } + @BeforeAll static void createSelfSignedCertificate() throws Exception { cert = new SelfSignedCertificate("default");