Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-13196

Infinispan Container Dependency

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 12.1.7.Final
    • 13.0.0.C2
    • Server
    • None

    Description

      Make the Infinispan Generic container usable with test containers out of the box.

      Today the test containers image we use in our tests and based on the infinispan version being shipped is not usable out of the box. the integration is done using junit 4 and junit 5.

      Quarkus tests uses a junit 5 integration where providing a test resource we can start and stop a test container that will be available during the test lifecycle.

      https://github.com/quarkusio/quarkus-quickstarts/blob/main/infinispan-client-quickstart/src/test/java/org/acme/infinispan/client/CacheResource.java

       

      https://github.com/quarkusio/quarkus-quickstarts/blob/main/infinispan-client-quickstart/src/test/java/org/acme/infinispan/client/InfinispanGreetingResourceTest.java

       

      If we export our test container in a jar, we can also provide in the infinispan extension for quarkus a InfinispanResource that will be available for testing without defining each time this CacheResource and providing by default the version of Infinispan supported by Quarkus. On top of that, Infinispan Dev Services is based on test containers, so providing our test container in a jar would make it possible to integrate the correct infinispan version as well.

      The purpose of this enhancement is to have a way to use our test container without our junit 4 or 5 integration, but in a standalone jar that can be integrated somewhere else.

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            karestig@redhat.com Katia Aresti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: