1
0
Эх сурвалжийг харах

[Test] Fix AsyncSearchSecurityIT testStatusWithUsersWhileSearchIsRunning (#106912)

The error_query is only available in snapshot builds.
All test failures have the release-tests tag.

Closes #106871
Albert Zaharovits 1 жил өмнө
parent
commit
89cfb85c82

+ 2 - 0
x-pack/plugin/async-search/qa/security/src/javaRestTest/java/org/elasticsearch/xpack/search/AsyncSearchSecurityIT.java

@@ -8,6 +8,7 @@
 package org.elasticsearch.xpack.search;
 
 import org.apache.http.util.EntityUtils;
+import org.elasticsearch.Build;
 import org.elasticsearch.ElasticsearchException;
 import org.elasticsearch.action.search.SearchResponse;
 import org.elasticsearch.client.Request;
@@ -178,6 +179,7 @@ public class AsyncSearchSecurityIT extends ESRestTestCase {
      */
     @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/106871")
     public void testStatusWithUsersWhileSearchIsRunning() throws IOException {
+        assumeTrue("[error_query] is only available in snapshot builds", Build.current().isSnapshot());
         String user = randomFrom("user1", "user2");
         String other = user.equals("user1") ? "user2" : "user1";
         String indexName = "index-" + user;