Skip to content

Commit c4d0402

Browse files
author
David Hasani
committed
add test
1 parent d99e745 commit c4d0402

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/core/src/amazonqGumby/chat/controller/messenger/messenger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ export class Messenger {
492492
break
493493
case 'invalid-from-to-jdk':
494494
// TO-DO: get this String reviewed
495-
message = 'I cannot transform a project from Java 21 to Java 17.'
495+
message = CodeWhispererConstants.invalidFromToJdkChatMessage
496496
break
497497
}
498498

packages/core/src/codewhisperer/client/user-service-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2627,7 +2627,7 @@
26272627
},
26282628
"TransformationLanguage": {
26292629
"type": "string",
2630-
"enum": ["JAVA_8", "JAVA_11", "JAVA_17", "C_SHARP", "COBOL", "PL_I", "JCL"]
2630+
"enum": ["JAVA_8", "JAVA_11", "JAVA_17", "JAVA_21", "C_SHARP", "COBOL", "PL_I", "JCL"]
26312631
},
26322632
"TransformationLanguages": {
26332633
"type": "list",

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,8 @@ export const invalidMetadataFileErrorParsing =
596596
export const invalidMetadataFileNoSctFile =
597597
"An .sct file is required for transformation. Make sure that you've uploaded the .zip file you retrieved from your schema conversion in AWS DMS."
598598

599+
export const invalidFromToJdkChatMessage = 'I cannot transform a project from Java 21 to Java 17.'
600+
599601
export const sqlMetadataFileReceived =
600602
'I found the following source database, target database, and host based on the schema conversion metadata you provided:'
601603

0 commit comments

Comments
 (0)