-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from cheqd/DEV-720
Get rid of circle dependencies from vdrtools
- Loading branch information
Andrew Nikitin
committed
Feb 25, 2022
1 parent
54ec64f
commit 5e01f29
Showing
6 changed files
with
299 additions
and
420 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 |
---|---|---|
|
@@ -233,7 +233,7 @@ jobs: | |
journalctl -u service-name.service --no-pager | ||
run-cosmos-tests-using-cli: | ||
name: Run cosmos tests using CLI | ||
name: Run cosmos and identity tests using CLI | ||
runs-on: ubuntu-20.04 | ||
needs: [build-node-image, build-binary] | ||
steps: | ||
|
@@ -267,47 +267,19 @@ jobs: | |
working-directory: ./tests/e2e | ||
run: | | ||
pip3 install -r requirements.txt >> /dev/null | ||
pip3 install --force-reinstall 'git+https://gitlab.com/evernym/verity/[email protected]#egg=vdr-tools&subdirectory=wrappers/python' -U | ||
cp -R ${NODE_CONFIGS_BASE}/client/.cheqdnode /home/runner/ | ||
sudo chmod -R 777 /home/runner | ||
- name: Run tests | ||
- name: Run cosmos-related tests | ||
run: | | ||
export OP0_ADDRESS=$(cheqd-noded keys list --keyring-backend "test" | sed -nr 's/.*address: (.*?).*/\1/p' | sed -n 1p | sed 's/\r//g') | ||
export OP1_ADDRESS=$(cheqd-noded keys list --keyring-backend "test" | sed -nr 's/.*address: (.*?).*/\1/p' | sed -n 2p | sed 's/\r//g') | ||
pytest -v -rP tests/e2e/test_cosmos.py | ||
run-identity-tests-using-vdr: | ||
name: Run identity tests using VDR | ||
runs-on: ubuntu-20.04 | ||
needs: build-testnet-image | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Download testnet image | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: cheqd-testnet-image.tar | ||
|
||
- name: Load testnet image | ||
run: docker load -i cheqd-testnet-image.tar | ||
|
||
- name: Run test net container | ||
run: | | ||
docker run -d --rm -p "26657:26657" cheqd-testnet | ||
bash tests/networks/tools/wait-for-chain.sh | ||
- name: Set up test environment | ||
working-directory: ./tests/e2e | ||
- name: Run identity-related tests | ||
run: | | ||
sudo cp libindy.so /usr/lib/libindy.so | ||
pip3 install -r requirements.txt >> /dev/null | ||
pip3 install --force-reinstall 'git+https://gitlab.com/evernym/verity/[email protected]#egg=vdr-tools&subdirectory=wrappers/python' -U | ||
- name: Run tests | ||
run: | | ||
export OP0_ADDRESS="" | ||
export OP1_ADDRESS="" | ||
export OP0_ADDRESS=$(cheqd-noded keys list --keyring-backend "test" | sed -nr 's/.*address: (.*?).*/\1/p' | sed -n 1p | sed 's/\r//g') | ||
export OP1_ADDRESS=$(cheqd-noded keys list --keyring-backend "test" | sed -nr 's/.*address: (.*?).*/\1/p' | sed -n 2p | sed 's/\r//g') | ||
pytest -v -rP tests/e2e/test_identity.py | ||
run-identity-tests-using-cli: | ||
|
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
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
Oops, something went wrong.