@cryptotaxi247 / kubo / commits / 196bc0454

test(bootstrap, config): ensure user-provided keys are protected

Brian Tiger Chow committed Jan 12, 2015 at 18:52 UTC 196bc045410ce32a57e8c718360cb9734225d728
1 file changed +21
test/sharness/t0070-user-config.sh new
+21
@@ -0,0 +1,21 @@
1 +#!/bin/sh
2 +#
3 +# Copyright (c) 2015 Brian Holder-Chow Lin On
4 +# MIT Licensed; see the LICENSE file in this repository.
5 +#
6 +
7 +test_description="Test user-provided config values"
8 +
9 +. lib/test-lib.sh
10 +
11 +test_init_ipfs
12 +
13 +test_expect_success "bootstrap doesn't overwrite user-provided, top-level keys" '
14 + ipfs config Foo.Bar baz &&
15 + ipfs bootstrap rm --all &&
16 + echo "baz" >expected &&
17 + ipfs config Foo.Bar >actual &&
18 + test_cmp expected actual
19 +'
20 +
21 +test_done