Skip to content

Commit

Permalink
Fix RBAC tests to accomodate serviceaccount changes.
Browse files Browse the repository at this point in the history
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
  • Loading branch information
amisevsk committed Nov 7, 2022
1 parent f825089 commit 25d533b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/provision/workspace/rbac/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/devfile/api/v2/pkg/attributes"
"github.com/devfile/devworkspace-operator/apis/controller/v1alpha1"
"github.com/devfile/devworkspace-operator/pkg/common"
"github.com/devfile/devworkspace-operator/pkg/config"
"github.com/devfile/devworkspace-operator/pkg/constants"
"github.com/devfile/devworkspace-operator/pkg/provision/sync"
testlog "github.com/go-logr/logr/testing"
Expand Down Expand Up @@ -190,6 +191,7 @@ func getTestDevWorkspace(id string) *common.DevWorkspaceWithConfig {
DevWorkspaceId: id,
},
},
Config: config.GetConfigForTesting(nil),
}
}

Expand All @@ -202,6 +204,7 @@ func getTestDevWorkspaceWithAttributes(t *testing.T, id string, keysAndValues ..
attr.PutString(keysAndValues[i], keysAndValues[i+1])
}
return &common.DevWorkspaceWithConfig{
Config: config.GetConfigForTesting(nil),
DevWorkspace: &dw.DevWorkspace{
ObjectMeta: metav1.ObjectMeta{
Name: id,
Expand Down

0 comments on commit 25d533b

Please sign in to comment.