- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for splitYamlFile (0.19 sec)
-
pkg/kube/inject/inject_test.go
client.RunAndWait(stop) // Split multi-part yaml documents. Input and output will have the same number of parts. inputYAMLs := splitYamlFile(inputFilePath, t) wantYAMLs := splitYamlFile(wantFilePath, t) for i := 0; i < len(inputYAMLs); i++ { t.Run(fmt.Sprintf("yamlPart[%d]", i), func(t *testing.T) { runWebhook(t, webhook, inputYAMLs[i], wantYAMLs[i], true) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 20:35:11 UTC 2024 - 34.1K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
} if err := os.WriteFile(filepath.Join("testdata", "inputs", fname+".mesh.gen.yaml"), []byte(meshdata), 0o644); err != nil { t.Fatal(err) } } } } } func splitYamlFile(yamlFile string, t *testing.T) [][]byte { t.Helper() yamlBytes := util.ReadFile(t, yamlFile) return splitYamlBytes(yamlBytes, t) } func splitYamlBytes(yaml []byte, t *testing.T) [][]byte { t.Helper()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1)