Skip to content

Attempt a secure connection to an InCommon SSL site #6

Merged
9 commits merged into from Aug 2, 2016
Prev

Using common variables in script

  • Loading branch information
Chris Bynum
Chris Bynum committed Aug 2, 2016
commit 4021f8348250779ee76123a6d117c018f942b5a0
@@ -1,7 +1,9 @@
#!/usr/bin/env bats

load ../common

@test "curl should connect to InCommon cert chain site successfully" {
run docker run -i tier/centos7base curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://github.internet2.edu/
run docker run -i $maintainer/$imagename 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.