Skip to content

Commit

Permalink
Use constants for component names
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Farries committed Apr 25, 2022
1 parent 3950294 commit 5599f33
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions install/installer/pkg/common/render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ package common
import (
"testing"

"github.com/gitpod-io/gitpod/installer/pkg/components/content_service"
"github.com/gitpod-io/gitpod/installer/pkg/components/dashboard"
"github.com/gitpod-io/gitpod/installer/pkg/components/server"
"github.com/gitpod-io/gitpod/installer/pkg/config/v1"
"github.com/gitpod-io/gitpod/installer/pkg/config/v1/experimental"
"github.com/gitpod-io/gitpod/installer/pkg/config/versions"
Expand Down Expand Up @@ -35,15 +38,15 @@ func TestReplicas(t *testing.T) {
ExpectedReplicas int32
}{
{
Component: "server",
Component: server.Component,
ExpectedReplicas: 123,
},
{
Component: "dashboard",
Component: dashboard.Component,
ExpectedReplicas: 456,
},
{
Component: "content-service",
Component: content_service.Component,
ExpectedReplicas: 1,
},
}
Expand Down

0 comments on commit 5599f33

Please sign in to comment.