integration_tests_server

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 11 Imported by: 0

README

Integration auth server

Dual-port local channel auth for integration tests (ports 3000 = mt1, 3001 = eu).

Environment

Variable Port Purpose
INTEGRATION_TESTS_APP_MT1_APP_ID 3000 mt1 Pusher app ID
INTEGRATION_TESTS_APP_MT1_KEY 3000 mt1 app key
INTEGRATION_TESTS_APP_MT1_SECRET 3000 mt1 secret (signs auth)
INTEGRATION_TESTS_APP_EU_APP_ID 3001 eu app ID
INTEGRATION_TESTS_APP_EU_KEY 3001 eu app key
INTEGRATION_TESTS_APP_EU_SECRET 3001 eu secret

See spec/config/integration.env.example.

Endpoints

Method Path Purpose
POST /auth Channel auth (socket_id, channel_name)
POST /pusher/auth Alias for examples/connect

Run

From repo root:

export INTEGRATION_TESTS_APP_MT1_APP_ID=...
export INTEGRATION_TESTS_APP_MT1_KEY=...
export INTEGRATION_TESTS_APP_MT1_SECRET=...
# optional eu vars for :3001

make integration_server

Then in another terminal:

make integration

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL