File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ branches:
55sudo : required
66services :
77 - docker
8- before_install :
9- - sudo apt-get -qq update
10- - sudo apt-get install -y python-swiftclient
118env :
129 # HACK(bacongobbler): make travis tests work
1310 - DEIS_REGISTRY=travis-ci/
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ SWIFT_DATA=$(docker run -v /srv --name SWIFT_DATA busybox)
3232
3333# kill containers when this script exits or errors out
3434trap ' kill-container $SWIFT_JOB' INT TERM
35- SWIFT_JOB=$( docker run --name onlyone --hostname onlyone -d -p 12345:8080 - -volumes-from SWIFT_DATA -t deis/swift-onlyone:git-8516d23)
35+ SWIFT_JOB=$( docker run --name onlyone --hostname onlyone -d --volumes-from SWIFT_DATA -t deis/swift-onlyone:git-8516d23)
3636
3737
3838# postgres container command
@@ -56,8 +56,8 @@ check-postgres $PG_JOB
5656# check if swift has some backups ... 3 ?
5757puts-step " checking if swift has at least 3 backups"
5858
59- BACKUPS=" $( swift -A http://127.0.0.1:12345 /auth/v1.0 -U test:tester -K testing list deis-swift-test | grep basebackups_005 | grep json) "
60- NUM_BACKUPS=" $( swift -A http://127.0.0.1:12345 /auth/v1.0 -U test:tester -K testing list deis-swift-test | grep basebackups_005 | grep -c json) "
59+ BACKUPS=" $( docker exec $SWIFT_JOB swift -A http://127.0.0.1:8080 /auth/v1.0 -U test:tester -K testing list deis-swift-test | grep basebackups_005 | grep json) "
60+ NUM_BACKUPS=" $( docker exec $SWIFT_JOB swift -A http://127.0.0.1:8080 /auth/v1.0 -U test:tester -K testing list deis-swift-test | grep basebackups_005 | grep -c json) "
6161# NOTE (bacongobbler): the BACKUP_FREQUENCY is only 1 second, so we could technically be checking
6262# in the middle of a backup. Instead of failing, let's consider N+1 backups an acceptable case
6363if [[ ! " $NUM_BACKUPS " -eq " 5" && ! " $NUM_BACKUPS " -eq " 6" ]]; then
You can’t perform that action at this time.
0 commit comments