Skip to content

Commit 8362d08

Browse files
committed
fix tests for when index doesnt exist
1 parent 10b3674 commit 8362d08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/io/fabric8/elasticsearch/plugin/kibana/KibanaSeedTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ private void givenDocumentExistFor(String index, String type, String id, boolean
8383
}
8484

8585
private void givenCopyKibanaIndexIsSuccessful() throws InterruptedException, ExecutionException, IOException {
86+
when(pluginClient.indexExists(".kibana")).thenReturn(true);
8687
CreateIndexResponse response = mock(CreateIndexResponse.class);
8788
when(pluginClient.copyIndex(anyString(), anyString(), Matchers.<String>anyVararg())).thenReturn(response );
8889
}

0 commit comments

Comments
 (0)