test(sharness): make sure we can actually enable autonat

This isn't a real autonat test, but it's a regression test to make sure we don't blatantly break this.
This commit is contained in:
Steven Allen 2020-03-25 12:47:48 -07:00
parent 5129758122
commit aec498bbde

21
test/sharness/t0185-autonat.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
test_description="Test autonat"
. lib/test-lib.sh
# NOTE: This is currently a really dumb test just to make sure this service
# starts. We need better tests but testing AutoNAT without public IP addresses
# is tricky.
test_init_ipfs
test_expect_success "enable autonat" '
ipfs config --json Swarm.EnableAutoNATService true
'
test_launch_ipfs_daemon
test_kill_ipfs_daemon
test_done