mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
7b35a192bf
Deprecate **pogreb**! close #169 Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/173
18 lines
397 B
Go
18 lines
397 B
Go
package certificates
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"codeberg.org/codeberg/pages/server/database"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestMockCert(t *testing.T) {
|
|
db, err := database.NewTmpDB()
|
|
assert.NoError(t, err)
|
|
cert, err := mockCert("example.com", "some error msg", "codeberg.page", db)
|
|
assert.NoError(t, err)
|
|
if assert.NotEmpty(t, cert) {
|
|
assert.NotEmpty(t, cert.Certificate)
|
|
}
|
|
}
|