Description
Two functions in pkg/util/cluster.go lack unit test coverage:
IsClusterReady — checks whether a cluster's status has a Ready condition set to True
ClusterAccessCredentialChanged — detects whether access-related fields (APIEndpoint, InsecureSkipTLSVerification, ProxyURL, ProxyHeader) differ between two ClusterSpecs
Solution
Add unit tests following existing test patterns in cluster_test.go.
Description
Two functions in
pkg/util/cluster.golack unit test coverage:IsClusterReady— checks whether a cluster's status has aReadycondition set toTrueClusterAccessCredentialChanged— detects whether access-related fields (APIEndpoint, InsecureSkipTLSVerification, ProxyURL, ProxyHeader) differ between two ClusterSpecsSolution
Add unit tests following existing test patterns in
cluster_test.go.