This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(integration): cleanup integration test setup
- Loading branch information
1 parent
2a435f5
commit a6c644d
Showing
3 changed files
with
21 additions
and
16 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
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
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd integration/test/devnet | ||
# Setup Lotus API token | ||
export `docker compose exec lotus lotus auth api-info --perm=admin` | ||
IFS=: read -r token path <<< "${FULLNODE_API_INFO}" | ||
# Setup Motion Wallet | ||
MOTION_WALLET_ADDR=`docker compose exec lotus lotus wallet new` | ||
MOTION_WALLET_KEY=`docker compose exec lotus lotus wallet export ${MOTION_WALLET_ADDR}` | ||
LOTUS_WALLET_DEFAULT_ADDR=`docker compose exec lotus lotus wallet default` | ||
docker compose exec lotus lotus send --from=${LOTUS_WALLET_DEFAULT_ADDR} ${MOTION_WALLET_ADDR} 10 | ||
echo "LOTUS_TOKEN=${token}" >> $1 | ||
echo "MOTION_WALLET_ADDR=${MOTION_WALLET_ADDR}" >> $1 | ||
echo "MOTION_WALLET_KEY=${MOTION_WALLET_KEY}" >> $1 | ||
echo "MOTION_STORAGE_PROVIDERS=t01000" >> $1 | ||
echo "MOTION_API_ENDPOINT=http://localhost:40080" >> $1 | ||
echo "SINGULARITY_API_ENDPOINT=http://localhost:9091" >> $1 |