Closed dperaza4dustbit closed 1 month ago
Will try to figure out if I spot the issue with unit test
Working on fixing the testcases
as for unit-testing - let's either improve the util_test.go so it verifies objects at any level, or add this check:
https://github.com/kubesaw/ksctl/blob/d75821023d8faa2b97e2b01761f090c0d7c53551/pkg/cmd/generate/assertion_test.go#L169-L171
into
https://github.com/kubesaw/ksctl/blob/d75821023d8faa2b97e2b01761f090c0d7c53551/pkg/cmd/generate/assertion_test.go#L142-L143
because the assertObject
function is not called in the nstemplatetiers_test.go
but listObjects
is, so it would be verified automatically.
it looks good overall, just waiting for the updates of the unit tests #50 (comment)
Got it
as for unit-testing - let's either improve the util_test.go so it verifies objects at any level, or add this check:
because the
assertObject
function is not called in thenstemplatetiers_test.go
butlistObjects
is, so it would be verified automatically.
added assertions to listObject method, thanks for suggestion
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 69.59%. Comparing base (
ac3aaca
) to head (fd122c3
). Report is 1 commits behind head on master.
The creationTimestamp field not only pops up under TemplateTier metadata but also under template itself