Skip to content

Commit c28805d

Browse files
committed
VED-1042: Update expected error message.
1 parent 8700365 commit c28805d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lambdas/backend/src/controller/parameter_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def process_immunization_target(imms_params: dict[str, list[str]]) -> set[str]:
8585
if any(x not in valid_vaccine_types for x in vaccine_types):
8686
raise ParameterExceptionError(
8787
f"{ImmunizationSearchParameterName.IMMUNIZATION_TARGET} must be one or more of the following: "
88-
f"{', '.join(valid_vaccine_types)}"
88+
f"{', '.join(sorted(valid_vaccine_types))}"
8989
)
9090

9191
return set(vaccine_types)

tests/e2e_automation/utilities/error_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"invalid_DiseaseType": {
3333
"code": "INVALID",
34-
"diagnostics": "-immunization.target must be one or more of the following: ROTAVIRUS, RSV, SHINGLES, 6IN1, MMR, FLU, 3IN1, PERTUSSIS, MENB, HIB, MMRV, BCG, MENACWY, 4IN1, COVID, PNEUMOCOCCAL, HPV, HEPB",
34+
"diagnostics": "-immunization.target must be one or more of the following: 3IN1, 4IN1, 6IN1, BCG, COVID, FLU, HEPB, HIB, HIBMENC, HPV, MENACWY, MENB, MMR, MMRV, PERTUSSIS, PNEUMOCOCCAL, ROTAVIRUS, RSV, SHINGLES",
3535
},
3636
"invalid_DateFrom": {
3737
"code": "INVALID",

0 commit comments

Comments
 (0)