photoprism/pkg/header/header_test.go
Michael Mayer 3e924b70c7 API: Move handling of HTTP auth headers to pkg/header #808 #3943 #3959
Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-01-09 10:58:47 +01:00

17 lines
363 B
Go

package header
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestHeader(t *testing.T) {
t.Run("Auth", func(t *testing.T) {
assert.Equal(t, "X-Auth-Token", XAuthToken)
assert.Equal(t, "X-Session-ID", XSessionID)
assert.Equal(t, "Authorization", Auth)
assert.Equal(t, "Basic", AuthBasic)
assert.Equal(t, "Bearer", AuthBearer)
})
}