mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
for #19928 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
13 lines
240 B
Go
13 lines
240 B
Go
package mdmcrypto
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestSCEPVerifierVerifyEmptyCerts(t *testing.T) {
|
|
v := &SCEPVerifier{}
|
|
err := v.Verify(nil)
|
|
require.ErrorContains(t, err, "no certificate provided")
|
|
}
|