Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: remove unnecessary ktemplate test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanGalloway committed Feb 1, 2022
1 parent c1d1ed3 commit 79747e4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/phases/templateoperator/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,4 @@ func Test(p *platform.Platform, test *console.TestResults) {
return
}
test.Passf(Name, "template-operator is ready")
TestKommonsTemplate(p, test)
}

func TestKommonsTemplate(platform *platform.Platform, test *console.TestResults) {
testName := "kommons-template"

templateResult, err := platform.TemplateText(`{{ kget "cm/quack/quack-config" "data.domain" }}`)
if err != nil {
test.Failf(testName, "failed to template: %v", err)
}
if templateResult != platform.Domain {
test.Failf(testName, "expected templated value to equal %s, got %s", platform.Domain, templateResult)
} else {
test.Passf(testName, "kget pulled cm/quack/quack-config successfully")
}
}

0 comments on commit 79747e4

Please sign in to comment.