Skip to content

Commit

Permalink
Unmuted watcher security smoke tests on 7 dot x branch.
Browse files Browse the repository at this point in the history
Also removed the usage of types in watcher's index action and
added more logging in case this test fails again.

Relates to #30777
  • Loading branch information
martijnvg committed Jan 24, 2020
1 parent 7af0474 commit 36b4600
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
package org.elasticsearch.smoketest;

import org.apache.http.util.EntityUtils;
import org.apache.lucene.util.LuceneTestCase;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.Response;
import org.elasticsearch.common.Strings;
Expand All @@ -33,7 +32,6 @@
import static org.hamcrest.Matchers.hasEntry;
import static org.hamcrest.Matchers.is;

@LuceneTestCase.AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/35361")
public class SmokeTestWatcherWithSecurityIT extends ESRestTestCase {

private static final String TEST_ADMIN_USERNAME = "test_admin";
Expand Down Expand Up @@ -200,7 +198,6 @@ public void testSearchTransformHasPermissions() throws Exception {
.endObject().endObject().endObject();
builder.startObject("actions").startObject("index").startObject("index")
.field("index", "my_test_index")
.field("doc_type", "doc")
.field("doc_id", "my-id")
.endObject().endObject().endObject();
builder.endObject();
Expand Down Expand Up @@ -231,7 +228,6 @@ public void testSearchTransformInsufficientPermissions() throws Exception {
.endObject().endObject().endObject();
builder.startObject("actions").startObject("index").startObject("index")
.field("index", "my_test_index")
.field("doc_type", "doc")
.field("doc_id", "some-id")
.endObject().endObject().endObject();
builder.endObject();
Expand All @@ -252,7 +248,6 @@ public void testIndexActionHasPermissions() throws Exception {
builder.startObject("input").startObject("simple").field("spam", "eggs").endObject().endObject();
builder.startObject("actions").startObject("index").startObject("index")
.field("index", "my_test_index")
.field("doc_type", "doc")
.field("doc_id", "my-id")
.endObject().endObject().endObject();
builder.endObject();
Expand All @@ -276,7 +271,6 @@ public void testIndexActionInsufficientPrivileges() throws Exception {
builder.startObject("input").startObject("simple").field("spam", "eggs").endObject().endObject();
builder.startObject("actions").startObject("index").startObject("index")
.field("index", "index_not_allowed_to_read")
.field("doc_type", "doc")
.field("doc_id", "my-id")
.endObject().endObject().endObject();
builder.endObject();
Expand Down

0 comments on commit 36b4600

Please sign in to comment.