Project: springxd
Issue XD-2373: Distributed test should verify container shutdown
After each test execution, the containers are shut down via: {code} @After public void after() {	distributedTestSupport.shutdownContainers();	distributedTestSupport.ensureTemplate().streamOperations().destroyAll(); } ... public void shutdownContainers() {	for (Iterator>> iterator =	mapPidContainers.entrySet().iterator(); iterator.hasNext();) {	iterator.next().getValue().close();	iterator.remove();	} } {code} The problem is that {{close()}} guarantees that the process is shut down, but it does not guarantee that the container is no longer registered in ZooKeeper. The cleanup procedure should verify that no containers appear in the output of the {{runtime containers}} shell command. This will prevent the next test from deploying to a non-existent container.
Story points: 2