ipfs-cluster/sharness/t0040-ssl-simple-exchange.sh
Hector Sanjuan fcb6a98d03 More test fixing
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-08-01 14:25:20 +02:00

25 lines
458 B
Bash
Executable File

#!/bin/sh
test_description="Test service + ctl SSL interaction"
ssl_config="`pwd`/ssl"
. lib/test-lib.sh
test_ipfs_init
cleanup test_clean_ipfs
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_done