Add integration test for TURN auth failures (#4524)
* Add integration test for TURN auth failures Covers four credential-corruption scenarios against the TURN server embedded in a single-node server: unparseable username, wrong password, expired username, and unknown API key. Each case drives a raw pion turn.Client Allocate and asserts the server rejects with a TURN error. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * TURN auth test: cover password expiry binding The TURN password's hash includes the expiry along with the secret and participant ID. Add two cases that exercise this binding: a password generated for a different expiry than the username's, and a password generated without any expiry component paired with a username that has one. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
ef2e5efe14
commit
4b8db3cfe5
@@ -139,7 +139,7 @@ require (
|
||||
github.com/pion/mdns/v2 v2.1.0 // indirect
|
||||
github.com/pion/randutil v0.1.0 // indirect
|
||||
github.com/pion/srtp/v3 v3.0.10 // indirect
|
||||
github.com/pion/stun/v3 v3.1.2 // indirect
|
||||
github.com/pion/stun/v3 v3.1.2
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/prometheus/client_model v0.6.2 // indirect
|
||||
github.com/prometheus/common v0.66.1 // indirect
|
||||
|
||||
Reference in New Issue
Block a user