From c4c3164028a7847f34400c8fe0bac846fdabdfa9 Mon Sep 17 00:00:00 2001 From: Henning Andersen Date: Fri, 31 May 2024 16:55:00 +0200 Subject: [PATCH] Test for registered setting. --- .../transport/TransportServiceIT.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 server/src/internalClusterTest/java/org/elasticsearch/transport/TransportServiceIT.java diff --git a/server/src/internalClusterTest/java/org/elasticsearch/transport/TransportServiceIT.java b/server/src/internalClusterTest/java/org/elasticsearch/transport/TransportServiceIT.java new file mode 100644 index 0000000000000..ecb26bc3ebb7b --- /dev/null +++ b/server/src/internalClusterTest/java/org/elasticsearch/transport/TransportServiceIT.java @@ -0,0 +1,23 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0 and the Server Side Public License, v 1; you may not use this file except + * in compliance with, at your election, the Elastic License 2.0 or the Server + * Side Public License, v 1. + */ + +package org.elasticsearch.transport; + +import org.elasticsearch.common.settings.Settings; +import org.elasticsearch.test.ESSingleNodeTestCase; + +public class TransportServiceIT extends ESSingleNodeTestCase { + @Override + protected Settings nodeSettings() { + return Settings.builder().put(super.nodeSettings()).put(TransportService.ENABLE_STACK_OVERFLOW_AVOIDANCE.getKey(), randomBoolean()).build(); + } + + public void testNodeStartsWithSetting() { + // just check that the node starts with the setting set, i.e., that the setting is registered. + } +}