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

feat: implementing SubmitTx gRPC endpoint #2147

Merged
merged 11 commits into from
Sep 1, 2022
Prev Previous commit
Next Next commit
test: adding failure cases
  • Loading branch information
seantking committed Aug 31, 2022
commit 5168cfd90e7c62dee21a513893c76716afb2cb9e
Original file line number Diff line number Diff line change
Expand Up @@ -113,37 +113,27 @@ func (suite *KeeperTestSuite) TestSubmitTx() {
},
true,
},
/*
{
"failure - owner address is empty", func() {
owner = ""
connectionId = path.EndpointA.ConnectionID
},
},
{
"failure - active channel does not exist for connection ID", func() {
owner = TestOwnerAddress
connectionId = "connection-100"
},
{
"failure - owner address is empty", func() {
owner = ""
connectionId = path.EndpointA.ConnectionID
},
{
"failure - active channel does not exist for port ID", func() {
owner = "cosmos153lf4zntqt33a4v0sm5cytrxyqn78q7kz8j8x5"
connectionId = path.EndpointA.ConnectionID
},
false,
},
{
"failure - active channel does not exist for connection ID", func() {
owner = TestOwnerAddress
connectionId = "connection-100"
},
{
"failure - module does not own channel capability", func() {
owner = TestOwnerAddress
connectionId = path.EndpointA.ConnectionID
icaMsg = &banktypes.MsgSend{
FromAddress: "source-address",
ToAddress: "destination-address",
Amount: sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100))),
}
},
false,
},
{
"failure - active channel does not exist for port ID", func() {
owner = "cosmos153lf4zntqt33a4v0sm5cytrxyqn78q7kz8j8x5"
connectionId = path.EndpointA.ConnectionID
},
*/
false,
},
}

for _, tc := range testCases {
Expand Down