@cryptotaxi247 / kubo / commits / 7167e93be

Add test to prevent future regressions

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed May 31, 2016 at 18:53 UTC 7167e93be4755573e3c2d7f7254ec375bf29b5db
2 files changed +31
test/sharness/t0500-issues-and-regressions-offline.sh new
+11
@@ -0,0 +1,11 @@
1 +#!/bin/sh
2 +
3 +test_description="Tests for various fxed issues and regressions."
4 +
5 +. lib/test-lib.sh
6 +
7 +test_init_ipfs
8 +
9 +# Tests go here
10 +
11 +test_done
test/sharness/t0501-issues-and-regressions-online.sh new
+20
@@ -0,0 +1,20 @@
1 +#!/bin/sh
2 +
3 +test_description="Tests for various fxed issues and regressions."
4 +
5 +. lib/test-lib.sh
6 +
7 +test_init_ipfs
8 +
9 +test_launch_ipfs_daemon
10 +
11 +# Tests go here
12 +
13 +test_expect_sucess "commands command with flag flags works via HTTP API - #2301" '
14 + curl "http://$API_ADDR/api/v0/commands?flags" | grep "verbose"
15 +'
16 +
17 +test_kill_ipfs_daemon
18 +
19 +test_done
20 +