conformance only.Expand description
A black-box conformance suite for any OpenADR 3.1 VTN.
Every other test in this crate proves that this implementation agrees with itself. Two systems can each be perfectly self-consistent and refuse to talk to each other, so self-agreement is not interoperability — it is the thing people mistake for it. This module is the measurement.
It speaks nothing but HTTP. Point it at a base URL and hand it credentials and it will run
against the Alliance’s reference VTN, against another Rust one, or against something written
this afternoon in Go, exactly as it runs against this one. The suite builds with the conformance feature alone.
§What a result means
Three outcomes, and the third is the one that makes the other two worth reading:
- Passed — the VTN did what the cited clause requires.
- Failed — it did something else. The message says what was expected and what arrived.
- Skipped — the check could not be run, and says why. A VTN with no broker skips the MQTT topic checks; a suite without VEN credentials skips every privacy check.
A skip is not a pass, and the report never adds them together. A suite that quietly counts everything it could not attempt as success is how “166 of 168” becomes a number nobody can act on.
§Every check cites a clause
Check::clause names the sentence being tested — [Def §Object Privacy], [API events],
[UG §7.3]. That is not decoration. A failing check has to be arguable, and an argument about
conformance is an argument about a specific sentence; a check that cannot name one is a check
asserting this implementation’s opinion, and those are marked Severity::Extension instead.
§It writes
Conformance cannot be observed from reads alone — half the interesting behaviour is what a VTN
does with a POST. The suite creates programmes, events, VENs and reports under names prefixed
with RUN_PREFIX and deletes them afterwards, including on failure. Do not run it against a
VTN whose data matters, and see Runner::cleanup for what “afterwards” means when a check
panics or the network drops.
Structs§
- Check
- One thing the suite checks.
- Finding
- One check and what it found.
- Report
- Everything one run found.
- RunMeta
- What the report says about the run itself, beyond its findings.
- Runner
- Runs the suite against one VTN.
- Target
- How to reach the VTN under test.
Enums§
- Credential
- A credential, in whichever of the two shapes a deployment has.
- Needs
- What a check needs before it can run at all.
- Outcome
- What happened.
- Severity
- How much a failure means.
Constants§
- RUN_
PREFIX - Prefix for every object the suite creates, so a run is identifiable and cleanable.
Functions§
- checks
- Every check, in the order they run.