Skip to content

Instantly share code, notes, and snippets.

@pbochynski
Last active September 23, 2021 14:27
Show Gist options
  • Save pbochynski/e70b9f9e20ff874ef309e1199bc0db9d to your computer and use it in GitHub Desktop.
Save pbochynski/e70b9f9e20ff874ef309e1199bc0db9d to your computer and use it in GitHub Desktop.
Testing Kyma 2.0

Testing Kyma 2.0 (CLI + reconciler + fast-integration)

  1. Prerequisites

    Checkout github.com/kyma-project/cli and github.com/kyma-project/kyma repositories to $GOPATH/src/github.com/kyma-project folder.

    Install node.js and install mocha globally:

    npm install --global mocha
    
  2. Install istioctl

    export ISTIO_VERSION=1.11.2
    curl -L https://istio.io/downloadIstio | sh -
    export ISTIOCTL_PATH=$PWD/$ISTIO_VERSION/bin/istioctl
    
  3. Build Kyma CLI

    cd $GOPATH/src/github.com/kyma-project/cli
    make build-darwin
    
  4. Provision k3d cluster

    ./bin/kyma-darwin provision k3d
    
  5. Install Kyma

    ./bin/kyma-darwin alpha deploy
    
  6. Build tests

    cd $GOPATH/src/github.com/kyma-project/kyma/tests/fast-integration
    npm install
    
  7. Run tests

    mocha test/1-commerce-mock.js
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment