e2e/

directory
v0.0.0-...-58e0132 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: Apache-2.0

README

Overview

This e2e tests provide a mechanism to validate OpenShift/machine-API conformance user stories regardless of the implementation details.

Different testing suites with different primary purposes can be run here, e.g UX expectations, performance expectations, etc.

This e2e suites must run against any repo which might break the e2e holistic expected behaviour of the system related in any manner to the machine API domain:

https://github.com/openshift/machine-api-operator

https://github.com/openshift/cluster-autoscaler-operator

https://github.com/openshift/cluster-api-provider-aws

https://github.com/openshift/cluster-api-provider-libvirt

https://github.com/openshift/autoscaler

Goals

  • Validate Openshift/machine-API conformance user stories regardless of the implementation details

  • Ensure consistent and reliable behavior of the system related in any manner to the machine API domain

  • Provide a reusable solution across any repo which might break the holistic expected behaviour of the system

  • Debuggability. Test suites should provide as detailed as possible reasons for the failure in its output

Non Goals

  • Validate behaviour of any component of the system completely unrelated to the machine API domain

  • Pre create Openshift/kubernetes clusters to run the expectations against it

Implementation

Run it

From your repo:

copy the e2e_test.go file, then:

dep ensure -v

And force dep to vendor the required deps as it's just used at dev/CI time, e.g:

required = [
  "github.com/openshift/cluster-api-actuator-pkg/pkg/e2e/actuators",
  "github.com/openshift/cluster-api-actuator-pkg/pkg/e2e/autoscaler",
  "github.com/openshift/cluster-api-actuator-pkg/pkg/e2e/infra",
  "github.com/openshift/cluster-api-actuator-pkg/pkg/e2e/operators",
  "github.com/openshift/cluster-autoscaler-operator/pkg/apis",
  "github.com/onsi/ginkgo",
  "github.com/onsi/gomega",
  "github.com/golang/glog",
  "github.com/openshift/cluster-api/pkg/apis/machine/v1beta1",
  "k8s.io/client-go/kubernetes/scheme",
  "github.com/openshift/api/config/v1",
]

Run it:

go test -timeout 30m \
    -v github.com/openshift/cluster-api-actuator-pkg/pkg/e2e \
    -kubeconfig $${KUBECONFIG:-~/.kube/config} \
    -machine-api-namespace $${NAMESPACE:-kube-system} \
    -ginkgo.v \
    -args -v 5 -logtostderr

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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