ANW-20 hurl HTTP contract-test harness
This commit is contained in:
parent
ec650e6c66
commit
b4a33abd71
50 changed files with 415 additions and 2 deletions
1
tests/fixtures/vault/.obsidian/workspace.json
vendored
Normal file
1
tests/fixtures/vault/.obsidian/workspace.json
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{}
|
||||
3
tests/fixtures/vault/.trash/discarded.md
vendored
Normal file
3
tests/fixtures/vault/.trash/discarded.md
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
---
|
||||
Should be invisible to the daemon.
|
||||
6
tests/fixtures/vault/Projects-old/legacy.md
vendored
Normal file
6
tests/fixtures/vault/Projects-old/legacy.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
tags: [legacy]
|
||||
status: archived
|
||||
---
|
||||
Legacy project under a sibling-prefix folder used to verify __anw-path
|
||||
segment-boundary anchoring (Projects vs Projects-old).
|
||||
6
tests/fixtures/vault/Projects/PDR-001-intro.md
vendored
Normal file
6
tests/fixtures/vault/Projects/PDR-001-intro.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
kind: PDR
|
||||
num: 1
|
||||
title: PDR-001 Intro
|
||||
---
|
||||
First PDR.
|
||||
6
tests/fixtures/vault/Projects/PDR-002-followup.md
vendored
Normal file
6
tests/fixtures/vault/Projects/PDR-002-followup.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
kind: PDR
|
||||
num: 2
|
||||
title: PDR-002 Followup
|
||||
---
|
||||
Second PDR.
|
||||
7
tests/fixtures/vault/Projects/alpha.md
vendored
Normal file
7
tests/fixtures/vault/Projects/alpha.md
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
tags: [alpha, project]
|
||||
status: draft
|
||||
version: 2
|
||||
deprecated: true
|
||||
---
|
||||
Alpha project.
|
||||
7
tests/fixtures/vault/Projects/anwesen.md
vendored
Normal file
7
tests/fixtures/vault/Projects/anwesen.md
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
tags: [anwesen, project]
|
||||
status: active
|
||||
version: 1
|
||||
deprecated: false
|
||||
---
|
||||
Anwesen project root.
|
||||
22
tests/fixtures/vault/README-fixtures.md
vendored
Normal file
22
tests/fixtures/vault/README-fixtures.md
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
purpose: fixture-guide
|
||||
---
|
||||
# Fixture vault
|
||||
|
||||
Hand-crafted for the hurl contract harness; every note here exists to
|
||||
exercise a specific clause of the [[User Manual]]. Touch with care; many
|
||||
`*.hurl` files match exact body bytes or count results.
|
||||
|
||||
## Coverage map
|
||||
|
||||
| Note(s) | Exercised |
|
||||
|---|---|
|
||||
| `README.md` | Top-level `application/json` read, ETag, `Accept: text/markdown`, `If-None-Match` 304. |
|
||||
| `no-frontmatter.md` | Notes without a frontmatter block. |
|
||||
| `Projects/anwesen.md`, `Projects/alpha.md` | bare-Eq, `__not`, `__exists`, `__in`, `__all` on tags. |
|
||||
| `Projects/PDR-001-intro.md`, `Projects/PDR-002-followup.md` | `__regex`, `__prefix`, `kind=PDR` grouping. |
|
||||
| `Projects-old/legacy.md` | `__anw-path` segment-boundary check (`Projects` vs `Projects-old`). |
|
||||
| `events/a.md`, `events/b.md`, `events/c.md` | `__gt`/`__gte`/`__lt`/`__lte` on ISO-8601 dates and RFC 3339 datetimes. |
|
||||
| `drift/scalar-tag.md`, `drift/list-tag.md` | Bare-Eq scalar/list unification carve-out per ADR-005. |
|
||||
| `nested/author-info.md` | Dotted nested-key predicates (`author.name=...`). |
|
||||
| `.obsidian/`, `.trash/` | Dot-directory ignore rule. |
|
||||
6
tests/fixtures/vault/README.md
vendored
Normal file
6
tests/fixtures/vault/README.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
tags: [demo, readme]
|
||||
date: 2026-05-01
|
||||
status: published
|
||||
---
|
||||
Fixture vault README. Used by the hurl contract harness.
|
||||
5
tests/fixtures/vault/drift/list-tag.md
vendored
Normal file
5
tests/fixtures/vault/drift/list-tag.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
tag: [python, go]
|
||||
---
|
||||
List 'tag' value -- pairs with scalar-tag.md to exercise bare-Eq
|
||||
scalar/list unification.
|
||||
5
tests/fixtures/vault/drift/scalar-tag.md
vendored
Normal file
5
tests/fixtures/vault/drift/scalar-tag.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
tag: python
|
||||
---
|
||||
Bare scalar 'tag' value -- pairs with list-tag.md to exercise bare-Eq
|
||||
scalar/list unification.
|
||||
5
tests/fixtures/vault/events/a.md
vendored
Normal file
5
tests/fixtures/vault/events/a.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
date: 2026-01-15
|
||||
title: January event
|
||||
---
|
||||
Earliest event.
|
||||
5
tests/fixtures/vault/events/b.md
vendored
Normal file
5
tests/fixtures/vault/events/b.md
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
date: 2026-03-22
|
||||
title: March event
|
||||
---
|
||||
Mid event.
|
||||
7
tests/fixtures/vault/events/c.md
vendored
Normal file
7
tests/fixtures/vault/events/c.md
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
date: 2026-05-14
|
||||
when: 2026-05-14T10:14:22Z
|
||||
title: May event
|
||||
---
|
||||
Latest event; carries both a date and an RFC 3339 datetime to exercise
|
||||
both coerced types.
|
||||
6
tests/fixtures/vault/nested/author-info.md
vendored
Normal file
6
tests/fixtures/vault/nested/author-info.md
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
author:
|
||||
name: brn
|
||||
role: engineer
|
||||
---
|
||||
Nested-key exercise for the `author.name=...` dotted-key path.
|
||||
1
tests/fixtures/vault/no-frontmatter.md
vendored
Normal file
1
tests/fixtures/vault/no-frontmatter.md
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
A note with no frontmatter block, just body text.
|
||||
Loading…
Add table
Add a link
Reference in a new issue