a99b403273
Better error messages in test-lib init functions and ipfshttp Cleanup functions are now called after every test file License: MIT Signed-off-by: Wyatt Daviau <wdaviau@cs.stanford.edu>
23 lines
429 B
Bash
Executable File
23 lines
429 B
Bash
Executable File
#!/bin/bash
|
|
|
|
test_description="Test failure when server not using SSL but client requests it"
|
|
|
|
. lib/test-lib.sh
|
|
|
|
test_ipfs_init
|
|
test_cluster_init
|
|
|
|
test_expect_success "prerequisites" '
|
|
test_have_prereq IPFS && test_have_prereq CLUSTER
|
|
'
|
|
|
|
test_expect_success "ssl enforced by client" '
|
|
id=`cluster_id`
|
|
test_must_fail ipfs-cluster-ctl --https --no-check-certificate id
|
|
'
|
|
|
|
test_clean_ipfs
|
|
test_clean_cluster
|
|
|
|
test_done
|