6
6
package org .elasticsearch .smoketest ;
7
7
8
8
import org .apache .http .util .EntityUtils ;
9
- import org .apache .lucene .util .LuceneTestCase ;
10
9
import org .elasticsearch .client .Request ;
11
10
import org .elasticsearch .client .Response ;
12
11
import org .elasticsearch .common .Strings ;
32
31
import static org .hamcrest .Matchers .hasEntry ;
33
32
import static org .hamcrest .Matchers .is ;
34
33
35
- @ LuceneTestCase .AwaitsFix (bugUrl = "https://github.com/elastic/elasticsearch/issues/35361" )
36
34
public class SmokeTestWatcherWithSecurityIT extends ESRestTestCase {
37
35
38
36
private static final String TEST_ADMIN_USERNAME = "test_admin" ;
@@ -198,7 +196,6 @@ public void testSearchTransformHasPermissions() throws Exception {
198
196
.endObject ().endObject ().endObject ();
199
197
builder .startObject ("actions" ).startObject ("index" ).startObject ("index" )
200
198
.field ("index" , "my_test_index" )
201
- .field ("doc_type" , "doc" )
202
199
.field ("doc_id" , "my-id" )
203
200
.endObject ().endObject ().endObject ();
204
201
builder .endObject ();
@@ -229,7 +226,6 @@ public void testSearchTransformInsufficientPermissions() throws Exception {
229
226
.endObject ().endObject ().endObject ();
230
227
builder .startObject ("actions" ).startObject ("index" ).startObject ("index" )
231
228
.field ("index" , "my_test_index" )
232
- .field ("doc_type" , "doc" )
233
229
.field ("doc_id" , "some-id" )
234
230
.endObject ().endObject ().endObject ();
235
231
builder .endObject ();
@@ -250,7 +246,6 @@ public void testIndexActionHasPermissions() throws Exception {
250
246
builder .startObject ("input" ).startObject ("simple" ).field ("spam" , "eggs" ).endObject ().endObject ();
251
247
builder .startObject ("actions" ).startObject ("index" ).startObject ("index" )
252
248
.field ("index" , "my_test_index" )
253
- .field ("doc_type" , "doc" )
254
249
.field ("doc_id" , "my-id" )
255
250
.endObject ().endObject ().endObject ();
256
251
builder .endObject ();
@@ -274,7 +269,6 @@ public void testIndexActionInsufficientPrivileges() throws Exception {
274
269
builder .startObject ("input" ).startObject ("simple" ).field ("spam" , "eggs" ).endObject ().endObject ();
275
270
builder .startObject ("actions" ).startObject ("index" ).startObject ("index" )
276
271
.field ("index" , "index_not_allowed_to_read" )
277
- .field ("doc_type" , "doc" )
278
272
.field ("doc_id" , "my-id" )
279
273
.endObject ().endObject ().endObject ();
280
274
builder .endObject ();
0 commit comments