fleet/server/mdm/crypto/scep_test.go
Roberto Dip 685e1f8557
Fixed a server panic in /mdm/apple/mdm (#19929)
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
2024-06-21 12:20:51 -03:00

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")
}