Skip to content

Commit b0a8a44

Browse files
author
David Hasani
committed
add test
1 parent 5f74901 commit b0a8a44

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
@@ -2629,7 +2629,7 @@
26292629
},
26302630
"TransformationLanguage": {
26312631
"type": "string",
2632-
"enum": ["JAVA_8", "JAVA_11", "JAVA_17", "C_SHARP", "COBOL", "PL_I", "JCL"]
2632+
"enum": ["JAVA_8", "JAVA_11", "JAVA_17", "JAVA_21", "C_SHARP", "COBOL", "PL_I", "JCL"]
26332633
},
26342634
"TransformationLanguages": {
26352635
"type": "list",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,8 @@ export const invalidMetadataFileErrorParsing =
599599
export const invalidMetadataFileNoSctFile =
600600
"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."
601601

602+
export const invalidFromToJdkChatMessage = 'I cannot transform a project from Java 21 to Java 17.'
603+
602604
export const sqlMetadataFileReceived =
603605
'I found the following source database, target database, and host based on the schema conversion metadata you provided:'
604606

0 commit comments

Comments
 (0)