Skip to content

Commit

Permalink
Merge pull request #42 from projectsyn/update-tests-for-latest-commodore
Browse files Browse the repository at this point in the history
Update tests for latest Commodore version
  • Loading branch information
ccremer authored Aug 5, 2021
2 parents 532880a + 98f391c commit ac9b31e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ docs-serve: ## Preview the documentation
$(COMMODORE_CMD)

.PHONY: test
test: commodore_args = -f tests/$(instance).yml --search-paths ./dependencies
test: commodore_args = -f tests/$(instance).yml --search-paths ./dependencies --alias $(instance)
test: .compile ## Compile the component

.PHONY: clean
Expand Down
3 changes: 1 addition & 2 deletions tests/builtin.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
parameters:
_instance: builtin
---
2 changes: 1 addition & 1 deletion tests/builtin/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

var (
expectedDbSecretName = "keycloak-postgresql"
testPath = "../../compiled/keycloak/builtin"
testPath = "../../compiled/builtin/builtin"
)

func Test_Database_Secret_DefaultParameters(t *testing.T) {
Expand Down
2 changes: 0 additions & 2 deletions tests/external.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
parameters:
_instance: external

keycloak:
database:
provider: external
Expand Down
12 changes: 12 additions & 0 deletions tests/external/postgresql_helmchart_not_rendered_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package external

import (
"testing"

"github.com/stretchr/testify/require"
)

func Test_Postgresql_Helmchart_Not_Rendered(t *testing.T) {
subChartDir := testPath+"/01_keycloak_helmchart/keycloak/charts"
require.NoDirExists(t, subChartDir)
}
2 changes: 1 addition & 1 deletion tests/external/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

var (
expectedDbSecretName = "keycloak-postgresql"
testPath = "../../compiled/keycloak/external"
testPath = "../../compiled/external/external"
)

func Test_Database_Secret_DefaultParameters(t *testing.T) {
Expand Down

0 comments on commit ac9b31e

Please sign in to comment.