Integration tests
Prerequisites for running integration tests on local CES:
- Local Cloudogu EcoSystem with UserManagement, Nexus and SCM dogu.
Preparation:
- Install Baseline, Nexus and SCM manager in EcoSystem and let them become healthy.
-
Create SCM repositories
- Check out the repository locally: https://ecosystem.cloudogu.com/scm/repo/baseline/spring-petclinic/readme
- Create a repository in SCM Manager and push the checked out repository there:
demo/spring-petclinic
. - Create a repository in the SCM manager and push the checked out repository into it:
demo/spring-petclinic-clone
.
-
Execute command:
FQDN=192.168.56.2 CES_USERNAME=admin CES_PASSWORD=admin ./integrationTests/initData/http/scm-repos/setupRepositories.sh
- Access data must be adapted if necessary
-
Execute command:
cd integrationTests/initData/http && FQDN=192.168.56.2 CES_USERNAME=admin CES_PASSWORD=admin ./maven-releases/addMavenReleases.sh
- Access data must be adapted if necessary
-
Go to EcoSystem and execute commands
etcdctl set /config/baseline/groups/readers "baselineReaders"
etcdctl set /config/baseline/groups/editors "baselineEditors"
etcdctl set /config/baseline/groups/admins "baselineAdmins"
docker restart baseline
Execution
The tests can now be started with cd integrationTests && yarn install && yarn cypress open
.
Notes:
- The Cypress browser must have "German (de-DE)" installed and selected as the language for the tests to run.
Translated with www.DeepL.com/Translator (free version)