This tooling should be able to store heap dump in case that java application in the container failed for example for OOME.
Thinking of of this tooling should be general that it will allow to store any required file from the container in case that such a test fails. One of naive ideas would be to mark such a test by special annotation which would store (or search file based on pattern) in given pods (specified by pattern as well). Probably something like:
@StoreFilesFromPod(containerName=".*myapp.*", fileName=".*hprof.*", path="/home/jboss")
@Test
public void myTest() {...}
This tooling should be able to store heap dump in case that java application in the container failed for example for OOME.
Thinking of of this tooling should be general that it will allow to store any required file from the container in case that such a test fails. One of naive ideas would be to mark such a test by special annotation which would store (or search file based on pattern) in given pods (specified by pattern as well). Probably something like: