Skip to content

Testing: Verify credential environment precedence and isolation #56

Description

@bcherrington

Current gap

Environment tests cover several TimeLocker and Restic variables, XDG paths, master passwords, and password files, but the supported cross-source precedence contract is not proved consistently across repository operations.

Acceptance criteria

  • Derive the supported precedence contract from Security: Reconcile the repository credential resolution contract #28 and document it once.
  • Test per-repository storage, TIMELOCKER_PASSWORD, password-file configuration, and supported Restic fallback behavior.
  • Verify an explicit TimeLocker source wins over a conflicting fallback source.
  • Cover missing, empty, malformed, and non-interactive cases without exposing values.
  • Isolate environment mutation in shared fixtures and prove cleanup between tests.
  • Exercise representative backup, snapshot, restore, and repository commands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions