Skip to content

v0.1.0 — the OCPP 1.6 TCK, extracted as a standalone package

Choose a tag to compare

@juherr juherr released this 17 Aug 07:39
· 490 commits to main since this release
0f269e7

First standalone release. Extracted from a private mono-repo where this harness
was built to certify two CSMSs and grew a CSMS-neutral core in the process —
squashed rather than filtered, because that history also contains a driver for a
third party's private CSMS.

What is here

  • tck/ — the runner, the OCPP-J assertion engine, the simulator launcher,
    47 scenario specs, and the driver contract.
  • drivers/steve/
    — the reference driver. SteVe is the CSMS these scenarios were originally
    written against, and
    CONTRIBUTING.md
    is how to write your own.
  • patches/ and
    VENDOR.md

    — the exact diff of every vendored file against upstream, with per-file
    provenance: upstream digest, local digest, patch.

The point of the package

CSMS_DRIVER is a module specifier — a path or a package name — so a driver for
a CSMS this repository has never heard of is a file somebody writes elsewhere
and one environment variable. No file under tck/ names a CSMS, and
tests/generic-core.sh fails the build if one starts to. The extraction is
itself the proof: the driver that motivated the generalisation lives in a
different repository and depends on this one as a package.

Vendoring and licence

Roughly half of tck/ is vendored from
shiv3/ocpp-cp-simulator
(Apache-2.0) at 604054ad. The rest is new, and Apache-2.0 too rather than
something more permissive, because it is meant to go back upstream: VENDOR.md
marks each such file local-upstreamable.

The claim is checked rather than asserted: the vendor-integrity guard
reverse-applies each patch and verifies it reconstructs the pinned upstream
digest, so Apache-2.0 §4(b) is satisfied by a verified artifact.

Project hygiene

Three more guards run on every build: generic-core (no CSMS named under
tck/, and the core imports no driver), spec-invariants (a change to what a
scenario measures shows up as a diff in the pull request), and types-current
(the committed declarations match the sources). types/ is generated and
committed on purpose — consumed as a pinned git dependency, this package cannot
rely on prepack running.

Install

bun add github:juherr/open-ocpp-tck#v0.1.0

The driver contract changed in
v0.2.0

(scope/capabilities, expectedFailures). If you are writing a driver,
read that release before pinning here.