The integration-tests for OSIAM.
You can run the integration-tests on your machine, you only need to install java, maven and docker, and configure docker.
The tests will fetch the snapshot dependencies from evolvis or you clone the
following repos and install them with mvn clean install
https://github.com/osiam/scim-schema
https://github.com/osiam/connector4java
https://github.com/osiam/auth-server
https://github.com/osiam/resource-server
https://github.com/osiam/addon-self-administration
https://github.com/osiam/addon-self-administration-plugin-api
https://github.com/osiam/examples/tree/master/addon-self-administration-plugin
https://github.com/osiam/addon-administration
The integration-tests use the docker-maven-plugin,
which utilizes docker-java.
In order to run the integration-tests, you need to ensure that your docker daemon
listens on the TCP port 2375
.
How exactly this works depends on your operating system, but
echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock' >> /etc/default/docker
is a good starting point. For further information, please refer to the docker-java README and the official Docker documentation.
To run the integration-tests against
postgres (default)
$ mvn clean verify
mysql
$ mvn clean verify -P mysql
To run the integration-tests in your IDE against the started containers
postgres (default)
$ mvn clean pre-integration-test
mysql
$ mvn clean pre-integration-test -P mysql
If you are on mac or want to run them in a VM, just checkout the OSIAM vagrant VM. It's pretty easy to setup. Just run the above mentioned command in the OSIAM vagrant VM and run the integration-tests against the VM.