Categories: None [Edit]

kiosk-test-support

https://rubygems.org/gems/kiosk-test-support
https://github.com/kiosk-hq/kiosk
kiosk-test-support is the framework-agnostic test surface a Kiosk provider uses on their OWN application. It carries two things. The CONFORMANCE CHECKS assert the four properties the protocol makes normative of an origin: that its routes resolve, that a verb executes, that a query answers the shape it declared, and that data access is scoped to the authenticated principal. They ship with a Minitest adapter and an RSpec adapter, both loaded by explicit require, so the same fault reads identically in either framework. The JOURNEY DSL carries the identity-scoped call helpers (`as_agent_of`, `as_user`, `as_agent`, `as_anonymous`, `query`, `run_query`, `run_action`, `pay_action`, `kiosk_seed`), the pluggable executor contract, a NullExecutor for self-tests, and the structured error classes (`RLSDenied`, `QuotaExceeded`, `ExecutorNotConfigured`). It is connected to RSpec by `kiosk-rls-rspec` and into Minitest by `kiosk-rls-minitest`. The ASSISTANT drives an origin over HTTP as an assistant does: it registers, solves proof-of-work tolls, queries, runs, pays with signed mandates and listens on the event stream. `Kyc` stands in for the operator's KYC provider, and `StripeMock` fronts a local stripe-mock. `InProcessExecutor`, `InProcessWire` and `Conformance::InProcessOrigin` run against kiosk-server, and `Person` signs in through kiosk-user-idp-devise; both are dependencies. The host's bundle brings the rest: the Minitest and RSpec adapters use the test framework the host runs, `LiveServer` serves the app with Puma, and `Wire` solves Equihash tolls with kiosk-pow-equihash.

Total

Ranking: 194,539 of 198,088
Downloads: 542

Daily

Ranking: 19,573 of 198,053
Downloads: 11

Depended by

RankDownloadsName
194,810515kiosk-redteam
195,003495kiosk-rls-minitest
195,048490kiosk-rls-rspec

Depends on

RankDownloadsName
41835,429,896jwt
70662,217,208websocket-driver
72184,044,827json_schemer
193,549637kiosk-core
194,371557kiosk-server
194,832513kiosk-user-idp-devise

Owners

#GravatarHandle
1iconpirj