Skip to content

test : add unit tests for plugin_health_dashboard helpers #1643

Description

@tmdeveloper007

Summary of What Needs to be Done:
Add unit tests for the helper functions in scripts/plugin_health_dashboard.py: safe_relative_path and discover_plugins. These functions handle safe path resolution and plugin directory traversal for the health dashboard.

Changes that Need to be Made:

  • New file: testing/backend/unit/test_plugin_health_dashboard.py
  • Test safe_relative_path (returns relative path, rejects traversal attempts)
  • Test discover_plugins (finds all plugin directories under plugins/)

Impact that it would Provide:

  • Prevents path traversal vulnerabilities in the dashboard script
  • Ensures plugin discovery handles empty directories and edge cases
  • Improves dashboard reliability

Note: This task is being handled by tmdeveloper007 — please assign to that account when picking it up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions