tester

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

README

UI API Layer Acceptance tests

Overview

This project includes acceptance tests for a UI API Layer project.

Prerequisites

Use the following tools to set up the project:

Development

Install dependencies

This project uses dep as a dependency manager. To install all required dependencies, use the following command:

dep ensure -vendor-only
Run tests outside the cluster

To run acceptance tests outside the cluster, use this command to enable port forwarding for the Helm client:

kubectl port-forward $(kubectl get po -n kube-system | grep tiller |  awk '{print $1}') 44134:44134 -n kube-system

Run acceptance tests using the following command:

  • against the UI API Layer deployed on the local cluster:

    KUBE_CONFIG=/Users/${USER}/.kube/config go test ./... -tags=acceptance
    
  • against standalone UI API Layer deployed on the local host:

    KUBE_CONFIG=/Users/${USER}/.kube/config IS_LOCAL_CLUSTER=false GRAPHQL_ENDPOINT=http://localhost:3000/graphql go test ./... -tags=acceptance
    
  • against the UI API Layer deployed on the cluster with custom domain:

    KUBE_CONFIG=/Users/${USER}/.kube/config IS_LOCAL_CLUSTER=false DOMAIN=nightly.kyma.cx go test ./... -tags=acceptance
    
Verify the code

To check if the code is correct and you can push it, run the before-commit.sh script. It builds the application, runs tests, checks the status of the vendored libraries, runs the static code analysis, and ensures that the formatting of the code is correct.

Documentation

Index

Constants

View Source
const DefaultNamespace = "ui-api-acceptance"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL