2017-07-28 18:30:25 +00:00
|
|
|
#!/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
|
|
|
|
|
2017-08-01 11:50:32 +00:00
|
|
|
test_expect_success "prerequisites" '
|
|
|
|
test_have_prereq IPFS && test_have_prereq CLUSTER
|
|
|
|
'
|
|
|
|
|
2017-07-28 18:30:25 +00:00
|
|
|
test_expect_success "ssl enforced by client" '
|
2017-08-01 11:50:32 +00:00
|
|
|
test_cluster_config
|
2017-07-28 18:30:25 +00:00
|
|
|
id=`cluster_id`
|
2017-08-01 11:50:32 +00:00
|
|
|
test_must_fail ipfs-cluster-ctl --https --no-check-certificate id
|
2017-07-28 18:30:25 +00:00
|
|
|
'
|
|
|
|
|
|
|
|
test_done
|