Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport][2.x] fix build #134 #159

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ sourceSets {


jacocoTestReport {
dependsOn test
reports {
xml.required = true
html.required = true
}
dependsOn test
}

// TODO: Enable these checks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.opensearch.action.support.ActionFilterChain;
import org.opensearch.client.Client;
import org.opensearch.common.bytes.BytesReference;
import org.opensearch.common.collect.ImmutableOpenMap;
import org.opensearch.common.document.DocumentField;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
Expand Down Expand Up @@ -123,11 +122,8 @@ private static Client buildMockClient(String indexName, Settings... settings) {
settingsBuilder.put(settingsEntry);
}
Settings settingsObj = settingsBuilder.build();
ImmutableOpenMap<String, Settings> indexSettingsMap = ImmutableOpenMap.<String, Settings>builder()
.fPut(indexName, settingsObj)
.build();
ImmutableOpenMap<String, Settings> emptyMap = ImmutableOpenMap.<String, Settings>builder().build();
GetSettingsResponse getSettingsResponse = new GetSettingsResponse(indexSettingsMap, emptyMap);
Map<String, Settings> indexSettingsMap = Map.of(indexName, settingsObj);
GetSettingsResponse getSettingsResponse = new GetSettingsResponse(indexSettingsMap, Collections.emptyMap());
when(mockGetSettingsFuture.actionGet()).thenReturn(getSettingsResponse);
when(client.execute(eq(GetSettingsAction.INSTANCE), any(GetSettingsRequest.class)))
.thenReturn(mockGetSettingsFuture);
Expand Down
Loading