Skip to content

Commit af2bdf1

Browse files
Fix testTaskDescriptionExcludesSensitiveFields (elastic#144916)
There was a bug in the test that threw an index_not_found_exception. The test indexed into task_api_src but the reindex source was remote_src, so the remote reindex hit a missing index and failed. It’s fixed by indexing into remote_src, same as testGetReindexDescriptionStripsRemoteInfoSensitiveFields
1 parent da7feac commit af2bdf1

File tree

1 file changed

+1
-1
lines changed
  • modules/reindex-management/src/javaRestTest/java/org/elasticsearch/reindex/management

1 file changed

+1
-1
lines changed

modules/reindex-management/src/javaRestTest/java/org/elasticsearch/reindex/management/ReindexRemoteIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void testGetReindexDescriptionStripsRemoteInfoSensitiveFields() throws Ex
101101
}
102102

103103
public void testTaskDescriptionExcludesSensitiveFields() throws Exception {
104-
Request indexRequest = new Request("POST", "/task_api_src/_doc");
104+
Request indexRequest = new Request("POST", "/remote_src/_doc");
105105
indexRequest.addParameter("refresh", "true");
106106
indexRequest.setJsonEntity("{\"field\": \"value\"}");
107107
client().performRequest(indexRequest);

0 commit comments

Comments
 (0)