Skip to content

Commit

Permalink
Revert "re-enable SmokeTestWatcherWithSecurityIT (elastic#38814)"
Browse files Browse the repository at this point in the history
This reverts commit 70b6134.
  • Loading branch information
talevy committed Feb 16, 2019
1 parent e26e929 commit 5b4ea75
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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 @@ -31,6 +32,7 @@
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 @@ -196,6 +198,7 @@ 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 @@ -226,6 +229,7 @@ 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 @@ -246,6 +250,7 @@ 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 @@ -269,6 +274,7 @@ 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 5b4ea75

Please sign in to comment.