Skip to content

corinnekrych/pushee-integration-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aerogear Unified Push server integration tests

Idea

Push EE is an application running on top of an application server. Arquillian can deploy an app, so the remaining workload is to figure out how to replace curl in an convenient way from Java.

Integration tests will be kept separated until we release a stable version of Groovy and Spock runner. Then, they will be moved into standard layout and executed via failsafe plugin in integration-tests phase.

Description of the testing approach

I tried following approaches:

  • Manual using Apache HttpClient

  • DSL API

  • JSONObject to work with JSON

  • GSON serialization

  • REST-Assured framework

In the end it seems that Groovy is the most readable while not impacting test infrastructure that heavily.

Requirements

  1. Get Arquillian Spock Testrunner and install it into your local Maven repository from https://github.com/kpiwko/arquillian-testrunner-spock/tree/spock-0.7-update

  2. Get ShrinkWrap Maven Resolver with fixed SHRINKRES-134 and install it into your local Maven repository from https://github.com/shrinkwrap/resolver

  3. Fetch Unified push server code and put it into same directory and integration tests, e.g.

    workdir/pushee
    workdir/pushee-integration-tests

    Or, you can specify path to Unified Push server pom.xml file via -Dunified.push.server.location=/path/to/pom.xml

  4. By default, it uses JBoss AS 7.1.1. Run mvn clean verify

How to run against JBoss EAP 6

  1. Get JBoss EAP 6.0.1 zip and extract it somewhere

  2. Set Maven Enterprise repository in your settings.xml (https://maven.repository.redhat.com/techpreview/all/)

  3. Run mvn clean verify -Peap601-managed -DjbossHome=/path/to/eap/directory

How to develop new tests

To speed up tests development, following tricks are advised:

  1. Run container in remote mode

  2. Deploy application on your own and replace @ArquillianResource URL with a static URL and comment out @Deployment method

TODO

About

Integration tests for Unified Push Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages