Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,6 @@ tests:
- class: org.elasticsearch.xpack.esql.action.EsqlActionBreakerIT
method: testTopNPushedToLucene
issue: https://github.com/elastic/elasticsearch/issues/130505
- class: org.elasticsearch.xpack.logsdb.LogsdbTestSuiteIT
method: test {yaml=/52_esql_insist_operator_synthetic_source/FROM with INSIST_🐔and LIMIT 1}
issue: https://github.com/elastic/elasticsearch/issues/130506
- class: org.elasticsearch.xpack.logsdb.LogsdbTestSuiteIT
method: test {yaml=/52_esql_insist_operator_synthetic_source/FROM with INSIST_🐔}
issue: https://github.com/elastic/elasticsearch/issues/130507
- class: org.elasticsearch.common.ssl.DefaultJdkTrustConfigTests
method: testGetSystemTrustStoreWithNoSystemProperties
issue: https://github.com/elastic/elasticsearch/issues/130517
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;

import org.elasticsearch.Build;
import org.elasticsearch.common.settings.SecureString;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.util.concurrent.ThreadContext;
Expand All @@ -20,6 +21,9 @@
import org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase;
import org.junit.ClassRule;

import java.util.ArrayList;
import java.util.List;

public class LogsdbTestSuiteIT extends ESClientYamlSuiteTestCase {

private static final String USER = "test_admin";
Expand All @@ -43,7 +47,19 @@ public LogsdbTestSuiteIT(@Name("yaml") ClientYamlTestCandidate testCandidate) {

@ParametersFactory
public static Iterable<Object[]> parameters() throws Exception {
return ESClientYamlSuiteTestCase.createParameters();
// Filter out 52_esql_insist_operator_synthetic_source.yml suite is build is not snapshot:
// (esql doesn't use feature flags and all experimental features are just enabled if build is snapshot)

List<Object[]> filtered = new ArrayList<>();
for (Object[] params : ESClientYamlSuiteTestCase.createParameters()) {
ClientYamlTestCandidate candidate = (ClientYamlTestCandidate) params[0];
if (candidate.getRestTestSuite().getName().equals("52_esql_insist_operator_synthetic_source")
&& Build.current().isSnapshot() == false) {
continue;
}
filtered.add(new Object[] { candidate });
}
return filtered;
}

@Override
Expand Down