Skip to content

test: end-to-end plex-watchdog test with live Plex server #88

@smartwatermelon

Description

@smartwatermelon

Context

The plex-watchdog BATS tests use XML fixtures for unit testing. An end-to-end test against a live Plex server would catch issues with actual API response format changes, token auth, PUT requests for revert, and real drift detection.

Scope

Design an end-to-end test that:

  1. Reads a real Plex setting
  2. Changes it via the API
  3. Runs the watchdog poll
  4. Verifies drift is detected
  5. Reverts the setting
  6. Verifies resolution

Considerations

  • Requires a running Plex server (only runnable on the actual Mac Mini)
  • Must be non-destructive (revert any changes)
  • Should use a safe setting (e.g., TranscoderThrottleBuffer)
  • Could be a manual test script rather than automated CI

Related

  • tests/plex-watchdog.bats covers unit tests
  • app-setup/templates/plex-watchdog.sh and plex-watchdog-ctl.sh

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