Skip to content

Commit

Permalink
Test for working connection with InCommon cert chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bynum committed Jul 29, 2016
1 parent 280ddaf commit 835cd03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/base.bats
Original file line number Diff line number Diff line change
@@ -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 ]
}
[[ ${output} == *"302"* || ${output} == *"200"* ]]
}

0 comments on commit 835cd03

Please sign in to comment.