@cryptotaxi247 / kubo / commits / aec498bbd

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.

Steven Allen committed Mar 25, 2020 at 12:47 UTC aec498bbde7f5a20a13618d036b307693eb3ce04
1 file changed +21
test/sharness/t0185-autonat.sh new
+21
@@ -0,0 +1,21 @@
1 +#!/usr/bin/env bash
2 +
3 +test_description="Test autonat"
4 +
5 +. lib/test-lib.sh
6 +
7 +# NOTE: This is currently a really dumb test just to make sure this service
8 +# starts. We need better tests but testing AutoNAT without public IP addresses
9 +# is tricky.
10 +
11 +test_init_ipfs
12 +
13 +test_expect_success "enable autonat" '
14 + ipfs config --json Swarm.EnableAutoNATService true
15 +'
16 +
17 +test_launch_ipfs_daemon
18 +
19 +test_kill_ipfs_daemon
20 +
21 +test_done