-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug and added a test * Test updates * Fix tests --------- Co-authored-by: Boppy <no-reply@boppygames.gg>
- Loading branch information
1 parent
72d1007
commit 0d0b97c
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
if [ "$DESCRIBE_TEST" = 1 ] ; then | ||
echo "This test checks to see if you're able to delete all identities with --force" | ||
exit | ||
fi | ||
|
||
set -euox pipefail | ||
set -x | ||
|
||
source "./test/lib.include" | ||
|
||
run_test cargo run identity new --no-email | ||
run_test cargo run identity new --no-email | ||
IDENT=$(grep IDENTITY "$TEST_OUT" | awk '{print $2}') | ||
run_test cargo run identity list | ||
[ "1" == "$(grep -c "$IDENT" "$TEST_OUT")" ] | ||
|
||
run_test cargo run identity remove "$IDENT" | ||
run_test cargo run identity list | ||
[ "0" == "$(grep -c "$IDENT" "$TEST_OUT")" ] | ||
|
||
run_test cargo run identity remove --all --force |