t0600-issues-and-regressions-online.sh 971 Bytes
Newer Older
1 2
#!/bin/sh

3
test_description="Tests for various fixed issues and regressions."
4 5 6 7 8 9 10 11 12

. lib/test-lib.sh

test_init_ipfs

test_launch_ipfs_daemon

# Tests go here

13
test_expect_success "commands command with flag flags works via HTTP API - #2301" '
14 15 16
	curl "http://$API_ADDR/api/v0/commands?flags" | grep "verbose"
'

17
test_expect_success "ipfs refs local over HTTP API returns NDJOSN not flat - #2803" '
18 19 20 21
	echo "Hello World" | ipfs add &&
	curl "http://$API_ADDR/api/v0/refs/local" | grep "Ref" | grep "Err"
'

22 23 24 25 26
test_expect_success "args expecting stdin dont crash when not given" '
	curl "$API_ADDR/api/v0/bootstrap/add" > result
'

test_expect_success "no panic traces on daemon" '
27
	test_must_fail grep "nil pointer dereference" daemon_err
28 29
'

30 31
test_kill_ipfs_daemon

32
test_expect_success "ipfs daemon --offline --mount fails - #2995" '
33 34
	test_expect_code 1 ipfs daemon --offline --mount 2>daemon_err &&
	grep "mount is not currently supported in offline mode" daemon_err
35 36
'

37 38
test_done