This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 840
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run SI tests on OSS DC/OS cluster with latest Marathon.
Summary: Create a cluster for open DC/OS based on the PR that has the latest Marathon version. So far this is hard coded for open until we enable a job for enterprise as well. Test Plan: See https://jenkins.mesosphere.com/service/jenkins/view/Marathon/job/System%20Integration%20Tests/job/marathon-si-karsten/ Reviewers: unterstein, zen-dog, ichernetsky, timcharper, kensipe, jenkins Reviewed By: ichernetsky, kensipe, jenkins Subscribers: marathon-team, marathon-dev, jenkins JIRA Issues: MARATHON-7581 Differential Revision: https://phabricator.mesosphere.com/D978
- Loading branch information
Showing
3 changed files
with
69 additions
and
43 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
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,39 @@ | ||
#!/bin/bash | ||
|
||
set -e -o pipefail | ||
|
||
# Hardcode configuration to open DC/OS. | ||
VARIANT="open" | ||
CHANNEL="testing/pull/1739" | ||
|
||
JOB_NAME_SANITIZED=$(echo "$JOB_NAME" | tr -c '[:alnum:]-' '-') | ||
DEPLOYMENT_NAME="$JOB_NAME_SANITIZED-$(date +%s)" | ||
|
||
if [ "$VARIANT" == "open" ]; then | ||
TEMPLATE="https://s3.amazonaws.com/downloads.dcos.io/dcos/${CHANNEL}/cloudformation/single-master.cloudformation.json" | ||
else | ||
TEMPLATE="https://s3.amazonaws.com/downloads.mesosphere.io/dcos-enterprise-aws-advanced/${CHANNEL}/${VARIANT}/cloudformation/ee.single-master.cloudformation.json" | ||
fi | ||
|
||
echo "Workspace: ${WORKSPACE}" | ||
echo "Using: ${TEMPLATE}" | ||
|
||
apk --upgrade add gettext wget | ||
wget 'https://downloads.dcos.io/dcos-test-utils/bin/linux/dcos-launch' && chmod +x dcos-launch | ||
|
||
|
||
envsubst <<EOF > config.yaml | ||
--- | ||
launch_config_version: 1 | ||
template_url: $TEMPLATE | ||
deployment_name: $DEPLOYMENT_NAME | ||
provider: aws | ||
aws_region: eu-central-1 | ||
template_parameters: | ||
KeyName: default | ||
AdminLocation: 0.0.0.0/0 | ||
PublicSlaveInstanceCount: 1 | ||
SlaveInstanceCount: 5 | ||
EOF | ||
./dcos-launch create | ||
./dcos-launch wait |
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,17 @@ | ||
#!/bin/bash | ||
|
||
set -e -o pipefail | ||
|
||
./ci/launch_cluster.sh | ||
|
||
DCOS_URL="http://$(./dcos-launch describe | jq -r ".masters[0].public_ip")/" | ||
cp -f "$DOT_SHAKEDOWN" "$HOME/.shakedown" | ||
|
||
TERM=velocity shakedown \ | ||
--stdout all \ | ||
--stdout-inline \ | ||
--timeout 360000 \ | ||
--pytest-option "--junitxml=shakedown.xml" \ | ||
--ssh-key-file "$CLI_TEST_SSH_KEY" \ | ||
--dcos-url "$DCOS_URL" tests/system/test_marathon_root.py tests/system/test_marathon_universe.py | ||
|