Remove minecraft version check from chart plugin tests.

This commit is contained in:
jregan
2019-10-12 12:52:36 -07:00
parent 1756765dbc
commit 72d9b4cbca
3 changed files with 27 additions and 9 deletions

View File

@@ -196,6 +196,11 @@ func hint(a, b string) string {
func (th *KustTestHarness) AssertActualEqualsExpected(
m resmap.ResMap, expected string) {
th.AssertActualEqualsExpectedWithTweak(m, nil, expected)
}
func (th *KustTestHarness) AssertActualEqualsExpectedWithTweak(
m resmap.ResMap, tweaker func([]byte) []byte, expected string) {
if m == nil {
th.t.Fatalf("Map should not be nil.")
}
@@ -208,6 +213,9 @@ func (th *KustTestHarness) AssertActualEqualsExpected(
if err != nil {
th.t.Fatalf("Unexpected err: %v", err)
}
if tweaker != nil {
actual = tweaker(actual)
}
if string(actual) != expected {
th.reportDiffAndFail(actual, expected)
}