2017-11-28 22:45:10 +00:00
|
|
|
#!/bin/bash
|
2017-07-28 18:30:25 +00:00
|
|
|
|
|
|
|
test_description="Test service + ctl SSL interaction"
|
|
|
|
|
2017-08-29 01:41:54 +00:00
|
|
|
ssl_config="`pwd`/config/ssl"
|
2017-07-28 18:30:25 +00:00
|
|
|
|
|
|
|
. lib/test-lib.sh
|
|
|
|
|
|
|
|
test_ipfs_init
|
|
|
|
cleanup test_clean_ipfs
|
2017-08-01 11:50:32 +00:00
|
|
|
|
2017-07-28 18:30:25 +00:00
|
|
|
test_cluster_init "$ssl_config"
|
|
|
|
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 interaction succeeds" '
|
|
|
|
id=`cluster_id`
|
2017-08-01 11:50:32 +00:00
|
|
|
ipfs-cluster-ctl --https --no-check-certificate id | egrep -q "$id"
|
2017-07-28 18:30:25 +00:00
|
|
|
'
|
|
|
|
|
|
|
|
test_done
|