Skip to content

woglinde/connector4java-integration-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

connector4java-integration-tests Circle CI

The integration-tests for OSIAM.

Install

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

Configure Docker

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.

Run

To run the integration-tests against

postgres (default)

$ mvn clean verify

mysql

$ mvn clean verify -P mysql

Run in your IDE

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.

About

The integration tests for the OSIAM connector4java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 68.8%
  • Groovy 25.5%
  • HTML 4.9%
  • Other 0.8%