Skip to content

add unit test coverage for KubernetesClient.generatePodName #6327

Description

@mengw15

Task Summary

computing-unit-managing-service/src/main/scala/org/apache/texera/service/util/KubernetesClient.scala (0% coverage) has a pure string-building helper that needs no cluster: generatePodName(cuid). Cover it; the client-backed methods (getPodByName, getPodMetrics, createPod, …) and generatePodURI (which embeds KubernetesConfig values) need a fabric8 mock / config control and are out of scope here.

Behavior to cover

  • generatePodName(42) == "computing-unit-42"
  • generatePodName(0) == "computing-unit-0" (boundary)

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions