Commit 1b67e3ae authored by Łukasz Magiera's avatar Łukasz Magiera

Add invalid profile test to init --profile

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 140de0a8
......@@ -127,6 +127,13 @@ test_expect_success "clean up ipfs dir" '
'
# test init profiles
test_expect_success "'ipfs init --profile' with invalid profile fails" '
BITS="1024" &&
test_must_fail ipfs init --bits="$BITS" --profile=nonexistent_profile 2> invalid_profile_out
EXPECT="Error: invalid configuration profile: nonexistent_profile" &&
grep "$EXPECT" invalid_profile_out
'
test_expect_success "'ipfs init --profile' succeeds" '
BITS="1024" &&
ipfs init --bits="$BITS" --profile=server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment