Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jahzielv committed Sep 24, 2024
1 parent 74da8ff commit 7029ac9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions server/service/service_appconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,18 @@ func TestModifyAppConfigPatches(t *testing.T) {
return nil
}

ds.SaveABMTokenFunc = func(ctx context.Context, tok *fleet.ABMToken) error {
return nil
}

ds.ListVPPTokensFunc = func(ctx context.Context) ([]*fleet.VPPTokenDB, error) {
return []*fleet.VPPTokenDB{}, nil
}

ds.ListABMTokensFunc = func(ctx context.Context) ([]*fleet.ABMToken, error) {
return []*fleet.ABMToken{}, nil
}

configJSON := []byte(`{"org_info": { "org_name": "Acme", "org_logo_url": "somelogo.jpg" }}`)

ctx = test.UserContext(ctx, test.UserAdmin)
Expand Down

0 comments on commit 7029ac9

Please sign in to comment.