Skip to content

Commit

Permalink
fix: fix subchart filenames for helm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Jun 13, 2024
1 parent 99069fd commit 3a4d02d
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 185 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion charts/clicker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: clicker
description: Cl(aberntes t)ick(l)er! For "clicking" on some nodes to perform clabernetes related cluster wide sysctl commands.
description: Cl(abernetes t)ick(l)er! For "clicking" on some nodes to perform clabernetes related cluster wide sysctl commands.
home: https://github.com/srl-labs/clabernetes
sources:
- https://github.com/srl-labs/clabernetes
Expand Down
2 changes: 1 addition & 1 deletion charts/clicker/tests/default_values/default_values_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package default_values_test

import (
clabernetesconstants "github.com/srl-labs/clabernetes/constants"
"os"
"path/filepath"
"testing"

clabernetesconstants "github.com/srl-labs/clabernetes/constants"
clabernetestesthelper "github.com/srl-labs/clabernetes/testhelper"
)

Expand Down
3 changes: 1 addition & 2 deletions testhelper/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ func ReadAllRenderedTemplates(t *testing.T, rootRenderDir string) map[string][]b

for _, subChartFileName := range subChartFileNames {
subChartPathComponents := strings.Split(subChartFileName, string(filepath.Separator))

subChartName := subChartPathComponents[4]
subChartName := subChartPathComponents[len(subChartPathComponents)-3]

var contents []byte

Expand Down

0 comments on commit 3a4d02d

Please sign in to comment.