Skip to content

Commit

Permalink
Cleaning up tests by specifying hostname not socket, and rebuilding i…
Browse files Browse the repository at this point in the history
…mage in pipeline
  • Loading branch information
Jim Van Fleet committed Aug 31, 2016
1 parent 5116eae commit 45f7aaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ node('docker') {

stage 'Build'
try{
sh 'bin/build.sh &> debug'
sh 'bin/rebuild.sh &> debug'
} catch(error) {
def error_details = readFile('./debug');
def message = "BUILD ERROR: There was a problem building ${imagename}:${tag}. \n\n ${error_details}"
Expand Down
4 changes: 2 additions & 2 deletions tests/running.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ load ../common
}

@test "Creates root account and database" {
docker exec -i $imagename mysql -u root --password="123321" -e 'show tables' registry
docker exec -i $imagename mysql -u root --password="123321" -h 127.0.0.1 -e 'show tables' registry
}

@test "Creates user account with password" {
docker exec -i $imagename mysql -u registry_user --password="WJzesbe3poNZ91qIbmR7" -e 'show tables' registry
docker exec -i $imagename mysql -u registry_user --password="WJzesbe3poNZ91qIbmR7" -h 127.0.0.1 -e 'show tables' registry
}

0 comments on commit 45f7aaa

Please sign in to comment.