Skip to content

Commit

Permalink
Fixed test finally.
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Oct 3, 2024
1 parent ece1a87 commit 30041f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/service/appconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ func TestModifyEnableAnalytics(t *testing.T) {

func TestModifyAppConfigForNDESSCEPProxy(t *testing.T) {
ds := new(mock.Store)
svc, ctx := newTestService(t, ds, nil, nil)
svc, ctx := newTestService(t, ds, nil, nil, &TestServerOpts{License: &fleet.LicenseInfo{Tier: fleet.TierFree}})
scepURL := "https://example.com/mscep/mscep.dll"
adminURL := "https://example.com/mscep_admin/"
username := "user"
Expand Down Expand Up @@ -1429,6 +1429,9 @@ func TestModifyAppConfigForNDESSCEPProxy(t *testing.T) {
ds.SaveABMTokenFunc = func(ctx context.Context, token *fleet.ABMToken) error {
return nil
}
ds.ListVPPTokensFunc = func(ctx context.Context) ([]*fleet.VPPTokenDB, error) {
return []*fleet.VPPTokenDB{}, nil
}

jsonPayloadBase := `
{
Expand Down

0 comments on commit 30041f9

Please sign in to comment.