Skip to content

Attempt a secure connection to an InCommon SSL site #6

Merged
9 commits merged into from Aug 2, 2016

Test for working connection with InCommon cert chain

  • Loading branch information
Chris Bynum
Chris Bynum committed Jul 29, 2016
commit 835cd037ea70c4960382492650c1a460c5fb7df5
@@ -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"* ]]
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.