Skip to content

Moves other template test files to new location

Problem to solve

As described in #140 (closed) we're trying to simplify the template tests as the file in question is quite large.

Proposed solution

Decompose template_test.go into individual test files for each template. Separate helper functions into a new file.

What does this MR do?

This MR moves the remaining test files to a new subdirectory test/templates and renames them to match the templates being tested

  • deploymenttemplate_test.go --> ./templates/deployment_test.go
  • networkpolicytemplate_test.go --> ./templates/networkpolicy_test.go
  • workerdeploymenttemplate_test.go --> ./templates/workerdeployment_test.go

Merge request reports