Skip to content

Instantly share code, notes, and snippets.

@jay-johnson
Last active July 19, 2016 14:04
Show Gist options
  • Save jay-johnson/8f7f08e79d1265c318aee0c82d399b7c to your computer and use it in GitHub Desktop.
Save jay-johnson/8f7f08e79d1265c318aee0c82d399b7c to your computer and use it in GitHub Desktop.
Test 1
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