Skip to content

Commit

Permalink
Fix broken Envoy & service tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darh authored and tjerman committed Sep 22, 2021
1 parent 8cae39f commit f58384d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions compose/service/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/cortezaproject/corteza-server/compose/types"
"github.com/cortezaproject/corteza-server/pkg/eventbus"
"github.com/cortezaproject/corteza-server/pkg/locale"
"github.com/cortezaproject/corteza-server/pkg/rbac"
"github.com/cortezaproject/corteza-server/store"
"github.com/cortezaproject/corteza-server/store/sqlite3"
Expand Down Expand Up @@ -95,6 +96,7 @@ func TestModules(t *testing.T) {
store: s,
ac: &accessControl{rbac: &rbac.ServiceAllowAll{}},
eventbus: eventbus.New(),
locale: ResourceTranslationsManager(locale.Static()),
}

makeModule := func(n ...string) *types.Module {
Expand Down
2 changes: 1 addition & 1 deletion pkg/envoy/yaml/compose_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestComposeNamespace_MarshalEnvoy(t *testing.T) {
)

req.NoError(err)
req.Len(nn, 1)
req.Len(nn, 2) // namespace + resource translation
// req.IsType(&node.ComposeNamespace{}, nn[0])
// req.Equal(uint64(42), nn[0].(*node.ComposeNamespace).Res.ID)
}
2 changes: 1 addition & 1 deletion pkg/envoy/yaml/rbac_rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestRBACRules_MarshalEnvoy(t *testing.T) {
)

req.NoError(err)
req.Len(nn, 1)
req.Len(nn, 2) // namespace + resource translation
// req.IsType(&node.ComposeNamespace{}, nn[0])
// req.Equal(uint64(42), nn[0].(*node.ComposeNamespace).Res.ID)
}

0 comments on commit f58384d

Please sign in to comment.