-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d16a389
commit 58b5e4c
Showing
2 changed files
with
32 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# CREATE DATABASE AND KEYSTORE | ||
kli init --name rename-test --base "${KERI_TEMP_DIR}" --nopasscode | ||
|
||
echo ${KERI_DEMO_SCRIPT_DIR} | ||
# Incept with the initial alias "sabbir" | ||
kli incept --name rename-test --base "${KERI_TEMP_DIR}" --alias sabbir --file ${KERI_DEMO_SCRIPT_DIR}/data/transferable-sample.json | ||
|
||
# Rename the alias from "sabbir" to "irfan" | ||
kli rename --name rename-test --base "${KERI_TEMP_DIR}" --alias sabbir irfan | ||
|
||
# Extract aliases from status | ||
irfan_alias=$(kli status --name rename-test --base "${KERI_TEMP_DIR}" --alias irfan | grep -Eo 'Alias:\s+(.+)' | awk '{print $2}') | ||
|
||
|
||
|
||
# Check if the extracted alias is "irfan" | ||
if [ "$irfan_alias" = "irfan" ]; then | ||
echo "Alias successfully changed to 'irfan'." | ||
else | ||
echo "Alias did not change !" | ||
|
||
fi | ||
|
||
echo 'Test Complete' |
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