open-standards/openpay/crates/op-vault/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science f4ac4a70c9
All checks were successful
standards workspaces build + test / jouleclaw-rs (pull_request) Successful in 1m38s
standards workspaces build + test / aac-rs (pull_request) Successful in 54s
standards workspaces build + test / joule-code-rs (pull_request) Successful in 37s
standards workspaces build + test / joulecontract-rs (pull_request) Successful in 37s
standards workspaces build + test / map-rs (pull_request) Successful in 34s
standards workspaces build + test / mesh-rs (pull_request) Successful in 25s
standards workspaces build + test / openpay (pull_request) Successful in 1m22s
standards workspaces build + test / eoc-rs (pull_request) Successful in 1m48s
standards workspaces build + test / jcp-rs (pull_request) Successful in 1m16s
standards workspaces build + test / proof-rs (pull_request) Successful in 1m10s
standards workspaces build + test / sandbox-rs (pull_request) Successful in 2m6s
standards workspaces build + test / smart-byte-rs (pull_request) Successful in 2m32s
standards workspaces build + test / arl-rs (pull_request) Successful in 2m13s
standards workspaces build + test / joule-ui-rs (pull_request) Successful in 2m47s
standards workspaces build + test / jouledesk-rs (pull_request) Successful in 2m32s
standards workspaces build + test / joulehook-rs (pull_request) Successful in 2m34s
standards workspaces build + test / sense-rs (pull_request) Successful in 2m32s
standards workspaces build + test / macOS energy backend (jcp-energy) (pull_request) Successful in 2m14s
op-vault: test that a token is independent of the PAN, not free of "4242"
pan_never_appears_in_token_string asserted that the token never contains
"424242" or "4242". The token is TOKEN_PREFIX plus a UUIDv7 in hex, and a
random hex string contains "4242" about once in 8,700 tokens (23 of
200,000 UUIDv7s did), so the test failed by chance: it failed the
openpay leg of standards-build on an unrelated PR (#102). A missing
substring said nothing about whether the token is derived from the card
anyway.

Keep the full-PAN check and test the real property: the same card
tokenized twice gets two different tokens, neither containing the PAN.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 23:07:55 -04:00
..
lifecycle.rs op-vault: test that a token is independent of the PAN, not free of "4242" 2026-09-30 23:07:55 -04:00