Skip to content

Instantly share code, notes, and snippets.

@bobmcwhirter
Created November 3, 2015 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobmcwhirter/809c532c11acca55ae0c to your computer and use it in GitHub Desktop.
Save bobmcwhirter/809c532c11acca55ae0c to your computer and use it in GitHub Desktop.
@Test
public void testCanFindKubePing() throws Exception {
Container container = new Container();
container.fraction(new JGroupsFraction()
.defaultChannel("swarm-jgroups")
.channel("swarm-jgroups", (c) -> {
c.stack("udp");
})
.stack("udp", (s) -> {
s.transport("UDP", (t) -> {
t.socketBinding("jgroups-udp");
});
s.protocol("openshift.KUBE_PING");
}));
container.start().stop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment