Skip to content

test: add unit tests for IsClusterReady and ClusterAccessCredentialChanged in pkg/util/cluster.go #7676

Description

@Goutham-Annem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions