test_the_azure_template_pushes_the_ado_flavour_to_a_code_wiki¶
Tests › tests/test_hosting.py
What this test is for
Why it exists
THE JOB'S OWN TOKEN, NEVER PRINTED: it reaches git through an extra header, not a URL that would land in the log.
Verifies REQ-DDB-WIKI-039
Given
text = (REPO / "templates" / "azure-pipelines-wiki.yml").read_text()doc = yaml.safe_load(text)params = {p["name"]: p for p in doc["parameters"]}
When
- —
Then
- ✓ params["clewVersion"]["default"] equals _version()
- ✓ {"wikiRepository", "wikiBranch"} is at most set(params)
- ✓ text contains "--format markdown --flavor ado"
- ✓ text contains "System.AccessToken"
- ✓ text contains "http.extraheader"
- ✓ re.search(r"https://[^\s]*\$\(System\.AccessToken\)", text) is false
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 1 of 400 steps
… 96 earlier steps
… 299 later steps
1 more
- `main` (clew/guard/main.py) · 1 of 357 steps
tests/test_hosting.py:81 · its file's page
What it checks (5)
assert params["clewVersion"]["default"] == _version()observes_versionassert {"wikiRepository", "wikiBranch"} <= set(params)not attributedassert "--format markdown --flavor ado" in textnot attributedassert "System.AccessToken" in text and "http.extraheader" in textnot attributedassert not re.search(r"https://[^\s]*\$\(System\.AccessToken\)", text)not attributed
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
Call flow
test_the_azure_template_pushes_the_ado_flavour_to_a_code_wiki→_versionWhat it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-039 | catalog | unknown |