Skip to content

test: make Basic auth fixture explicitly synthetic - #600

Merged
rng1995 merged 2 commits into
mainfrom
naren/test-synthetic-basic-auth-fixture
Sep 22, 2026
Merged

rng1995 merged 2 commits into
mainfrom
naren/test-synthetic-basic-auth-fixture

Conversation

@rng1995

@rng1995 rng1995 commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

The provenance redaction test contains a literal encoded HTTP Basic authentication header that triggers secret scanning despite being test data. Build the header from explicit synthetic credentials at runtime and give the case a stable synthetic-basic-auth pytest ID. This preserves the existing redaction assertions and keeps the encoded value out of normal pytest case names.

This is a test-fixture cleanup. Production sanitization and authentication behavior are unchanged. Historical secret-scanning alerts still require a separate “Used in tests” resolution.

Validation:

  • PYTHONPATH=src python -m pytest -q tests/unit/test_llm_provenance.py — 36 passed (Python 3.12).
  • python -m ruff check src/ tests/ — passed.
  • python -m ruff format --check src/ tests/ — passed, 229 files.
  • git diff --check — passed.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995
rng1995 marked this pull request as ready for review September 21, 2026 20:42
@rng1995
rng1995 merged commit 665d619 into main Sep 22, 2026
6 checks passed
@rng1995
rng1995 deleted the naren/test-synthetic-basic-auth-fixture branch September 22, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant