Skip to content

Attempt a secure connection to an InCommon SSL site #6

9 commits merged into from Aug 2, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Test for working connection with InCommon cert chain
Chris Bynum committed Jul 29, 2016
commit 835cd037ea70c4960382492650c1a460c5fb7df5
6 changes: 4 additions & 2 deletions 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 ]
}
[[ ${output} == *"302"* || ${output} == *"200"* ]]
}