use of com.alibaba.nacos.core.remote.control.MonitorKey in project nacos by alibaba.
the class ConfigPublishGroupKeyParserTest method testParse.
@Test
public void testParse() {
ConfigPublishRequest configPublishRequest = new ConfigPublishRequest();
configPublishRequest.setContent("content");
configPublishRequest.setRequestId("requestId");
configPublishRequest.setGroup("group");
configPublishRequest.setCasMd5("md5");
configPublishRequest.setDataId("dataId");
configPublishRequest.setTenant("tenant");
MonitorKey parse = configPublishGroupKeyParser.parse(configPublishRequest);
Assert.assertEquals("dataId+group+tenant", parse.getKey());
}
use of com.alibaba.nacos.core.remote.control.MonitorKey in project nacos by alibaba.
the class ConfigPublishGroupParserTest method testParse.
@Test
public void testParse() {
ConfigPublishRequest configPublishRequest = new ConfigPublishRequest();
configPublishRequest.setContent("content");
configPublishRequest.setRequestId("requestId");
configPublishRequest.setGroup("group");
configPublishRequest.setCasMd5("md5");
configPublishRequest.setDataId("dataId");
configPublishRequest.setTenant("tenant");
MonitorKey parse = configPublishGroupParser.parse(configPublishRequest);
Assert.assertEquals("group", parse.getKey());
}
use of com.alibaba.nacos.core.remote.control.MonitorKey in project nacos by alibaba.
the class ConfigQueryGroupKeyParserTest method testParse.
@Test
public void testParse() {
ConfigQueryRequest configQueryRequest = new ConfigQueryRequest();
configQueryRequest.setRequestId("requestId");
configQueryRequest.setGroup("group");
configQueryRequest.setDataId("dataId");
configQueryRequest.setTenant("tenant");
MonitorKey parse = configQueryGroupKeyParser.parse(configQueryRequest);
Assert.assertEquals("dataId+group+tenant", parse.getKey());
}
use of com.alibaba.nacos.core.remote.control.MonitorKey in project nacos by alibaba.
the class ConfigQueryGroupParserTest method testParse.
@Test
public void testParse() {
ConfigQueryRequest configQueryRequest = new ConfigQueryRequest();
configQueryRequest.setRequestId("requestId");
configQueryRequest.setGroup("group");
configQueryRequest.setDataId("dataId");
configQueryRequest.setTenant("tenant");
MonitorKey parse = configQueryGroupParser.parse(configQueryRequest);
Assert.assertEquals("group", parse.getKey());
}
Aggregations