arquillian / arquillian-cube

Control (docker, kubernetes, openshift) containers in your tests with ease!
http://arquillian.org/arquillian-cube/
120 stars 98 forks source link

Arquillian Cube and data populators #570

Closed lordofthejars closed 7 years ago

lordofthejars commented 7 years ago
Issue Overview

Arquillian Cube can be really interesting to be used for end to end tests, integration tests or contract tests, since you can setup your testing environment on a docker-compose file (for example databases required by the service or other services).

The important point here is that sometimes before executing a test you want to clean (or not) a database , then populate it with some known data to provide a known state, and then execute the test.

Notice that this new module should be called populator and not persistence since you can even populate data to another service too. So the idea is to provide a populator API/SPI so other technologies can hook. For example I am thinking NoSQLUnit for NoSQL databases, DBUnit (and in long term APE) for SQL and RestAssured for services.

Expected Behaviour

Implement a programmatic API for this.

Current Behaviour
lordofthejars commented 7 years ago

Moved to APE, so we can close this issue in Cube project.