-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add service-catalog testing to run on a daily schedule
closes openshift/origin#16220
- Loading branch information
Showing
2 changed files
with
642 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
sjb/config/test_cases/test_branch_origin_service_catalog.yml
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,87 @@ | ||
--- | ||
parent: 'common/test_cases/origin_built_release.yml' | ||
overrides: | ||
junit_analysis: False | ||
timer: 'H H * * *' | ||
email: | ||
- [email protected] | ||
extensions: | ||
actions: | ||
- type: "script" | ||
title: "determine the release commit for origin images" | ||
repository: "origin" | ||
script: |- | ||
jobs_repo="/data/src/github.com/openshift/aos-cd-jobs/" | ||
git log -1 --pretty=%h > "${jobs_repo}/ORIGIN_COMMIT" | ||
source hack/lib/init.sh | ||
os::build::rpm::format_nvra > "${jobs_repo}/ORIGIN_BUILT_VERSION" | ||
- type: "script" | ||
title: "build junitreport" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
OS_BUILD_ENV_PULL_IMAGE=true OS_BUILD_ENV_PRESERVE=_output/local/bin/linux/amd64/junitreport hack/env make build WHAT=tools/junitreport | ||
- type: "script" | ||
title: "build service-catalog user-broker image" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
REGISTRY=openshift/ NO_DOCKER=1 make -C cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog user-broker-image | ||
- type: "script" | ||
title: "build Service Catalog binary" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
unset GOPATH; cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/hack/build-go.sh | ||
- type: "script" | ||
title: "run Service Catalog unit tests" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
NO_DOCKER=1 make -C cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog test-unit | ||
- type: "script" | ||
title: "run Service Catalog integration tests" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
sudo yum -y install etcd | ||
# this strips the -i arg to "go test". can be dropped once PR is merged: | ||
# https://github.com/kubernetes-incubator/service-catalog/pull/1566 (and vendored in rebase) | ||
sed -i 's/\(go test.*\)\( -i \)\(.*\)/\1 \3/' cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/test/integration.sh | ||
NO_DOCKER=1 make -C cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog scBuildImageTarget=.scBuildImage test-integration | ||
- type: "script" | ||
title: "build Service Catalog image" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
hack/build-local-images.py service-catalog | ||
- type: "script" | ||
title: "build Service Catalog E2E test binary" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
NO_DOCKER=1 make -C cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog bin/e2e.test | ||
- type: "script" | ||
title: "start cluster with Service Catalog" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
./_output/local/bin/linux/amd64/oc cluster up --version=latest --service-catalog | ||
- type: "script" | ||
title: "Run Service Catalog E2E" | ||
repository: "origin" | ||
timeout: 1800 | ||
script: |- | ||
sudo chmod a+rw /var/lib/origin/openshift.local.config/master/admin.kubeconfig | ||
export KUBECONFIG=/var/lib/origin/openshift.local.config/master/admin.kubeconfig | ||
./_output/local/bin/linux/amd64/oc login -u system:admin | ||
SERVICECATALOGCONFIG=$KUBECONFIG cmd/service-catalog/go/src/github.com/kubernetes-incubator/service-catalog/bin/e2e.test -v 10 -alsologtostderr | ||
system_journals: | ||
- origin-master.service | ||
- origin-master-api.service | ||
- origin-master-controllers.service | ||
- origin-node.service | ||
- openvswitch.service | ||
- ovs-vswitchd.service | ||
- ovsdb-server.service | ||
- etcd.service |
Oops, something went wrong.