Skip to content

Add unit tests for org.apache.texera.web.resource pure-logic helpers #5217

@Yicong-Huang

Description

@Yicong-Huang

Task Summary

amber/src/main/scala/org/apache/texera/web/resource/ has ~30 files of which ~7 ship with tests. A self-contained cluster of pure-logic helpers — no DB, no servlet container, no auth — can be covered in one PR:

  • EmailTemplate.scalauserRegistrationNotification admin / user branches, createRoleChangeTemplate; subject/content shape and the [deployment] suffix toggle off UserSystemConfig.appDomain.
  • dashboard/FulltextSearchQueryUtils.scalagetFullTextSearchFilter pgroonga / fallback branches and empty-input guards, getContainsFilter set-based OR, getDateFilter open-ended ranges and ParseException, getOperatorsFilter LIKE construction.
  • dashboard/hub/EntityTables.scalaBaseEntityTable / LikeTable / CloneTable / ViewCountTable dispatch maps for WORKFLOW and DATASET entity types.
  • HealthCheckResource.scala — single-method status map.
  • SuccessExecutionResult.scala — case-class defaults.

Out of scope (heavier mocking, follow-ups):

Task Type

  • Testing / QA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions