Skip to content

Commit

Permalink
chore: more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jahzielv committed Sep 24, 2024
1 parent a005876 commit 88684db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fleetctl/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ func TestApplyAppConfig(t *testing.T) {
}

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

name := writeTmpYml(t, `---
Expand Down
12 changes: 12 additions & 0 deletions server/service/appconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,18 @@ func TestTransparencyURL(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
}

ac, err := svc.AppConfigObfuscated(ctx)
require.NoError(t, err)
require.Equal(t, tt.initialURL, ac.FleetDesktop.TransparencyURL)
Expand Down

0 comments on commit 88684db

Please sign in to comment.