master
sh 29 lines 533 Bytes
Raw
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 AutoNAT.ServiceMode enabled
15 '
16
17 test_launch_ipfs_daemon
18
19 test_kill_ipfs_daemon
20
21 test_expect_success "enable autonat" '
22 ipfs config AutoNAT.ServiceMode disabled
23 '
24
25 test_launch_ipfs_daemon
26
27 test_kill_ipfs_daemon
28
29 test_done