use of io.scalecube.services.sut.GreetingServiceImpl in project scalecube by scalecube.
the class ServiceRemoteTest method test_services_contribute_to_cluster_metadata.
@Test
public void test_services_contribute_to_cluster_metadata() {
Map<String, String> tags = new HashMap<>();
tags.put("HOSTNAME", "host1");
Microservices ms = Microservices.builder().discovery(serviceEndpoint -> new ScalecubeServiceDiscovery().transport(cfg -> cfg.transportFactory(new WebsocketTransportFactory())).options(opts -> opts.metadata(serviceEndpoint))).transport(RSocketServiceTransport::new).tags(tags).services(new GreetingServiceImpl()).startAwait();
assertTrue(ms.serviceEndpoint().tags().containsKey("HOSTNAME"));
}
Aggregations