Skip to content

test: add tests for network_policy.get_policy_engine singleton (closes #2445) - #2450

Closed
tmdeveloper007 wants to merge 3 commits into
utksh1:mainfrom
tmdeveloper007:#2445
Closed

test: add tests for network_policy.get_policy_engine singleton (closes #2445)#2450
tmdeveloper007 wants to merge 3 commits into
utksh1:mainfrom
tmdeveloper007:#2445

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for backend.secuscan.network_policy.get_policy_engine,a module-level singleton accessor.

Changes

  • New test file: testing/backend/unit/test_network_policy_engine_singleton.py
  • 6 tests covering: first-call instance creation, singleton return,
    engine public methods, persistence across audit clears,
    and correct settings initialization

Testing

  • All 6 tests pass with python -m pytest testing/backend/unit/test_network_policy_engine_singleton.py --noconftest -v

@utksh1

utksh1 commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Closing this pull request because it bundles two unrelated changes under the #2445 issue and duplicates the focused submissions #2454 (network-policy singleton tests) and #2449 (parser sandbox capability tests). Splitting the work keeps review and attribution clear.

@utksh1 utksh1 closed this Aug 4, 2026
@utksh1 utksh1 added the gssoc:invalid Admin validation: invalid for GSSoC scoring label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:invalid Admin validation: invalid for GSSoC scoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants