Skip to content

Add unit tests for Connector Configured status when TLS secret is missing #2477

@AryanP123

Description

@AryanP123

Add test case(s) to TestSite_CheckConnector in internal/kube/site/site_test.go.
When a Connector references spec.tlsCredentials but the secret is not in the profiles cache, CheckConnector should set Configured=False with a message like TLS credentials secret "my-tls" not found.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomerstestIssue or activity associated with test development and operation

Type

No type
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