Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A3EF0200CF1 for ; Mon, 28 Aug 2017 11:01:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A267F163A70; Mon, 28 Aug 2017 09:01:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC75B163A69 for ; Mon, 28 Aug 2017 11:01:05 +0200 (CEST) Received: (qmail 84958 invoked by uid 500); 28 Aug 2017 09:01:03 -0000 Mailing-List: contact commits-help@bookkeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bookkeeper-dev@bookkeeper.apache.org Delivered-To: mailing list commits@bookkeeper.apache.org Received: (qmail 84949 invoked by uid 99); 28 Aug 2017 09:01:03 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Aug 2017 09:01:03 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id F4027812C5; Mon, 28 Aug 2017 09:01:01 +0000 (UTC) Date: Mon, 28 Aug 2017 09:01:01 +0000 To: "commits@bookkeeper.apache.org" Subject: [bookkeeper] branch master updated: ISSUE #462: TestTLS failures MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150391086125.9168.15781310216554306388@gitbox.apache.org> From: sijie@apache.org Reply-To: "commits@bookkeeper.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: bookkeeper X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 5c83b6e2ab7329c428b2c63415f3c695f4edaf12 X-Git-Newrev: 6e6556f29ecbf966404423b7d67897e5dcba712a X-Git-Rev: 6e6556f29ecbf966404423b7d67897e5dcba712a X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Mon, 28 Aug 2017 09:01:06 -0000 This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/bookkeeper.git The following commit(s) were added to refs/heads/master by this push: new 6e6556f ISSUE #462: TestTLS failures 6e6556f is described below commit 6e6556f29ecbf966404423b7d67897e5dcba712a Author: Sijie Guo AuthorDate: Mon Aug 28 02:00:53 2017 -0700 ISSUE #462: TestTLS failures Descriptions of the changes in this PR: Problem: The behavior of loading configuration in `AbstractConfiguration` was changed recently. So the TLS provider was not cleared correctly for the failed tests. Solution: Explicitly clear TLS provider for each configuratio to address the failed tests. Author: Sijie Guo Reviewers: Enrico Olivelli This closes #478 from sijie/fix_tls_test, closes #462 --- .../src/test/java/org/apache/bookkeeper/tls/TestTLS.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bookkeeper-server/src/test/java/org/apache/bookkeeper/tls/TestTLS.java b/bookkeeper-server/src/test/java/org/apache/bookkeeper/tls/TestTLS.java index 61e78b5..2f56a9d 100644 --- a/bookkeeper-server/src/test/java/org/apache/bookkeeper/tls/TestTLS.java +++ b/bookkeeper-server/src/test/java/org/apache/bookkeeper/tls/TestTLS.java @@ -237,8 +237,10 @@ public class TestTLS extends BookKeeperClusterTestCase { */ @Test(timeout = 60000) public void testClientWantsTLSNoServersHaveIt() throws Exception { - ServerConfiguration serverConf = new ServerConfiguration(baseConf); - serverConf.setTLSProviderFactoryClass(null); + ServerConfiguration serverConf = new ServerConfiguration(); + for (ServerConfiguration conf : bsConfs) { + conf.setTLSProviderFactoryClass(null); + } restartBookies(serverConf); ClientConfiguration clientConf = new ClientConfiguration(baseClientConf); @@ -257,8 +259,10 @@ public class TestTLS extends BookKeeperClusterTestCase { @Test(timeout = 60000) public void testTLSClientButOnlyFewTLSServers() throws Exception { // disable TLS on initial set of bookies - ServerConfiguration serverConf = new ServerConfiguration(baseConf); - serverConf.setTLSProviderFactoryClass(null); + ServerConfiguration serverConf = new ServerConfiguration(); + for (ServerConfiguration conf : bsConfs) { + conf.setTLSProviderFactoryClass(null); + } restartBookies(serverConf); // add two bookies which support TLS -- To stop receiving notification emails like this one, please contact ['"commits@bookkeeper.apache.org" '].