Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
748d25f4
Commit
748d25f4
authored
9 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t0060-daemon: test transport is encrypted
License: MIT Signed-off-by:
Juan Batiz-Benet
<
juan@benet.ai
>
parent
c9edbf35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
test/sharness/t0060-daemon.sh
test/sharness/t0060-daemon.sh
+12
-0
No files found.
test/sharness/t0060-daemon.sh
View file @
748d25f4
...
...
@@ -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"
'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment