|
@@ -8,11 +8,13 @@ package org.elasticsearch.xpack.logstash;
|
|
|
import org.elasticsearch.action.support.ActionFilters;
|
|
|
import org.elasticsearch.action.support.PlainActionFuture;
|
|
|
import org.elasticsearch.common.io.stream.BytesStreamOutput;
|
|
|
+import org.elasticsearch.common.settings.Setting;
|
|
|
import org.elasticsearch.common.settings.Settings;
|
|
|
import org.elasticsearch.license.XPackLicenseState;
|
|
|
import org.elasticsearch.test.ESTestCase;
|
|
|
import org.elasticsearch.transport.TransportService;
|
|
|
import org.elasticsearch.xpack.core.XPackFeatureSet;
|
|
|
+import org.elasticsearch.xpack.core.XPackSettings;
|
|
|
import org.elasticsearch.xpack.core.action.XPackUsageFeatureResponse;
|
|
|
import org.elasticsearch.xpack.core.logstash.LogstashFeatureSetUsage;
|
|
|
|
|
@@ -42,6 +44,8 @@ public class LogstashInfoTransportActionTests extends ESTestCase {
|
|
|
usage.writeTo(out);
|
|
|
XPackFeatureSet.Usage serializedUsage = new LogstashFeatureSetUsage(out.bytes().streamInput());
|
|
|
assertThat(serializedUsage.enabled(), is(enabled));
|
|
|
+
|
|
|
+ assertSettingDeprecationsAndWarnings(new Setting<?>[] { XPackSettings.LOGSTASH_ENABLED });
|
|
|
}
|
|
|
|
|
|
public void testEnabledDefault() throws Exception {
|