validate/application and validate/clsuters tests use huge ApplicationStatus and ClustersStatus expected structs. Convert them to golden yaml files to make it easier to maintain the tests.
Example structs:
|
expected := &report.ClustersStatus{ |
(550 lines)
|
expectedStatus := &report.ApplicationStatus{ |
(186 lines)
The yaml output will be less less than half the size and easier to edit.
The values come from resources in pkg/testdata/. When we update the resources we need to update the golden files.
validate/application and validate/clsuters tests use huge ApplicationStatus and ClustersStatus expected structs. Convert them to golden yaml files to make it easier to maintain the tests.
Example structs:
ramenctl/pkg/validate/clusters/command_test.go
Line 68 in 9c163f5
ramenctl/pkg/validate/application/command_test.go
Line 115 in 9c163f5
The yaml output will be less less than half the size and easier to edit.
The values come from resources in pkg/testdata/. When we update the resources we need to update the golden files.