Skip to content

Commit e1b6604

Browse files
committed
Update test
Signed-off-by: josunect <[email protected]>
1 parent bf2bc3c commit e1b6604

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/kiali/config_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ func (s *ConfigSuite) TestConfigParser_PreservesAbsolutePath() {
7676
func (s *ConfigSuite) TestConfigParser_RejectsInvalidFile() {
7777
// Use a non-existent file path
7878
nonExistentFile := filepath.Join(s.tempDir, "non-existent.crt")
79+
// Convert backslashes to forward slashes for TOML compatibility on Windows
80+
nonExistentFileForTOML := filepath.ToSlash(nonExistentFile)
7981

8082
cfg, err := config.ReadToml([]byte(`
8183
[toolset_configs.kiali]
8284
url = "https://kiali.example/"
83-
certificate_authority = "` + nonExistentFile + `"
85+
certificate_authority = "` + nonExistentFileForTOML + `"
8486
`))
8587

8688
// Validate should reject invalid file path

0 commit comments

Comments
 (0)