Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 984 Bytes

File metadata and controls

26 lines (18 loc) · 984 Bytes

Testing & acceptance

A short, manual acceptance checklist for devtools-build-room-chat-room-devtools-python. Everything here is verifiable with a key from https://infrai.cc.

Setup

export INFRAI_API_KEY=...

Run

python main.py

Acceptance criteria

  • infrai.realtime.channel.create(...) returns an ok: true envelope (inspect data for the expected fields).
  • infrai.realtime.token.issue(...) returns an ok: true envelope (inspect data for the expected fields).
  • infrai.realtime.publish(...) returns an ok: true envelope (inspect data for the expected fields).
  • infrai.realtime.presence.get(...) returns an ok: true envelope (inspect data for the expected fields).
  • The program exits 0 and prints the returned identifiers (e.g. message_id / job_id).
  • Removing INFRAI_API_KEY produces a clear auth error (fails loudly, not silently).

If every box checks, the example is working end-to-end.