Commit 748d25f4 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

t0060-daemon: test transport is encrypted

License: MIT
Signed-off-by: default avatarJuan Batiz-Benet <juan@benet.ai>
parent c9edbf35
......@@ -8,6 +8,8 @@ test_description="Test daemon command"
. lib/test-lib.sh
# TODO: randomize ports here once we add --config to ipfs daemon
# this needs to be in a different test than "ipfs daemon --init" below
test_expect_success "setup IPFS_PATH" '
IPFS_PATH="$(pwd)/.ipfs" &&
......@@ -91,6 +93,16 @@ test_expect_success "ipfs help output looks good" '
test_fsh cat help.txt
'
# check transport is encrypted
test_expect_success 'transport should be encrypted' '
nc localhost 4001 >swarmnc &
go-sleep 0.1s &&
grep -q "AES-256,AES-128" swarmnc &&
! grep -q "/ipfs/identify" swarmnc ||
test_fsh cat swarmnc
'
# end same as in t0010
test_expect_success "daemon is still running" '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment