kiegroup/kie-cloud-tests

Name: kie-cloud-tests

Owner: KIE (Drools, OptaPlanner and jBPM)

Description: Cloud (OpenShift) integration tests for KIE projects.

Created: 2017-07-13 11:21:25.0

Updated: 2018-05-23 10:14:01.0

Pushed: 2018-05-24 07:49:59.0

Homepage: null

Size: 728

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

kie-cloud-tests

Cloud (OpenShift) integration tests for KIE projects.

Tests currently cover just Kie deployments deployed on OpenShift.

Test execution

How to run the tests on OpenShift:

  1. Start OpenShift - You can use any OpenShift instance, for example OpenShift started by oc cluster up
  2. Prepare your GIT provider (for example install and start GitLab). You can skip this point and use GitHub account.
  3. Run tests using the command `mvn clean install -Popenshift <specific-params>`

The following table lists all currently required and supported parameters:

OpenShift properties

Can be found in framework-openshift, class org.kie.cloud.openshift.constants.OpenShiftConstants

| | Default value | Meaning | | ————————– | ————– | ————————————————————- | | openshift.master.url | | URL pointing to OpenShift, for example https://127.0.0.1:8443 | | openshift.username | user | Username for logging into OpenShift | | openshift.password | redhat | Password for logging into OpenShift | | openshift.namespace.prefix | | Prefix of Openshift project name | | kie.image.streams | | URL pointing to file with image stream definitions | | kie.app.secret | | URL pointing to file with secrets | | kie.app.template | | URL pointing to file with Kie deployments template | | kie.app.name | myapp | Application name used as prefix for Kie deployments |

GIT provider properties

Choose one GIT provider. Can be found in framework-git, class org.kie.cloud.git.constants.GitConstants

GitLab

| | Value | Meaning | | ——————- | —— | ————————————- | | git.provider | GitLab | | | gitlab.url | | Url pointing to GitLab instance | | gitlab.username | | Username for logging into GitLab | | gitlab.password | | Password for logging into GitLab |

GitHub

| | Value | Meaning | | ——————- | —— | ————————————- | | git.provider | GitHub | | | github.username | | Username for logging into GitHub | | github.password | | Password for logging into GitHub |

Maven properties

Can be found in framework-maven, class org.kie.cloud.maven.constants.MavenConstants

| | Default value | Meaning | | ——————– | ————– | ——————————————————————– | | maven.repo.url | | URL pointing to remote Maven repository accepting snapshot artifacts | | maven.repo.username | | Username for remote Maven repository | | maven.repo.password | | Password for remote Maven repository |

Deployment properties

Properties required for configuration of specific deployments.

Can be found in framework-cloud-api, class org.kie.cloud.api.deployment.constants.DeploymentConstants

| | Default value | Meaning | | ———————- | ————— | ——————– | | org.kie.server.user | yoda | Kie server user | | org.kie.server.pwd | usetheforce123@ | Kie server password | | org.kie.workbench.user | adminUser | Workbench user | | org.kie.workbench.pwd | adminUser1! | Workbench password |

Manual template installation

Here you can find steps for installing and initializing Kie template to any OpenShift instance.

  1. Install oc tool (OpenShift client).
  2.  to log into OpenShift instance (in this case running locally).
    
  3. te a new project where all resources and deployments will be placed.
    
  4. te application secrets.
    
  5. te image streams in your project. Replace "Image stream URL" with URL or file path to a file containing image streams.
    
  6. ess the template, replacing parameters with specific values, and create all resources defined there in OpenShift project.
    

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.