[ATMOSPHERE-536] [stable/2023.2] ci: update go unit tests (#2074)
This is an automated cherry-pick of #1983
/assign okozachenko1203
diff --git a/charts/charts_test.go b/charts/charts_test.go
index 1a59e29..233e6be 100644
--- a/charts/charts_test.go
+++ b/charts/charts_test.go
@@ -16,7 +16,6 @@
var (
KUBERNETES_VERSIONS = []string{
- "1.22.0",
"1.23.0",
"1.24.0",
"1.25.0",
@@ -59,10 +58,11 @@
opts := validator.Opts{
KubernetesVersion: version,
SkipKinds: map[string]struct{}{
- "CephBlockPool": {},
- "CephCluster": {},
- "CephFilesystem": {},
- "CephObjectStore": {},
+ "CephBlockPool": {},
+ "CephCluster": {},
+ "CephFilesystem": {},
+ "CephObjectStore": {},
+ "CephFilesystemSubVolumeGroup": {},
"apiextensions.k8s.io/v1/CustomResourceDefinition": {},
},
Strict: true,
@@ -78,6 +78,9 @@
if !file.IsDir() {
continue
}
+ if file.Name() == "patches" {
+ continue
+ }
t.Run(file.Name(), func(t *testing.T) {
chart, err := loader.LoadDir(file.Name())
@@ -92,7 +95,22 @@
t.Parallel()
- rel, err := client.Run(chart, map[string]interface{}{})
+ rel, err := client.Run(
+ chart,
+ // NOTE(okozachenko1203): loki helm chart default values doesn't work.
+ map[string]interface{}{
+ "loki": map[string]interface{}{
+ "storage": map[string]interface{}{
+ "bucketNames": map[string]string{
+ "chunks": "FIXME",
+ "ruler": "FIXME",
+ "admin": "FIXME",
+ },
+ },
+ "useTestSchema": true,
+ },
+ },
+ )
require.NoError(t, err)
manifests := io.NopCloser(strings.NewReader(rel.Manifest))