ipfs-cluster/sharness/t0040-ssl-simple-exchange.sh
Wyatt Daviau a99b403273 Sharness hardening:
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>
2018-01-09 14:17:21 -05:00

26 lines
460 B
Bash
Executable File

#!/bin/bash
test_description="Test service + ctl SSL interaction"
ssl_config="`pwd`/config/ssl"
. lib/test-lib.sh
test_ipfs_init
test_cluster_init "$ssl_config"
cleanup test_clean_cluster
test_expect_success "prerequisites" '
test_have_prereq IPFS && test_have_prereq CLUSTER
'
test_expect_success "ssl interaction succeeds" '
id=`cluster_id`
ipfs-cluster-ctl --https --no-check-certificate id | egrep -q "$id"
'
test_clean_ipfs
test_done