rename files

This commit is contained in:
aler9
2020-04-10 18:23:04 +02:00
parent 0657f277d8
commit 20e98c44de
9 changed files with 0 additions and 0 deletions

19
auth-server_test.go Normal file
View File

@@ -0,0 +1,19 @@
package gortsplib
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestAuthClientServer(t *testing.T) {
as := NewAuthServer("testuser", "testpass")
wwwAuthenticate := as.GenerateHeader()
ac, err := NewAuthClient(wwwAuthenticate, "testuser", "testpass")
require.NoError(t, err)
authorization := ac.GenerateHeader("ANNOUNCE", "rtsp://myhost/mypath")
err = as.ValidateHeader(authorization, "ANNOUNCE", "rtsp://myhost/mypath")
require.NoError(t, err)
}