diff --git a/lib/cache/cache_test.go b/lib/cache/cache_test.go index 9c11b4f3a1145..99d1d64d295dd 100644 --- a/lib/cache/cache_test.go +++ b/lib/cache/cache_test.go @@ -121,6 +121,7 @@ type testPack struct { webSessionS types.WebSessionInterface webTokenS types.WebTokenInterface windowsDesktops services.WindowsDesktops + dynamicWindowsDesktops services.DynamicWindowsDesktops samlIDPServiceProviders services.SAMLIdPServiceProviders userGroups services.UserGroups okta services.Okta @@ -269,6 +270,11 @@ func newPackWithoutCache(dir string, opts ...packOption) (*testPack, error) { return nil, trace.Wrap(err) } + dynamicWindowsDesktopService, err := local.NewDynamicWindowsDesktopService(p.backend) + if err != nil { + return nil, trace.Wrap(err) + } + p.trustS = local.NewCAService(p.backend) p.clusterConfigS = clusterConfig p.provisionerS = local.NewProvisioningService(p.backend) @@ -288,6 +294,7 @@ func newPackWithoutCache(dir string, opts ...packOption) (*testPack, error) { p.databases = local.NewDatabasesService(p.backend) p.databaseServices = local.NewDatabaseServicesService(p.backend) p.windowsDesktops = local.NewWindowsDesktopService(p.backend) + p.dynamicWindowsDesktops = dynamicWindowsDesktopService p.samlIDPServiceProviders, err = local.NewSAMLIdPServiceProviderService(p.backend) if err != nil { return nil, trace.Wrap(err) @@ -428,6 +435,7 @@ func newPack(dir string, setupConfig func(c Config) Config, opts ...packOption) DatabaseServices: p.databaseServices, Databases: p.databases, WindowsDesktops: p.windowsDesktops, + DynamicWindowsDesktops: p.dynamicWindowsDesktops, SAMLIdPServiceProviders: p.samlIDPServiceProviders, UserGroups: p.userGroups, Okta: p.okta, @@ -921,6 +929,7 @@ func TestCompletenessReset(t *testing.T) { DatabaseServices: p.databaseServices, Databases: p.databases, WindowsDesktops: p.windowsDesktops, + DynamicWindowsDesktops: p.dynamicWindowsDesktops, SAMLIdPServiceProviders: p.samlIDPServiceProviders, UserGroups: p.userGroups, Okta: p.okta,