forked from kubevirt/cluster-network-addons-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubevirt#258 from kubevirt/simple_automation
run tests against OKD and simplify e2e automation scripts
- Loading branch information
Showing
36 changed files
with
203 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.mounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -xe | ||
|
||
# This script should be able to execute lifecycle functional tests against | ||
# Kubernetes cluster on any environment with basic dependencies listed in | ||
# check-patch.packages installed and docker running. | ||
# | ||
# yum -y install automation/check-patch.packages | ||
# automation/check-patch.e2e-lifecycle-k8s.sh | ||
|
||
teardown() { | ||
make cluster-down | ||
} | ||
|
||
main() { | ||
export KUBEVIRT_PROVIDER='k8s-1.14.6' | ||
|
||
source automation/check-patch.e2e.setup.sh | ||
cd ${TMP_PROJECT_PATH} | ||
|
||
make cluster-down | ||
make cluster-up | ||
trap teardown EXIT SIGINT SIGTERM SIGSTOP | ||
make cluster-operator-push | ||
make test/e2e/lifecycle | ||
} | ||
|
||
[[ "${BASH_SOURCE[0]}" == "$0" ]] && main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.mounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash -xe | ||
|
||
# This script should be able to execute functional tests against OKD cluster on | ||
# any environment with basic dependencies listed in check-patch.packages | ||
# installed and docker running. | ||
# | ||
# yum -y install automation/check-patch.packages | ||
# automation/check-patch.e2e-lifecycle-okd.sh | ||
|
||
teardown() { | ||
make cluster-down | ||
} | ||
|
||
main() { | ||
export KUBEVIRT_PROVIDER='okd-4.1' | ||
|
||
source automation/check-patch.e2e.setup.sh | ||
cd ${TMP_PROJECT_PATH} | ||
|
||
make cluster-down | ||
make cluster-up | ||
trap teardown EXIT SIGINT SIGTERM SIGSTOP | ||
make cluster-operator-push | ||
make test/e2e/lifecycle | ||
} | ||
|
||
[[ "${BASH_SOURCE[0]}" == "$0" ]] && main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.mounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash -xe | ||
|
||
# This script should be able to execute workflow functional tests against | ||
# Kubernetes cluster on any environment with basic dependencies listed in | ||
# check-patch.packages installed and docker running. | ||
# | ||
# yum -y install automation/check-patch.packages | ||
# automation/check-patch.e2e-workflow-k8s.sh | ||
|
||
teardown() { | ||
make cluster-down | ||
} | ||
|
||
main() { | ||
export KUBEVIRT_PROVIDER='k8s-1.14.6' | ||
|
||
source automation/check-patch.e2e.setup.sh | ||
cd ${TMP_PROJECT_PATH} | ||
|
||
make cluster-down | ||
make cluster-up | ||
trap teardown EXIT SIGINT SIGTERM SIGSTOP | ||
make cluster-operator-push | ||
make cluster-operator-install | ||
make test/e2e/workflow | ||
} | ||
|
||
[[ "${BASH_SOURCE[0]}" == "$0" ]] && main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.mounts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check-patch.e2e.packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash -xe | ||
|
||
# This script should be able to execute workflow functional tests against OKD | ||
# cluster on any environment with basic dependencies listed in | ||
# check-patch.packages installed and docker running. | ||
# | ||
# yum -y install automation/check-patch.packages | ||
# automation/check-patch.e2e-workflow-okd.sh | ||
|
||
teardown() { | ||
make cluster-down | ||
} | ||
|
||
main() { | ||
export KUBEVIRT_PROVIDER='okd-4.1' | ||
|
||
source automation/check-patch.e2e.setup.sh | ||
cd ${TMP_PROJECT_PATH} | ||
|
||
make cluster-down | ||
make cluster-up | ||
trap teardown EXIT SIGINT SIGTERM SIGSTOP | ||
make cluster-operator-push | ||
make cluster-operator-install | ||
make test/e2e/workflow | ||
} | ||
|
||
[[ "${BASH_SOURCE[0]}" == "$0" ]] && main "$@" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Prepare environment for CNAO end to end testing. This includes temporary Go paths and binaries. | ||
# | ||
# source automation/check-patch.e2e.setup.sh | ||
# cd ${TMP_PROJECT_PATH} | ||
|
||
echo 'Setup Go paths' | ||
export GOROOT=/tmp/cluster-network-addons-operator/go/root | ||
mkdir -p $GOROOT | ||
export GOPATH=/tmp/cluster-network-addons-operator/go/path | ||
mkdir -p $GOPATH | ||
export PATH=${GOPATH}/bin:${GOROOT}/bin:${PATH} | ||
|
||
echo 'Install Go 1.12' | ||
export GIMME_GO_VERSION=1.12 | ||
GIMME=/tmp/cluster-network-addons-operator/go/gimme | ||
mkdir -p $GIMME | ||
curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | HOME=${GIMME} bash >> ${GIMME}/gimme.sh | ||
source ${GIMME}/gimme.sh | ||
|
||
echo 'Install operator repository under the temporary Go path' | ||
TMP_PROJECT_PATH=${GOPATH}/src/github.com/kubevirt/cluster-network-addons-operator | ||
rm -rf ${TMP_PROJECT_PATH} | ||
mkdir -p ${TMP_PROJECT_PATH} | ||
cp -rf $(pwd)/* ${TMP_PROJECT_PATH} | ||
|
||
echo 'Exporting temporary project path' | ||
export TMP_PROJECT_PATH |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package okd | ||
|
||
import ( | ||
"os" | ||
"strings" | ||
) | ||
|
||
func IsOnOKDCluster() bool { | ||
return strings.HasPrefix(os.Getenv("KUBEVIRT_PROVIDER"), "okd-") | ||
} |
Oops, something went wrong.