Skip to content

Commit 860ffd5

Browse files
committed
Remove default BBQ index options test
1 parent cef8029 commit 860ffd5

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

x-pack/plugin/inference/src/internalClusterTest/java/org/elasticsearch/xpack/inference/integration/SemanticTextIndexOptionsIT.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -131,25 +131,6 @@ public void testValidateIndexOptionsWithBasicLicense() throws Exception {
131131
assertThat(getFieldMappings(inferenceFieldName, false), equalTo(expectedFieldMapping));
132132
}
133133

134-
public void testSetDefaultBBQIndexOptionsWithBasicLicense() throws Exception {
135-
final String inferenceId = "test-inference-id-2";
136-
final String inferenceFieldName = "inference_field";
137-
createInferenceEndpoint(TaskType.TEXT_EMBEDDING, inferenceId, BBQ_COMPATIBLE_SERVICE_SETTINGS);
138-
downgradeLicenseAndRestartCluster();
139-
140-
assertAcked(safeGet(prepareCreate(INDEX_NAME).setMapping(generateMapping(inferenceFieldName, inferenceId, null)).execute()));
141-
142-
final Map<String, Object> expectedFieldMapping = generateExpectedFieldMapping(
143-
inferenceFieldName,
144-
inferenceId,
145-
SemanticTextFieldMapper.defaultBbqHnswDenseVectorIndexOptions()
146-
);
147-
148-
// Filter out null/empty values from params we didn't set to make comparison easier
149-
Map<String, Object> actualFieldMappings = filterNullOrEmptyValues(getFieldMappings(inferenceFieldName, true));
150-
assertThat(actualFieldMappings, equalTo(expectedFieldMapping));
151-
}
152-
153134
private void createInferenceEndpoint(TaskType taskType, String inferenceId, Map<String, Object> serviceSettings) throws IOException {
154135
final String service = switch (taskType) {
155136
case TEXT_EMBEDDING -> TestDenseInferenceServiceExtension.TestInferenceService.NAME;

0 commit comments

Comments
 (0)