Last active
July 19, 2016 14:04
-
-
Save jay-johnson/8f7f08e79d1265c318aee0c82d399b7c to your computer and use it in GitHub Desktop.
Test 1
This file contains hidden or 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
else if (test_num == 1) | |
{ | |
// Test that port 80 is exposed | |
echo "Exposed Docker Ports:" | |
sh "docker inspect --format '{{ (.NetworkSettings.Ports) }}' ${container_name}" | |
sh "docker inspect --format '{{ (.NetworkSettings.Ports) }}' ${container_name} | grep map | grep '80/tcp:' | wc -l | tr -d '\n' > /tmp/test_results" | |
expected_results = 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment