Skip to content

Instantly share code, notes, and snippets.

@jay-johnson
Last active July 19, 2016 14:02
Show Gist options
  • Save jay-johnson/ede43dfd38e93a4a7f54e972b5158677 to your computer and use it in GitHub Desktop.
Save jay-johnson/ede43dfd38e93a4a7f54e972b5158677 to your computer and use it in GitHub Desktop.
Test 2
else if (test_num == 2)
{
// Test there's nothing established on the port since nginx is not running:
sh "docker exec -t ${container_name} netstat -apn | grep 80 | grep ESTABLISHED | wc -l | tr -d '\n' > /tmp/test_results"
expected_results = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment