@Operation(summary = "list", description = "list all latest configurations")
    @GetMapping("/latest")
    public ResponseEntity<List<ServiceConfigVO>> latest(@PathVariable Long clusterId) {
        return ResponseEntity.success(configService.latest(clusterId));
    }
@Test
    void latestReturnsLatestConfigurations() {
        Long clusterId = 1L;
        List<ServiceConfigVO> latestConfigs = Arrays.asList(new ServiceConfigVO(), new ServiceConfigVO());
        when(configService.latest(clusterId)).thenReturn(latestConfigs);

        ResponseEntity<List<ServiceConfigVO>> response = configController.latest(clusterId);

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