EtcdMetadataReport extends AbstractMetadataReport { String getNodeKey(BaseMetadataIdentifier identifier) { return toRootDir() + identifier.getUniqueKey(KeyTypeEnum.PATH); } EtcdMetadataReport(URL url); @Override String getServiceDefinition(MetadataIdentifier metadataIdentifier);  }
@Test public void testStoreConsumer() throws Exception { String version = "1.0.0"; String group = null; String application = "etc-metadata-report-consumer-test"; MetadataIdentifier consumerIdentifier = storeConsumer(etcdMetadataReport, TEST_SERVICE, version, group, application); CompletableFuture<GetResponse> response = etcdClientForTest.getKVClient().get(ByteSequence.from( etcdMetadataReport.getNodeKey(consumerIdentifier), StandardCharsets.UTF_8)); String fileContent = response.get().getKvs().get(0).getValue().toString(StandardCharsets.UTF_8); Assertions.assertNotNull(fileContent); Assertions.assertEquals(fileContent, "{\"paramConsumerTest\":\"etcdConsumer\"}"); }