Intersmash / intersmash

Intersmash - Cloud-native testing with Java!
Apache License 2.0
5 stars 13 forks source link
cloud-testing hacktoberfest java openshift testing-tools

Intersmash - Cloud-native testing with Java

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.

Framework Design

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.

Components

There are three main components that make up the framework:

Properties

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.

Maven Dependencies

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>

Building Intersmash

JDK version

JDK-11 is the current version this project supports.

Build the project without running the tests

mvn clean install -DskipTests

Running the Intersmash testsuite

Note: to run the Intersmash testsuite Openshift and XTF properties files with corresponding configuration information are needed. See the Framework Design section above.

Project Modules

Supported 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.

Platforms

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.

Future goals

see the current milestone for a complete list of issues.

Issue tracking

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.

Contributing

Intersmash is an open source community project. We welcome participation and contributions. See Intersmash contributing guidelines.