Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cleaning up tests by specifying hostname not socket, and rebuilding i…
…mage in pipeline
Jim Van Fleet committed Aug 31, 2016
1 parent 5116eae commit 45f7aaa
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
@@ -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}"
4 changes: 2 additions & 2 deletions tests/running.bats
@@ -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.