Skip to content

Commit

Permalink
fix: make caseId and caseGuid optional (#2804)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Feb 7, 2024
1 parent ccf953a commit 85c89d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
class AhjoCallbackSerializer(serializers.Serializer):
message = serializers.CharField()
requestId = serializers.UUIDField(format="hex_verbose")
caseId = serializers.CharField()
caseGuid = serializers.UUIDField(format="hex_verbose")
caseId = serializers.CharField(required=False)
caseGuid = serializers.UUIDField(format="hex_verbose", required=False)
records = serializers.ListField()

# You can add additional validation here if needed
Expand Down
2 changes: 2 additions & 0 deletions backend/benefit/applications/tests/test_ahjo_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ def test_ahjo_open_case_callback_failure(
settings,
ahjo_callback_payload,
):
ahjo_callback_payload.pop("caseId", None)
ahjo_callback_payload.pop("caseGuid", None)
ahjo_callback_payload["message"] = AhjoCallBackStatus.FAILURE

url = reverse(
Expand Down

0 comments on commit 85c89d7

Please sign in to comment.