Skip to content

Commit

Permalink
Add a test for ws garbage collection
Browse files Browse the repository at this point in the history
Add it to the existing configmap test.
  • Loading branch information
Andrew Farries authored and roboquat committed May 10, 2022
1 parent 4f70422 commit 57ce815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/installer/pkg/components/server/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func TestConfigMap(t *testing.T) {
EnableLocalApp bool
RunDbDeleter bool
DisableDynamicAuthProviderLogin bool
DisableWorkspaceGarbageCollection bool
DefaultBaseImageRegistryWhiteList []string
WorkspaceImage string
JWTSecret string
Expand All @@ -33,6 +34,7 @@ func TestConfigMap(t *testing.T) {
EnableLocalApp: true,
DisableDynamicAuthProviderLogin: true,
RunDbDeleter: false,
DisableWorkspaceGarbageCollection: true,
DefaultBaseImageRegistryWhiteList: []string{"some-registry"},
WorkspaceImage: "some-workspace-image",
JWTSecret: "some-jwt-secret",
Expand All @@ -57,6 +59,7 @@ func TestConfigMap(t *testing.T) {
DisableDynamicAuthProviderLogin: expectation.DisableDynamicAuthProviderLogin,
EnableLocalApp: pointer.Bool(expectation.EnableLocalApp),
RunDbDeleter: pointer.Bool(expectation.RunDbDeleter),
DisableWorkspaceGarbageCollection: expectation.DisableWorkspaceGarbageCollection,
DefaultBaseImageRegistryWhiteList: expectation.DefaultBaseImageRegistryWhiteList,
WorkspaceDefaults: experimental.WorkspaceDefaults{
WorkspaceImage: expectation.WorkspaceImage,
Expand Down Expand Up @@ -99,6 +102,7 @@ func TestConfigMap(t *testing.T) {
DisableDynamicAuthProviderLogin: config.DisableDynamicAuthProviderLogin,
EnableLocalApp: config.EnableLocalApp,
RunDbDeleter: config.RunDbDeleter,
DisableWorkspaceGarbageCollection: config.WorkspaceGarbageCollection.Disabled,
DefaultBaseImageRegistryWhiteList: config.DefaultBaseImageRegistryWhitelist,
WorkspaceImage: config.WorkspaceDefaults.WorkspaceImage,
JWTSecret: config.OAuthServer.JWTSecret,
Expand Down

0 comments on commit 57ce815

Please sign in to comment.