Intersmash is a Java library that makes it easy to automate the provisioning and execution of tests in cloud-native environments. It helps the user prototype and test complex interoperability scenarios on kubernetes compliant cloud-native environments and platforms, most notably OpenShift. (Other Kubernetes implementations will be supported in the future.)
Intersmash is designed with these principles.
For usage examples, see Getting Started.
Intersmash provides a set of annotations, APIs and application service contracts the developer uses to describe the test scenario, within the test class. This information is used by the framework to deploy the services and to manage their life-cycle orchestration directly from the test class. A curated list of service "provisioners" is provided to cover the most common use cases, for example provisioning the Kafka Operator, or a PostgreSql service via templates, or a s2i build and deploy a WildFly application. The full list of provided services can be found here.
There are three main components that make up the framework:
annotations: Intersmash annotations are used to declare the product components that make up the test scenario. These statements can be applied to the test class and its fields.
There are four annotations
applications: An Intersmash provided interface that describes the configuration and specific properties of a given service. For every supported product component there is a corresponding "application" interface class. The Framework's naming convention for these classes is ProductComponentNameApplication.java. (e.g. BootableJarOpenShiftApplication.java, ActiveMQOperatorApplication.java HelmChartOpenShiftApplication.java, ... etc) The interface provides default values for most of the service's configuration information. The user is required to create an implementation class of the interface and provide some select information. It is this user created implemented class that is declared in the annotations, @Service, @ServiceUrl, and @ServiceProvisioner.
provisioners: Classes that take care of deploying, undeploying, managing the life-cycle orchestration of services, and control the specific workflow that needs to be executed for the test scenario. The user has no direct interaction with these classes. See the Intersmash provisioning documentation to learn about supported services provisioners.
XTF is used by Intersmash to communicate with OpenShift. This tool provides a means to pass configuration properties from Intersmash to OpenShift. Intersmash also uses class, XTFConfig, internally. XTF supports four ways to provide properties. In priority order they are,
A table of properties Intersmash uses to configure and execute tests can be found here.
Two maven archives are needed to build and run with Intersmash.
<dependencies>
<!-- contains the Intersmash core annotations, contracts and APIs -->
<dependency>
<groupId>org.jboss.intersmash</groupId>
<artifactId>intersmash-core</artifactId>
</dependency>
<!-- provisioning implementations and components-->
<dependency>
<groupId>org.jboss.intersmash</groupId>
<artifactId>intersmash-provisioners</artifactId>
</dependency>
</dependencies>
JDK-11 is the current version this project supports.
Build the project without running the tests
mvn clean install -DskipTests
Note: to run the Intersmash testsuite Openshift and XTF properties files with corresponding configuration information are needed. See the Framework Design section above.
Run the testsuite against community deliverables, e.g.: Keycloak operator or WildFly images:
mvn test -pl testsuite/ -Pts.execution-profile.community
This is usually executed to test community images, deliverables and for application servers like WildFly - deployments built from community artifacts.
Run the testsuite against productised deliverables, e.g.: Red Hat Single Sign On operator or JBoss EAP images:
mvn test -pl testsuite/ -Pts.execution-profile.prod
This is usually executed to test productised images, deliverables and - for application servers like JBoss EAP - deployments built from community artifacts.
core
for selected services.Intersmash aims at providing tools for provisioning up to the latest stable release generally available. The following table is a best-effort tracker for the version that each supported service has been tested with. That being said, since each service could be provisioned via different means - like templates and operators - having their own release cadence - it could happen that a service version is provisioned which is not the one listed.
Feel free to submit an issue in such a case, Intersmash welcomes community contributions to keep the tooling up to date.
Service | Supported version | Notes |
---|---|---|
ActiveMQ Artemis | 1.0.15 | The one provided by the custom index image, i.e. quay.io/jbossqe-eap/intersmash-activemq-operator-catalog:v1.0.11 |
Red Hat AMQ Broker | 7.11.z | Or latest in the :7.11 tag image stream, see registry.redhat.io/amq7/amq-broker-init-rhel8 |
Infinispan | 15.0.5.Final | Or default provided by the default Infinispan Operator stable channel |
Red Hat Data Grid | 8.5.0.GA | Or default provided by the Red Hat DataGrid Operator stable channel |
Kafka provided by Strimzi | 3.6.0 | Provided by the Strimzi Operator stable channel |
Red Hat AMQ Streams | 3.6.0.redhat-00005 | Or default, as provided by the Red Hat AMQ Streams Operator stable channel |
Keycloak | 24.0.3 | Or default, as provided by default by the Keycloak Operator fast channel |
Red Hat Build of keycloak (RHBK) | 24.0.3.redhat-00004 | Or latest in the :24 tag image stream, see registry.redhat.io/rhbk/keycloak-rhel9 |
Red Hat SSO - DEPRECATED | 7.6.z | The latest in the :7.6 tag image stream, see registry.redhat.io/rh-sso-7/sso76-openshift-rhel8:7.6 |
WildFly | 32.0.0.Final | |
Red Hat JBoss EAP 8 | JBoss EAP 8.0.x (and XP 5.x) | |
Red Hat JBoss EAP 7 | JBoss EAP 7.4.z (and XP 4.z) | |
Hyperfoil | 0.24.2 |
Since multiple deliverables can be bound to a given service version, e.g.: container images, operator CRs, or Helm Charts, more information can be found in the provisioners' documentation, or in the resources there linked.
Intersmash is designed to allow executions on different Kubernetes compliant platforms. At the moment we are fully focused on supporting provisioning implementation for OpenShift, running on Linux support. We welcome community contributions to other Kubernetes implementations.
see the current milestone for a complete list of issues.
To tack or report an issue see GitHub issue.
When reporting an issue please choose the proper template and fill it with the required information.
Intersmash is an open source community project. We welcome participation and contributions. See Intersmash contributing guidelines.