-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding integration tests for the new trusted calls (omni account) (#3173
) * updating context types * exporting di-utils functions * adding initial omni-account-helpers * exporting signer type * adding test for create_account_store * fixing verify_web3_identity helper * adding more helpers * adding test for add_account * removing unnecessary step * adding delay to wait for events to be processed in the worker * incrementing nonce on dispatch_as_signed * updating definitions * reusing old helpers * updating ts helpers * disabling timeout * making nonce explicit * updating comments * fixing usage of build web3 validation data * test add web2 account * fixing remove_accounts opaque call * updating helpers * adding test for remove_accounts * putting back timeout * removing comments * adding helper * adding tests for publicize_account * increasing timeout * adding test for incrementing nonce when dispatch_as_signed * refactoring fundAccount helper * refactoring helper name * refactoring sender name to alice * adding request_intent test * setting up omni-account integration tests * cleaning up helpers * removing unnecessary delay * fixing clippy issue * increasing delay for events to be processed * adding get_account_by_member_hash to omni account repository * getting omni account from the parachain when the in-memory store is not up to date * cleaning up tests, removing delay * increasing timeout * adding support for email verification on create_account_store with email identity * updating type definitions * fixing clippy issue * client packages: use `TrustedOperationAuthenticated` (#3174) Signed-off-by: Jonathan Alvarez <[email protected]> --------- Signed-off-by: Jonathan Alvarez <[email protected]> Co-authored-by: Kai <[email protected]> Co-authored-by: Jonathan Alvarez <[email protected]>
- Loading branch information
1 parent
f753f9c
commit af72747
Showing
24 changed files
with
757 additions
and
107 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
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
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
6 changes: 3 additions & 3 deletions
6
tee-worker/identity/client-sdk/packages/client-sdk/package.json
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
tee-worker/identity/docker/lit-omni-account-multiworker-test.yml
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,22 @@ | ||
services: | ||
lit-omni-account-multiworker-test: | ||
image: litentry/identity-cli:latest | ||
container_name: lit-omni-account-multiworker-test | ||
volumes: | ||
- ../ts-tests:/ts-tests | ||
- ../client-api:/client-api | ||
- ../cli:/usr/local/worker-cli | ||
build: | ||
context: .. | ||
dockerfile: build.Dockerfile | ||
target: deployed-client | ||
depends_on: | ||
litentry-worker-3: | ||
condition: service_healthy | ||
networks: | ||
- litentry-test-network | ||
entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_integration_test.sh omni_account.test.ts 2>&1' " | ||
restart: "no" | ||
networks: | ||
litentry-test-network: | ||
driver: bridge |
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,22 @@ | ||
services: | ||
lit-omni-account-test: | ||
image: litentry/identity-cli:latest | ||
container_name: litentry-omni-account-test | ||
volumes: | ||
- ../ts-tests:/ts-tests | ||
- ../client-api:/client-api | ||
- ../cli:/usr/local/worker-cli | ||
build: | ||
context: .. | ||
dockerfile: build.Dockerfile | ||
target: deployed-client | ||
depends_on: | ||
litentry-worker-1: | ||
condition: service_healthy | ||
networks: | ||
- litentry-test-network | ||
entrypoint: "bash -c '/usr/local/worker-cli/lit_ts_integration_test.sh omni_account.test.ts 2>&1' " | ||
restart: "no" | ||
networks: | ||
litentry-test-network: | ||
driver: bridge |
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
57 changes: 0 additions & 57 deletions
57
tee-worker/identity/litentry/core/native-task/receiver/src/helpers.rs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.