Skip to content

Add unit tests for isWDSCluster and GetTargetNamespace#101

Closed
rishi-jat wants to merge 1 commit into
kubestellar:mainfrom
rishi-jat:add-discovery-unit-tests
Closed

Add unit tests for isWDSCluster and GetTargetNamespace#101
rishi-jat wants to merge 1 commit into
kubestellar:mainfrom
rishi-jat:add-discovery-unit-tests

Conversation

@rishi-jat
Copy link
Copy Markdown
Contributor

Adds table-driven unit tests for two core utility functions in pkg/cluster/discovery.go:

  • isWDSCluster verifies correct detection of WDS-named clusters.
  • GetTargetNamespace checks namespace defaulting behavior.

Signed-off-by: Rishi Jat <rishijat098@gmail.com>
@rishi-jat
Copy link
Copy Markdown
Contributor Author

/cc @Rupam-It

@gaurab-khanal
Copy link
Copy Markdown
Contributor

@rishi-jat I have already raised PR for this. #81

@rishi-jat
Copy link
Copy Markdown
Contributor Author

@gaurab-khanal Sorry I was now aware about you already raise a PR about this issue. Will closing this PR as @gaurab-khanal Did the work. /cc @Rupam-It

@rishi-jat rishi-jat closed this Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants