Add e2e tests for gRPC requests and CLI commands #13

Merged
ashwin merged 14 commits from pm-cli-tests into main 2024-03-04 11:16:11 +00:00
5 changed files with 1 additions and 6 deletions
Showing only changes of commit 4abe5569ee - Show all commits

View File

@ -608,7 +608,6 @@ type GenesisState struct {
// params defines all the parameters of the module. // params defines all the parameters of the module.
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
// bonds defines all the bonds // bonds defines all the bonds
// TODO: Add nullable = false ?
Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty"` Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty"`
} }

View File

@ -123,8 +123,6 @@ message QueryAuctionsByBidderRequest {
message QueryAuctionsByBidderResponse { message QueryAuctionsByBidderResponse {
// List of auctions // List of auctions
Auctions auctions = 1; Auctions auctions = 1;
// TODO: Add pagination?
} }
// AuctionsByOwnerRequest is the format for querying all auctions created by an owner // AuctionsByOwnerRequest is the format for querying all auctions created by an owner

View File

@ -13,6 +13,5 @@ message GenesisState {
Params params = 1 [(gogoproto.nullable) = false]; Params params = 1 [(gogoproto.nullable) = false];
// bonds defines all the bonds // bonds defines all the bonds
// TODO: Add nullable = false ?
repeated Bond bonds = 2 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""]; repeated Bond bonds = 2 [(gogoproto.moretags) = "json:\"bonds\" yaml:\"bonds\""];
} }

View File

@ -222,7 +222,7 @@ func (ets *E2ETestSuite) TestGetAuctionsByOwnerGrpc() {
}, },
{ {
"valid request to get auctions by owner", "valid request to get auctions by owner",
fmt.Sprintf("%s/%s", reqURL, randomOwnerAddress), // TODO: use ownerAddress? fmt.Sprintf("%s/%s", reqURL, ownerAddress),
"", "",
false, false,
}, },

View File

@ -28,7 +28,6 @@ type GenesisState struct {
// params defines all the parameters of the module. // params defines all the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// bonds defines all the bonds // bonds defines all the bonds
// TODO: Add nullable = false ?
Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"` Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"`
} }