Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Missing integration tests for interchain accounts #733

Merged
merged 3 commits into from
Mar 18, 2022

Conversation

devashishdxt
Copy link
Collaborator

Solution: Added integration tests

@codecov
Copy link

codecov bot commented Mar 17, 2022

Codecov Report

Merging #733 (d2e5830) into master (67b2668) will decrease coverage by 2.61%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #733      +/-   ##
==========================================
- Coverage   21.03%   18.41%   -2.62%     
==========================================
  Files          89       89              
  Lines       10226    10050     -176     
==========================================
- Hits         2151     1851     -300     
- Misses       7599     7762     +163     
+ Partials      476      437      -39     
Flag Coverage Δ
integration_tests 18.41% <ø> (ø)
unit_tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
x/icaauth/types/types.go 0.00% <0.00%> (-100.00%) ⬇️
x/nft/keeper/owners.go 17.02% <0.00%> (-68.09%) ⬇️
x/nft/keeper/grpc_query.go 12.50% <0.00%> (-53.75%) ⬇️
x/nft/keeper/collection.go 23.18% <0.00%> (-49.28%) ⬇️
x/nft/keeper/nft.go 51.85% <0.00%> (-48.15%) ⬇️
x/nft/types/msgs.go 0.00% <0.00%> (-38.89%) ⬇️
x/nft/client/cli/query.go 33.51% <0.00%> (-35.20%) ⬇️
x/nft/keeper/denom.go 51.28% <0.00%> (-33.34%) ⬇️
x/nft/client/cli/tx.go 43.75% <0.00%> (-32.30%) ⬇️
x/icaauth/types/message_register_account.go 0.00% <0.00%> (-26.67%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 67b2668...d2e5830. Read the comment docs.

@@ -0,0 +1,153 @@
import json
import subprocess
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blacklist: Consider possible security implications associated with the subprocess module.
(at-me in a reply with help or ignore)

rsp = json.loads(subprocess.check_output(relayer + ["query", "connections", "ica-controller-1"]))
controller_connection = rsp["result"][0]

rsp = json.loads(subprocess.check_output(relayer + ["query", "connections", "ica-host-1"]))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subprocess_without_shell_equals_true: subprocess call - check for execution of untrusted input.
(at-me in a reply with help or ignore)

@tomtau tomtau requested a review from macong-cdc March 17, 2022 09:18
Copy link
Collaborator

@yihuang yihuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@devashishdxt devashishdxt merged commit 0744598 into crypto-org-chain:master Mar 18, 2022
@devashishdxt devashishdxt deleted the ica-integ-tests branch March 18, 2022 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants