From aec498bbde7f5a20a13618d036b307693eb3ce04 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 25 Mar 2020 12:47:48 -0700 Subject: [PATCH] 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. --- test/sharness/t0185-autonat.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test/sharness/t0185-autonat.sh diff --git a/test/sharness/t0185-autonat.sh b/test/sharness/t0185-autonat.sh new file mode 100755 index 000000000..88ae053e2 --- /dev/null +++ b/test/sharness/t0185-autonat.sh @@ -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