|
| 1 | +--- |
| 2 | +date: 2018-02-02 |
| 3 | +author: lordofthejars |
| 4 | +--- |
| 5 | + |
| 6 | +p. We are delighted to announce a new version of Arquillian Cube 1.14.0 with a bunch of awesome features and bug fixes. |
| 7 | + |
| 8 | +h3. What's new |
| 9 | + |
| 10 | +p. <i class="icon-star"></i> **Istio Support** |
| 11 | + |
| 12 | +p. We have added Istio support so you can annotate your class with @@IstioResource@ to apply an Istio resource. Alternatively, if you prefer using programmatic way we have provided @IstioAssistant@. To use it you need to import following dependency: |
| 13 | + |
| 14 | +bc(prettify).. <dependency> |
| 15 | + <groupId>org.arquillian.cube</groupId> |
| 16 | + <artifactId>arquillian-cube-istio-kubernetes</artifactId> |
| 17 | + <version>${version}</version> |
| 18 | + <scope>test</scope> |
| 19 | +</dependency> |
| 20 | + |
| 21 | +p. Same dependency can be used either with Kubernetes or OpenShift. |
| 22 | + |
| 23 | +p. "Here":https://github.com/arquillian/arquillian-cube/tree/master/openshift/ftest-istio-openshift you can see a full example. |
| 24 | + |
| 25 | +p. <i class="icon-star"></i> **Allow OpenShift Template to use resources on classpath** |
| 26 | + |
| 27 | +p. You can define OpenShift Templates as classpath resources using @classpath:@ protocol. @@Template(url = "classpath:hello-template.yaml")@ |
| 28 | + |
| 29 | +p. <i class="icon-star"></i> **Create OpenShift Template DSL for OpenShiftAssistant** |
| 30 | + |
| 31 | +p. We have added a new capability to @OpenShiftAssistant@ so you can apply OpenShift Templates programmatically. |
| 32 | + |
| 33 | +bc(prettify).. openShiftAssistant |
| 34 | + .usingTemplate(getClass().getClassLoader().getResource("hello-template.yaml")) |
| 35 | + .parameter("RESPONSE", "Hello from Arquillian Template") |
| 36 | +.deploy(); |
| 37 | + |
| 38 | +p. You can see a full example at "OpenShiftAssistant Template creation":https://github.com/arquillian/arquillian-cube/tree/master/openshift/ftest-openshift-assistant-template |
| 39 | + |
| 40 | +p. <i class="icon-star"></i> **Add @@Template@ annotation in test method scope** |
| 41 | + |
| 42 | +p. Now you can use @@Template@ at the method level, so the template is applied before executing the test method and everything applied from that template removed after the test is finished. |
| 43 | + |
| 44 | +p. <i class="icon-star"></i> **Simplify dependencies for standalone mode** |
| 45 | + |
| 46 | +p. With this version we have added three new dependencies which simplify the usage of Cube. Since almost all tests written in Cube are using @arquillian-standalone@ mode, instead of having to define both @arquillian-standalone@ and @arquillian-cube@, we created a starter dependency which registers both. |
| 47 | + |
| 48 | +p. In case of using Cube Docker: |
| 49 | + |
| 50 | +bc(prettify).. <dependency> |
| 51 | + <groupId>org.arquillian.cube</groupId> |
| 52 | + <artifactId>arquillian-cube-docker-starter</artifactId> |
| 53 | + <scope>test</scope> |
| 54 | +</dependency> |
| 55 | + |
| 56 | +p. In case of using Cube Kubernetes: |
| 57 | + |
| 58 | +bc(prettify).. <dependency> |
| 59 | + <groupId>org.arquillian.cube</groupId> |
| 60 | + <artifactId>arquillian-cube-kubernetes-starter</artifactId> |
| 61 | + <scope>test</scope> |
| 62 | +</dependency> |
| 63 | + |
| 64 | +p. In case of using Cube OpenShift: |
| 65 | + |
| 66 | +bc(prettify).. <dependency> |
| 67 | + <groupId>org.arquillian.cube</groupId> |
| 68 | + <artifactId>arquillian-cube-openshift-starter</artifactId> |
| 69 | + <scope>test</scope> |
| 70 | +</dependency> |
0 commit comments