Skip to content
Playground(another site)

bynk.test.actor_no_identity

Error A call-site by <Actor>(x) supplies an identity to an actor that takes none — a unit-identity actor (e.g. Visitor) or Nobody.

A case supplies an identity only when the actor has one to give. An actor that declares no identity, and the failure principals Nobody, Forged, Stale and Expired, which present a missing or bad credential and so no verified caller, take no argument. Write by Nobody, not by Nobody("bob"). For an actor that does declare an identity and is given none, see bynk.test.actor_identity_required.

Example

tests/api.test.bynk
let r <- api.GET("/a") by Nobody("bob") // ✗ no credential, so no identity
let r <- api.GET("/a") by Nobody // ✓

In the Book

See also

  • The grammar rule it governs: case.
  • Every code in its category, Tests, on the diagnostic index.
  • bynk explain bynk.test.actor_no_identity shows the same from the installed toolchain, without a network.