From d0ee36b19221aadee0f8b5f9bbc16963099dce6f Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 18 Apr 2018 17:36:14 -0700 Subject: [PATCH] Update tests using http.enabled (elastic/x-pack-elasticsearch#4413) This commit updates tests using http.enabled to expect a deprecation warning. relates https://github.com/elastic/elasticsearch/pull/29591 Original commit: elastic/x-pack-elasticsearch@92e5ea9c74953bdeb73d6be7b2e2e06ca4ca6a42 --- .../xpack/security/TokenSSLBootsrapCheckTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/security/src/test/java/org/elasticsearch/xpack/security/TokenSSLBootsrapCheckTests.java b/plugin/security/src/test/java/org/elasticsearch/xpack/security/TokenSSLBootsrapCheckTests.java index ec6422a40f8..c66b882ac0a 100644 --- a/plugin/security/src/test/java/org/elasticsearch/xpack/security/TokenSSLBootsrapCheckTests.java +++ b/plugin/security/src/test/java/org/elasticsearch/xpack/security/TokenSSLBootsrapCheckTests.java @@ -7,6 +7,7 @@ package org.elasticsearch.xpack.security; import org.elasticsearch.bootstrap.BootstrapContext; import org.elasticsearch.common.network.NetworkModule; +import org.elasticsearch.common.settings.Setting; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.xpack.core.XPackSettings; @@ -40,5 +41,7 @@ public class TokenSSLBootsrapCheckTests extends ESTestCase { .put(XPackSettings.TOKEN_SERVICE_ENABLED_SETTING.getKey(), true) .put(NetworkModule.HTTP_ENABLED.getKey(), false).build(); assertFalse(new TokenSSLBootstrapCheck().check(new BootstrapContext(settings, null)).isFailure()); + + assertSettingDeprecationsAndWarnings(new Setting[] { NetworkModule.HTTP_ENABLED }); } }