Skip to content

test(backend): cover execution context normalization for malformed stored JSON #2146

Description

@utksh1

Summary

Add tests for non-object, malformed, and null-like stored execution-context payloads so they normalize to the documented safe default.

Scope

  • Suggested file: backend/secuscan/execution_context.py
  • Add or extend the matching backend unit or integration test.
  • Keep the change focused on the documented edge case.

Acceptance criteria

  • The regression case is reproducible in an automated test.
  • The expected safe behavior is asserted explicitly.
  • Existing behavior remains covered.
  • The focused test passes locally.

Verification

Run the affected pytest file and any directly related suite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:backendBackend API, database, or service workgood first issueFriendly starter issue for first-time contributorslevel:beginner20 pts difficulty label for small beginner-friendly PRspriority:lowNice-to-have issue with low urgencytype:testingTesting work category bonus label

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions