We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2bc3c commit e1b6604Copy full SHA for e1b6604
pkg/kiali/config_test.go
@@ -76,11 +76,13 @@ func (s *ConfigSuite) TestConfigParser_PreservesAbsolutePath() {
76
func (s *ConfigSuite) TestConfigParser_RejectsInvalidFile() {
77
// Use a non-existent file path
78
nonExistentFile := filepath.Join(s.tempDir, "non-existent.crt")
79
+ // Convert backslashes to forward slashes for TOML compatibility on Windows
80
+ nonExistentFileForTOML := filepath.ToSlash(nonExistentFile)
81
82
cfg, err := config.ReadToml([]byte(`
83
[toolset_configs.kiali]
84
url = "https://kiali.example/"
- certificate_authority = "` + nonExistentFile + `"
85
+ certificate_authority = "` + nonExistentFileForTOML + `"
86
`))
87
88
// Validate should reject invalid file path
0 commit comments