ipfs-cluster/sharness/t0041-ssl-enforcement.sh
2017-07-28 12:30:25 -06:00

18 lines
387 B
Bash
Executable File

#!/bin/sh
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