From 835cd037ea70c4960382492650c1a460c5fb7df5 Mon Sep 17 00:00:00 2001 From: Chris Bynum Date: Fri, 29 Jul 2016 12:24:59 -0400 Subject: [PATCH] Test for working connection with InCommon cert chain --- tests/base.bats | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/base.bats b/tests/base.bats index 8dbcf2a..823e9cd 100644 --- a/tests/base.bats +++ b/tests/base.bats @@ -1,6 +1,8 @@ #!/usr/bin/env bats @test "curl should connect to InCommon cert chain site successfully" { - run "docker run -it tier/centos7base curl https://github.internet2.edu/" + run docker run -it tier/centos7base curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://github.internet2.edu/ + echo ${output} [ "$status" -eq 0 ] -} \ No newline at end of file + [[ ${output} == *"302"* || ${output} == *"200"* ]] +}