Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tests): move most of the infrastructure provisioning to chart-mate
Fixes #115
- Loading branch information
Seth Goings
committed
Feb 25, 2016
1 parent
4db45fb
commit 485d5ff
Showing
13 changed files
with
10 additions
and
276 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
/_scripts/tests/helm | ||
/_scripts/tests/rerun | ||
rerun | ||
/_scripts/tests/.bin | ||
/logs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
|
||
helm uninstall -n deis -y deis-tests | ||
healthcheck-deis | ||
./rerun chart-mate:check |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
|
||
./rerun chart-mate:up |
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
|
||
./rerun chart-mate:down |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
source _scripts/tests/shared.sh | ||
|
||
download-chart-mate | ||
download-jq | ||
|
||
./rerun chart-mate:init |
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 |
---|---|---|
@@ -1,47 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
|
||
function bumpver-if-set { | ||
local chart="${1}" | ||
local component="${2}" | ||
local version="${3}" | ||
|
||
if [ ! -z "${version}" ]; then | ||
local version_bumper="_scripts/chart-version-bumper.sh" | ||
"${version_bumper}" "${chart}" "${component}" "${version}" | ||
else | ||
echo "No version set for ${chart}: ${component}" | ||
fi | ||
} | ||
|
||
if [ ! -z $CI ]; then | ||
echo "INJECTING VERSIONS!" | ||
echo "-------------------" | ||
pushd ../../ &> /dev/null | ||
bumpver-if-set "deis-tests" "deis-e2e" "${WORKFLOW_E2E_SHA}" | ||
bumpver-if-set "deis-logger" "logger" "${LOGGER_GIT_SHA}" | ||
bumpver-if-set "deis-dev" "builder" "${BUILDER_GIT_SHA}" | ||
bumpver-if-set "deis-dev" "minio" "${MINIO_GIT_SHA}" | ||
bumpver-if-set "deis-dev" "postgres" "${POSTGRES_GIT_SHA}" | ||
bumpver-if-set "deis-dev" "registry" "${REGISTRY_GIT_SHA}" | ||
bumpver-if-set "deis-dev" "router" "${ROUTER_GIT_SHA}" | ||
bumpver-if-set "deis-dev" "workflow" "${WORKFLOW_GIT_SHA}" | ||
popd &> /dev/null | ||
echo "-------------------" | ||
fi | ||
|
||
rm -rf ~/.helm/ | ||
helm doctor | ||
mkdir -p ~/.helm/cache/charts/deis | ||
rsync -av ../../ ${HOME}/.helm/cache/deis/ > /dev/null | ||
helm fetch deis/deis-dev | ||
helm fetch deis/deis-logger | ||
|
||
test_root="$(dirname $(pwd))" | ||
|
||
helm generate deis-dev | ||
helm install deis-dev | ||
./rerun chart-mate:install |
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 |
---|---|---|
@@ -1,13 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
|
||
helm fetch deis/deis-tests | ||
helm uninstall -n deis -y deis-tests; helm install deis-tests | ||
|
||
wait-for-all-pods "deis" | ||
kubectl --namespace=deis logs -f deis-tests | ||
return-pod-exit-code "deis-tests" | ||
./rerun chart-mate:test |
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd "$(dirname $0)" | ||
|
||
source config.sh | ||
source shared.sh | ||
|
||
helm uninstall -n deis -y deis-dev; | ||
./rerun chart-mate:uninstall |
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