@Operation(summary = "list", description = "List jobs")
    @Parameters({
        @Parameter(in = ParameterIn.QUERY, name = "pageNum", schema = @Schema(type = "integer", defaultValue = "1")),
        @Parameter(in = ParameterIn.QUERY, name = "pageSize", schema = @Schema(type = "integer", defaultValue = "10")),
        @Parameter(in = ParameterIn.QUERY, name = "orderBy", schema = @Schema(type = "string", defaultValue = "id")),
        @Parameter(
                in = ParameterIn.QUERY,
                name = "sort",
                description = "asc/desc",
                schema = @Schema(type = "string", defaultValue = "asc"))
    })
    @GetMapping
    public ResponseEntity<PageVO<JobVO>> list(@PathVariable Long clusterId) {
        return ResponseEntity.success(jobService.list(clusterId));
    }
@Test
    void listReturnsAllJobs() {
        Long clusterId = 1L;
        PageVO<JobVO> jobs = PageVO.of(Arrays.asList(new JobVO(), new JobVO()), 2L);
        when(jobService.list(clusterId)).thenReturn(jobs);

        ResponseEntity<PageVO<JobVO>> response = jobController.list(clusterId);

        assertTrue(response.isSuccess());
        assertEquals(jobs, response.getData());
    }