ipfs-cluster/sharness/t0041-ssl-enforcement.sh

20 lines
395 B
Bash
Raw Normal View History

2017-07-28 18:30:25 +00:00
#!/bin/sh
2017-07-31 21:13:22 +00:00
set -x
2017-07-28 18:30:25 +00:00
test_description="Test failure when server not using SSL but client requests it"
. lib/test-lib.sh
test_ipfs_init
cleanup test_clean_ipfs
test_cluster_init
cleanup test_clean_cluster
test_expect_success "ssl enforced by client" '
id=`cluster_id`
test_cluster_config && test_must_fail ipfs-cluster-ctl --https --no-check-certificate id | egrep -q "$id"
'
test_done