@GetMapping(value = "/configs")
    @Secured(action = ActionTypes.READ, signType = SignType.CONFIG)
    public List<ConfigInfoWrapper> getDataIds(@RequestParam("tenant") String tenant) {
        // check tenant
        ParamUtils.checkTenant(tenant);
        tenant = NamespaceUtil.processNamespaceParameter(tenant);
        return historyService.getConfigListByNamespace(tenant);
    }
@Test
    void testGetDataIds() throws Exception {
        
        ConfigInfoWrapper configInfoWrapper = new ConfigInfoWrapper();
        configInfoWrapper.setDataId("test");
        configInfoWrapper.setGroup("test");
        configInfoWrapper.setContent("test");
        List<ConfigInfoWrapper> configInfoWrappers = new ArrayList<>();
        configInfoWrappers.add(configInfoWrapper);
        when(historyService.getConfigListByNamespace("test")).thenReturn(configInfoWrappers);
        
        MockHttpServletRequestBuilder builder = MockMvcRequestBuilders.get(Constants.HISTORY_CONTROLLER_PATH + "/configs")
                .param("tenant", "test");
        
        String actualValue = mockmvc.perform(builder).andReturn().getResponse().getContentAsString();
        List resConfigInfoWrappers = JacksonUtils.toObj(actualValue, List.class);
        ConfigInfoWrapper resConfigInfoWrapper = JacksonUtils.toObj(JacksonUtils.toObj(actualValue).get(0).toString(),
                ConfigInfoWrapper.class);
        
        assertEquals(configInfoWrappers.size(), resConfigInfoWrappers.size());
        assertEquals(configInfoWrapper.getDataId(), resConfigInfoWrapper.getDataId());
        assertEquals(configInfoWrapper.getGroup(), resConfigInfoWrapper.getGroup());
        assertEquals(configInfoWrapper.getContent(), resConfigInfoWrapper.getContent());
        
    }