<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #36807 cherry-pick for https://github.com/fleetdm/fleet/pull/37062
This commit is contained in:
@@ -67,6 +67,9 @@ func TestHostsTransferByHosts(t *testing.T) {
|
||||
ds.ListHostsLiteByIDsFunc = func(ctx context.Context, ids []uint) ([]*fleet.Host, error) {
|
||||
return nil, nil
|
||||
}
|
||||
ds.ListMDMAndroidUUIDsToHostIDsFunc = func(ctx context.Context, hostIDs []uint) (map[string]uint, error) {
|
||||
return map[string]uint{}, nil
|
||||
}
|
||||
|
||||
assert.Equal(t, "", RunAppForTest(t, []string{"hosts", "transfer", "--team", "team1", "--hosts", "host1"}))
|
||||
assert.True(t, ds.AddHostsToTeamFuncInvoked)
|
||||
|
||||
Reference in New Issue
Block a user