mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +08:00
Add invalid profile test to init --profile
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user