mirror of
https://github.com/openziti/ziti.git
synced 2026-10-14 16:19:57 +00:00
6732d0abfa
- update for identities does not allow enrol/auth/default admin to be updated - adds migrations to fix broken data models between ident/auth/enrol - fixes migration not to be stuck at version 4
14 lines
322 B
Go
14 lines
322 B
Go
package pem
|
|
|
|
import (
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
func Test_firstCertBlock(t *testing.T) {
|
|
t.Run("returns nil on invalid PEM content", func(t *testing.T) {
|
|
ret := firstCertBlock([]byte("123456790123456790123456790123456790123456790123456790123456790123456790"))
|
|
require.New(t).Nil(ret)
|
|
})
|
|
}
|