@@ -53,6 +53,14 @@ public MicrocksContainersEnsemble(String image) {
5353 this (Network .newNetwork (), image );
5454 }
5555
56+ /**
57+ * Build a new MicrocksContainersEnsemble with its base container full image name.
58+ * @param image This image must be compatible with quay.io/microcks/microcks-uber image.
59+ */
60+ public MicrocksContainersEnsemble (DockerImageName image ) {
61+ this (Network .newNetwork (), image );
62+ }
63+
5664 /**
5765 * Build a new MicrocksContainersEnsemble with a pre-existing network and with its base container full image name.
5866 * @param network The network to attach ensemble containers to.
@@ -98,6 +106,19 @@ public MicrocksContainersEnsemble withPostman(String image) {
98106 return this ;
99107 }
100108
109+ /**
110+ * Enable the Postman runtime container with provided container image.
111+ * @param image This image must be compatible with quay.io/microcks/microcks-postman-runtime image.
112+ * @return self
113+ */
114+ public MicrocksContainersEnsemble withPostman (DockerImageName image ) {
115+ this .postman = new GenericContainer <>(image )
116+ .withNetwork (network )
117+ .withNetworkAliases ("postman" )
118+ .waitingFor (Wait .forLogMessage (".*postman-runtime wrapper listening on port.*" , 1 ));
119+ return this ;
120+ }
121+
101122 /**
102123 * Enable the Async Feature container with default container image (deduced from Microcks main one).
103124 * @return self
@@ -120,6 +141,16 @@ public MicrocksContainersEnsemble withAsyncFeature(String image) {
120141 return this ;
121142 }
122143
144+ /**
145+ * Enable the Async Feature container with provided container image.
146+ * @param image This image must be compatible with quay.io/microcks/microcks-uber-async-minion image.
147+ * @return self
148+ */
149+ public MicrocksContainersEnsemble withAsyncFeature (DockerImageName image ) {
150+ this .asyncMinion = new MicrocksAsyncMinionContainer (network , image , microcks );
151+ return this ;
152+ }
153+
123154 /**
124155 * Once the Async Feature is enabled, connects to a Kafka broker.
125156 * @param connection Connection details to a Kafka broker.
0 commit comments