t0021: test 'ipfs config show'
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Oct 29, 2015 at 16:26 UTC
bbe95b8ad4b261406f5c36793044bff8ac289cf2
1 file changed
+10
test/sharness/t0021-config.sh
+10
@@ -61,6 +61,16 @@ test_config_cmd() {
61
test_config_cmd_set "--json" "deep-null" "null"
62
test_config_cmd_set "--json" "deep-null.prop" "true"
63
64
+ test_expect_success "'ipfs config show' works" '
65
+ ipfs config show >actual
66
+ '
67
+
68
+ test_expect_success "'ipfs config show' output looks good" '
69
+ grep "\"beep\": \"boop\"," actual &&
70
+ grep "\"beep1\": \"boop2\"," actual &&
71
+ grep "\"beep2\": false," actual &&
72
+ grep "\"beep3\": false," actual
73
+ '
74
}
75
76
test_init_ipfs