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
Using common variables in script
Chris Bynum committed Aug 2, 2016
commit 4021f8348250779ee76123a6d117c018f942b5a0
4 changes: 3 additions & 1 deletion tests/base.bats
@@ -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"* ]]