mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
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:
parent
5129758122
commit
aec498bbde
21
test/sharness/t0185-autonat.sh
Executable file
21
test/sharness/t0185-autonat.sh
Executable 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
|
||||
Loading…
Reference in New Issue
Block a user