mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +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 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" '
|
test_expect_success "'ipfs init --profile' succeeds" '
|
||||||
BITS="1024" &&
|
BITS="1024" &&
|
||||||
ipfs init --bits="$BITS" --profile=server
|
ipfs init --bits="$BITS" --profile=server
|
||||||
|
Reference in New Issue
Block a user