Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPSTREAM: <carry>: openshift: run e2e test from cloned repo #104

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,017 changes: 0 additions & 1,017 deletions test/openshift/Gopkg.lock

This file was deleted.

61 changes: 0 additions & 61 deletions test/openshift/Gopkg.toml

This file was deleted.

31 changes: 2 additions & 29 deletions test/openshift/Makefile
Original file line number Diff line number Diff line change
@@ -1,31 +1,4 @@
.PHONY: dep deps

dep:
type -p dep 2>&1 > /dev/null || go get -u github.com/golang/dep/cmd/dep

deps: dep
dep ensure -v

define test =
go test -timeout 60m \
-v ./vendor/github.com/openshift/cluster-api-actuator-pkg/pkg/e2e \
-kubeconfig $${KUBECONFIG:-~/.kube/config} \
-machine-api-namespace $${NAMESPACE:-openshift-machine-api} \
-args -v 5 -logtostderr \
$1 $2 $3 $4 $5 $6 $7 $8 $9
endef

.PHONY: test-e2e
test-e2e: ## Run openshift specific e2e test
time $(call test,-ginkgo.v,-ginkgo.noColor=true)

.PHONY: test-e2e-autoscaler
test-e2e-autoscaler: ## Run autoscaler focused tests only
time $(call test,-ginkgo.v,-ginkgo.focus=Autoscaler,-ginkgo.noColor=true)

.PHONY: revendor-test-e2e
revendor-test-e2e: dep
curl --silent -o e2e_test.go https://raw.githubusercontent.com/openshift/cluster-api-actuator-pkg/master/pkg/e2e/e2e_test.go
dep ensure -update github.com/openshift/cluster-api-actuator-pkg
dep ensure -v
$(RM) e2e_test.go
test-e2e:
./hack/e2e.sh
12 changes: 12 additions & 0 deletions test/openshift/hack/e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -euo pipefail

GOPATH="$(mktemp -d)"
export GOPATH

ACTUATOR_PKG="github.com/openshift/cluster-api-actuator-pkg"

go get -u -d "${ACTUATOR_PKG}/..."

exec make --directory="${GOPATH}/src/${ACTUATOR_PKG}" test-e2e

This file was deleted.

12 changes: 0 additions & 12 deletions test/openshift/vendor/github.com/PuerkitoBio/purell/.travis.yml

This file was deleted.

12 changes: 0 additions & 12 deletions test/openshift/vendor/github.com/PuerkitoBio/purell/LICENSE

This file was deleted.

188 changes: 0 additions & 188 deletions test/openshift/vendor/github.com/PuerkitoBio/purell/README.md

This file was deleted.

Loading