Git Product home page Git Product logo

che-e2e-tests's Introduction

Che end-to-end tests

Che end-to-end tests verify capabilities of che-starter and Che IDE.

Prerequisites

  • Running Che server on an OpenShift with properly set up Che server. That means the Che server is running with configuration compatible with the runtime configuration of the running Che starter
  • Che starter - It is not necessary having it running - if you don't specify any URL where Che starter is available, then it will be automatically cloned from GH and started.

Test execution

Run mvn clean verify with arguments listed below to run all tests.

Execution arguments

  • preserveWorkspace - optional, default false; set to true if you want to keep workspace after tests (for further manual work)
  • cheStarterURL - required; URL of Che starter which is called to handle Che
  • openShiftMasterURL - required; URL of OpenShift master which is passed to Che starter
  • openShiftToken - required if keycloakToken not present; token to authenticate to OpenShift
  • keycloakToken - required if openShiftToken not present; token to authenticate via keycloak
  • openShiftNamespace - optional, default 'eclipse-che'; namespace on OpenShift where Che is running

Alternatively, you can run tests against an existing Che workspace using its URL

  • cheWorkspaceUrl - required, URL of existing and running Che workspace
  • osioUsername - optional; required if workspace use authentication in front of it
  • osioPassword - optional; required if workspace use authentication in front of it

All before-mentioned properties are possible to set using arquillian.xml file. To do so, use an extension part with the qualifier che.:

<?xml version="1.0" encoding="UTF-8"?>
<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://jboss.org/schema/arquillian"
    xsi:schemaLocation="http://jboss.org/schema/arquillian
    http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

  <extension qualifier="che">
    <property name="openShiftToken">youropenshifttoken</property>
    <property name="openShiftMasterURL">https://your.openshift.master.url</property>
    <property name="openShiftNamespace">your-che-namespace</property>
    ...
  </extension>
  ...
</arquillian>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.