@cryptotaxi247 / kubo / commits / 956106854

propagate test_launch_ipfs_daemon_without_network name

Lucas Molas committed Jul 8, 2021 at 16:18 UTC 9561068548f26ed49270e574a063f08b7bf1526c
16 files changed +27 -27
test/sharness/t0023-shutdown.sh
+1 -1
@@ -24,7 +24,7 @@ test_expect_success "daemon no longer running" '
24 done
25 '
26
27 -test_launch_ipfs_daemon --offline
27 +test_launch_ipfs_daemon_without_network
28
29 test_expect_success "shutdown succeeds" '
30 ipfs shutdown
test/sharness/t0040-add-and-cat.sh
+1 -1
@@ -842,7 +842,7 @@ test_add_named_pipe
842 test_add_pwd_is_symlink
843
844 # Test daemon in offline mode
845 -test_launch_ipfs_daemon --offline
845 +test_launch_ipfs_daemon_without_network
846
847 test_add_cat_file
848
test/sharness/t0045-ls.sh
+1 -1
@@ -312,7 +312,7 @@ test_expect_success "'ipfs ls --resolve-type=true --size=false' fails" '
312 test_must_fail ipfs ls --resolve-type=true --size=false $DIR
313 '
314
315 -test_launch_ipfs_daemon --offline
315 +test_launch_ipfs_daemon_without_network
316
317 test_expect_success "'ipfs ls --resolve-type=false --size=false' ok" '
318 ipfs ls --resolve-type=false --size=false $DIR > /dev/null
test/sharness/t0061-daemon-opts.sh
+1 -1
@@ -25,7 +25,7 @@ test_expect_success SOCAT 'transport should be unencrypted ( needs socat )' '
25
26 test_kill_ipfs_daemon
27
28 -test_launch_ipfs_daemon --offline
28 +test_launch_ipfs_daemon_without_network
29
30 gwyaddr=$GWAY_ADDR
31 apiaddr=$API_ADDR
test/sharness/t0080-repo.sh
+2 -2
@@ -9,7 +9,7 @@ test_description="Test ipfs repo operations"
9 . lib/test-lib.sh
10
11 test_init_ipfs
12 -test_launch_ipfs_daemon --offline
12 +test_launch_ipfs_daemon_without_network
13
14 test_expect_success "'ipfs repo gc' succeeds" '
15 ipfs repo gc >gc_out_actual
@@ -63,7 +63,7 @@ test_expect_success "ipfs repo gc fully reverse ipfs add (part 2)" '
63 test_cmp expected_blocks actual_blocks
64 '
65
66 -test_launch_ipfs_daemon --offline
66 +test_launch_ipfs_daemon_without_network
67
68 test_expect_success "file no longer pinned" '
69 ipfs pin ls --type=recursive --quiet >actual2 &&
test/sharness/t0081-repo-pinning.sh
+1 -1
@@ -237,7 +237,7 @@ test_expect_success "some are no longer there" '
237 test_must_fail ipfs ls "$HASH_DIR3"
238 '
239
240 -test_launch_ipfs_daemon --offline
240 +test_launch_ipfs_daemon_without_network
241 test_expect_success "recursive pin fails without objects" '
242 test_must_fail ipfs pin add -r "$HASH_DIR1" 2>err_expected8 &&
243 grep "pin: merkledag: not found" err_expected8 ||
test/sharness/t0085-pins.sh
+1 -1
@@ -180,7 +180,7 @@ test_pin_dag --raw-leaves
180
181 test_pin_progress
182
183 -test_launch_ipfs_daemon --offline
183 +test_launch_ipfs_daemon_without_network
184
185 test_pins '' '' ''
186 test_pins --progress '' ''
test/sharness/t0087-repo-robust-gc.sh
+1 -1
@@ -157,7 +157,7 @@ test_init_ipfs
157 test_gc_robust_part1
158 test_gc_robust_part2
159
160 -test_launch_ipfs_daemon --offline
160 +test_launch_ipfs_daemon_without_network
161
162 test_gc_robust_part1
163 test_gc_robust_part2
test/sharness/t0095-refs.sh
+1 -1
@@ -9,7 +9,7 @@ test_description="Test 'ipfs refs' command"
9 . lib/test-lib.sh
10
11 test_init_ipfs
12 -test_launch_ipfs_daemon --offline
12 +test_launch_ipfs_daemon_without_network
13
14 # This file performs tests with the following directory
15 # structure.
test/sharness/t0100-name.sh
+1 -1
@@ -228,7 +228,7 @@ test_name_with_self() {
228 test_kill_ipfs_daemon
229
230 # Test daemon in offline mode
231 - test_launch_ipfs_daemon --offline
231 + test_launch_ipfs_daemon_without_network
232
233 test_expect_success "'ipfs name publish' fails offline mode" '
234 test_expect_code 1 ipfs name publish "/ipfs/$HASH_WELCOME_DOCS"
test/sharness/t0114-gateway-subdomains.sh
+9 -9
@@ -89,7 +89,7 @@ test_expect_success "ipfs init" '
89 ipfs init --profile=test > /dev/null
90 '
91
92 -test_launch_ipfs_daemon --offline
92 +test_launch_ipfs_daemon_without_network
93
94 # CIDv0to1 is necessary because raw-leaves are enabled by default during
95 # "ipfs add" with CIDv1 and disabled with CIDv0
@@ -141,7 +141,7 @@ test_expect_success "Publish test text file to IPNS using ED25519 keys" '
141 test_expect_success 'start daemon with empty config for Gateway.PublicGateways' '
142 test_kill_ipfs_daemon &&
143 ipfs config --json Gateway.PublicGateways "{}" &&
144 - test_launch_ipfs_daemon --offline
144 + test_launch_ipfs_daemon_without_network
145 '
146
147 ## ============================================================================
@@ -337,7 +337,7 @@ ipfs config --json Gateway.PublicGateways '{
337 }' || exit 1
338 # restart daemon to apply config changes
339 test_kill_ipfs_daemon
340 -test_launch_ipfs_daemon --offline
340 +test_launch_ipfs_daemon_without_network
341
342
343 # example.com/ip(f|n)s/*
@@ -519,7 +519,7 @@ ipfs config --json Gateway.PublicGateways '{
519 }' || exit 1
520 # restart daemon to apply config changes
521 test_kill_ipfs_daemon
522 -test_launch_ipfs_daemon --offline
522 +test_launch_ipfs_daemon_without_network
523
524 # not mounted at the root domain
525 test_hostname_gateway_response_should_contain \
@@ -632,7 +632,7 @@ ipfs config --json Gateway.PublicGateways '{
632 }' || exit 1
633 # restart daemon to apply config changes
634 test_kill_ipfs_daemon
635 -test_launch_ipfs_daemon --offline
635 +test_launch_ipfs_daemon_without_network
636
637 # refuse requests to Paths that were not explicitly whitelisted for the hostname
638 test_hostname_gateway_response_should_contain \
@@ -661,7 +661,7 @@ ipfs config --json Gateway.PublicGateways '{
661
662 # restart daemon to apply config changes
663 test_kill_ipfs_daemon
664 -test_launch_ipfs_daemon --offline
664 +test_launch_ipfs_daemon_without_network
665
666 # example.com/ip(f|n)s/* smoke-tests
667 # =============================================================================
@@ -834,7 +834,7 @@ ipfs config --json Gateway.PublicGateways '{
834 }' || exit 1
835 # restart daemon to apply config changes
836 test_kill_ipfs_daemon
837 -test_launch_ipfs_daemon --offline
837 +test_launch_ipfs_daemon_without_network
838
839 test_expect_success "request for http://fake.domain.com/ipfs/{CID} doesn't match the example.com gateway" "
840 curl -H \"Host: fake.domain.com\" -sD - \"http://127.0.0.1:$GWAY_PORT/ipfs/$CIDv1\" > response &&
@@ -876,7 +876,7 @@ ipfs config --json Gateway.PublicGateways '{
876 }' || exit 1
877 # restart daemon to apply config changes
878 test_kill_ipfs_daemon
879 -test_launch_ipfs_daemon --offline
879 +test_launch_ipfs_daemon_without_network
880
881 # *.example1.com
882
@@ -945,7 +945,7 @@ ipfs config --json Gateway.PublicGateways '{
945
946 # restart daemon to apply config changes
947 test_kill_ipfs_daemon
948 -test_launch_ipfs_daemon --offline
948 +test_launch_ipfs_daemon_without_network
949
950 test_localhost_gateway_response_should_contain \
951 "request for localhost/ipfs/{CID} stays on path when subdomain gw is explicitly disabled" \
test/sharness/t0115-gateway-dir-listing.sh
+1 -1
@@ -16,7 +16,7 @@ test_expect_success "ipfs init" '
16 ipfs init --profile=test > /dev/null
17 '
18
19 -test_launch_ipfs_daemon --offline
19 +test_launch_ipfs_daemon_without_network
20
21 test_expect_success "Add the test directory" '
22 mkdir -p rootDir/ipfs &&
test/sharness/t0250-files-api.sh
+1 -1
@@ -786,7 +786,7 @@ test_expect_success "enable sharding in config" '
786 ipfs config --json Experimental.ShardingEnabled true
787 '
788
789 -test_launch_ipfs_daemon --offline
789 +test_launch_ipfs_daemon_without_network
790
791 SHARD_HASH=QmPkwLJTYZRGPJ8Lazr9qPdrLmswPtUjaDbEpmR9jEh1se
792 test_sharding "(cidv0)"
test/sharness/t0271-filestore-utils.sh
+2 -2
@@ -187,7 +187,7 @@ test_init
187
188 # must be in offline mode so tests that retrieve non-existent blocks
189 # doesn't hang
190 -test_launch_ipfs_daemon --offline
190 +test_launch_ipfs_daemon_without_network
191
192 test_filestore_adds
193
@@ -251,7 +251,7 @@ test_init
251
252 # must be in offline mode so tests that retrieve non-existent blocks
253 # doesn't hang
254 -test_launch_ipfs_daemon --offline
254 +test_launch_ipfs_daemon_without_network
255
256 test_filestore_adds
257
test/sharness/t0272-urlstore.sh
+2 -2
@@ -26,7 +26,7 @@ test_urlstore() {
26 HASH3a=$(ipfs add -q --trickle --raw-leaves=false file3)
27 '
28
29 - test_launch_ipfs_daemon --offline
29 + test_launch_ipfs_daemon_without_network
30
31 test_expect_success "make sure files can be retrieved via the gateway" '
32 curl http://127.0.0.1:$GWAY_PORT/ipfs/$HASH1a -o file1.actual &&
@@ -48,7 +48,7 @@ test_urlstore() {
48 ipfs config --json Experimental.UrlstoreEnabled true
49 '
50
51 - test_launch_ipfs_daemon --offline
51 + test_launch_ipfs_daemon_without_network
52
53 test_expect_success "add files using gateway address via url store using $ADD_CMD" '
54 HASH1=$(ipfs $ADD_CMD --pin=false http://127.0.0.1:$GWAY_PORT/ipfs/$HASH1a) &&
test/sharness/t0600-issues-and-regressions-online.sh
+1 -1
@@ -59,7 +59,7 @@ test_expect_success "ipfs daemon --offline --mount fails - #2995" '
59 test_fsh cat daemon_err
60 '
61
62 -test_launch_ipfs_daemon --offline
62 +test_launch_ipfs_daemon_without_network
63
64 test_expect_success "'ipfs name resolve' succeeds after ipfs id when daemon offline" '
65 PEERID=`ipfs key list --ipns-base=base36 -l | grep self | cut -d " " -f1` &&