Skip to content

Commit 842d21e

Browse files
Skip non-snapshot builds (#120881)
1 parent e3c5e97 commit 842d21e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ tests:
208208
- class: org.elasticsearch.search.ccs.CrossClusterIT
209209
method: testCancel
210210
issue: https://github.com/elastic/elasticsearch/issues/108061
211-
- class: org.elasticsearch.xpack.logsdb.seqno.RetentionLeaseRestIT
212-
issue: https://github.com/elastic/elasticsearch/issues/120434
213211
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
214212
method: testInvalidJSON
215213
issue: https://github.com/elastic/elasticsearch/issues/120482

x-pack/plugin/logsdb/src/javaRestTest/java/org/elasticsearch/xpack/logsdb/seqno/RetentionLeaseRestIT.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
package org.elasticsearch.xpack.logsdb.seqno;
99

1010
import org.apache.http.util.EntityUtils;
11+
import org.elasticsearch.Build;
1112
import org.elasticsearch.client.Request;
1213
import org.elasticsearch.client.Response;
1314
import org.elasticsearch.client.ResponseException;
@@ -20,6 +21,7 @@
2021
import org.elasticsearch.test.cluster.local.distribution.DistributionType;
2122
import org.elasticsearch.test.rest.ESRestTestCase;
2223
import org.elasticsearch.xcontent.json.JsonXContent;
24+
import org.junit.Before;
2325
import org.junit.ClassRule;
2426

2527
import java.io.IOException;
@@ -35,6 +37,11 @@ public class RetentionLeaseRestIT extends ESRestTestCase {
3537
private static final String BULK_INDEX_ENDPOINT = "/%s/_bulk";
3638
private static final String[] DOCUMENT_NAMES = { "alpha", "beta", "gamma", "delta" };
3739

40+
@Before
41+
public void assumeSnapshotBuild() {
42+
assumeTrue("/{index}/seq_no/add_retention_lease endpoint only available in snapshot builds", Build.current().isSnapshot());
43+
}
44+
3845
@ClassRule
3946
public static ElasticsearchCluster cluster = ElasticsearchCluster.local()
4047
.distribution(DistributionType.DEFAULT)

0 commit comments

Comments
 (0)