18 lines
387 B
Bash
18 lines
387 B
Bash
|
#!/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
|