Skip to content

Commit 02ffef6

Browse files
Fixing tests
1 parent eec1f5c commit 02ffef6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/CustomServiceSettingsTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,7 @@ public void testXContent_WithInputTypeTranslationValues() throws IOException {
687687
"headers": {
688688
"key": "value"
689689
},
690-
"request": {
691-
"content": "string"
692-
},
690+
"request": "string",
693691
"response": {
694692
"json_parser": {
695693
"text_embeddings": "$.result.embeddings[*].embedding"

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/request/CustomRequestTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void testCreateRequest_HandlesQuery_WithReturnDocsAndTopN() throws IOExce
303303
TaskType.RERANK,
304304
serviceSettings,
305305
new CustomTaskSettings(Map.of()),
306-
new CustomSecretSettings(Map.of("api_key", new SerializableSecureString("my-secret-key")))
306+
new CustomSecretSettings(Map.of("api_key", new SecureString("my-secret-key".toCharArray())))
307307
);
308308

309309
var request = new CustomRequest(

0 commit comments

Comments
 (0)