@cryptotaxi247 / kubo / commits / 48dcd67df

Add sharness test

License: MIT Signed-off-by: Mateja Milosevic <minima38123@gmail.com>

Quantomic committed Jul 17, 2017 at 20:48 UTC 48dcd67dfef1fc64ca295383c800ebcf3bdcb3a0
1 file changed +5
test/sharness/t0600-issues-and-regressions-online.sh
+5
@@ -46,6 +46,11 @@ test_expect_success "pin add api looks right - #3753" '
46 test_cmp pinrm_out pinrm_exp
47 '
48
49 +test_expect_success "no daemon crash on improper file argument - #4003" '
50 + FNC=$(echo $API_ADDR | awk -F: '\''{ printf "%s %s", $1, $2 }'\'') &&
51 + echo -n "POST /api/v0/add?pin=true HTTP/1.1\r\nHost: $API_ADDR\r\nContent-Type: multipart/form-data; boundary=Pyw9xQLtiLPE6XcI\r\nContent-Length: 22\r\n\r\n\r\n--Pyw9xQLtiLPE6XcI\r\n" | nc -v $FNC | grep "200 OK"
52 +'
53 +
54 test_kill_ipfs_daemon
55
56 test_expect_success "ipfs daemon --offline --mount fails - #2995" '