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"* ]] +}