ipfs-cluster/sharness/t0041-ssl-enforcement.sh
Hector Sanjuan dac6fcd18d Fix tests
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-08-01 13:50:32 +02:00

23 lines
466 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 "prerequisites" '
test_have_prereq IPFS && test_have_prereq CLUSTER
'
test_expect_success "ssl enforced by client" '
test_cluster_config
id=`cluster_id`
test_must_fail ipfs-cluster-ctl --https --no-check-certificate id
'
test_done