Address kyaml windows compatibility issues

This commit is contained in:
Phillip Wittrock
2020-05-19 09:24:22 -07:00
parent 765a4888df
commit f17cec0b3f
10 changed files with 70 additions and 33 deletions

View File

@@ -5,6 +5,8 @@ package kio_test
import (
"bytes"
"fmt"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
@@ -68,15 +70,15 @@ spec:
t.FailNow()
}
if !assert.Equal(t, `
if !assert.Equal(t, fmt.Sprintf(`
├── bar-package
│   └── [f2.yaml] Deployment bar
└── foo-package
├── [f1.yaml] Deployment default/foo
├── [f1.yaml] Service default/foo
└── foo-package/3
└── foo-package%s3
└── [f3.yaml] Deployment default/foo
`, out.String()) {
`, string(filepath.Separator)), out.String()) {
t.FailNow()
}
}