osde2e

package module
v0.0.0-...-93e563e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

README

osde2e

This project checks OSD releases by starting an OSD cluster, verifying operation through testing, and reporting test results to TestGrid.

Running

These steps run the osde2e test suite. All commands should be run from the root of this repo.

A properly setup Go workspace and Glide are required.

  1. Get token to launch OSD clusters here.

  2. Install dependencies:

    glide install --strip-vendor
    
  3. Set UHC_TOKEN environment variable:

    export UHC_TOKEN=<token from step 1>
    
  4. Run tests:

    go test -v . -test.timeout 2h
    

Configuring

osde2e is configured using a set of environment variables. The options available are found here.

Common ones are:

  • NO_DESTROY: don't delete clusters after testing
  • CLUSTER_ID: test an existing cluster specified by ID

Writing tests

Documentation on writing tests can be found here.

Documentation

Overview

Package osde2e launches an OSD cluster, performs tests on it, destroys it, and reports results to TestGrid.

Index

Constants

This section is empty.

Variables

View Source
var OSD *osd.OSD

OSD is used to deploy and manage clusters.

Functions

func ChooseVersions

func ChooseVersions(cfg *config.Config, osd *osd.OSD) (err error)

ChooseVersions sets versions in cfg if not set based on defaults and upgrade options. If a release stream is set for an upgrade the previous available version is used and it's image is used for upgrade.

func RunE2ETests

func RunE2ETests(t *testing.T, cfg *config.Config)

RunE2ETests runs the osde2e test suite using the given cfg.

Types

This section is empty.

Directories

Path Synopsis
cmd
pkg
config
Package config provides the configuration for tests run as part of the osde2e suite.
Package config provides the configuration for tests run as part of the osde2e suite.
helper
Package helper provides utilities to assist with osde2e testing.
Package helper provides utilities to assist with osde2e testing.
osd
Package osd allows for the creation and management of OSD clusters.
Package osd allows for the creation and management of OSD clusters.
runner
Package runner provides a wrapper for the OpenShift extended test suite image.
Package runner provides a wrapper for the OpenShift extended test suite image.
testgrid
Package testgrid provides a client for reporting build results to a TestGrid instance.
Package testgrid provides a client for reporting build results to a TestGrid instance.
upgrade
Package upgrade provides utilities to per
Package upgrade provides utilities to per
test
openshift
Package openshift runs the OpenShift extended test suite.
Package openshift runs the OpenShift extended test suite.
state
Package state retrieves the current state of the cluster for debug purposes.
Package state retrieves the current state of the cluster for debug purposes.
verify
Package verify provides tests that validate the operation of an OSD cluster.
Package verify provides tests that validate the operation of an OSD cluster.

Jump to

Keyboard shortcuts

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