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
Removed tty
Chris Bynum committed Jul 29, 2016
commit 9f2ada5c38b0d228d5350bc7eadb5ac119c12105
2 changes: 1 addition & 1 deletion tests/base.bats
@@ -1,7 +1,7 @@
#!/usr/bin/env bats

@test "curl should connect to InCommon cert chain site successfully" {
run docker run -it tier/centos7base curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://github.internet2.edu/
run docker run -i tier/centos7base curl -o /dev/null --silent --head --write-out '%{http_code}\n' https://github.internet2.edu/
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool technique on the curl for the status code!

Instead of 'tier/centos7base', you can use the $maintainer/$imagename variables from common.bash (A little nicer when we need to transition for any reason.)

echo ${output}
[ "$status" -eq 0 ]
[[ ${output} == *"302"* || ${output} == *"200"* ]]