@@ -179,6 +179,13 @@ func (s *IntegrationTestSuite) TestNewQueryCmdMember() {
179
179
false ,
180
180
nil ,
181
181
},
182
+ "invalid member" : {
183
+ []string {
184
+ "" ,
185
+ },
186
+ false ,
187
+ nil ,
188
+ },
182
189
}
183
190
184
191
for name , tc := range testCases {
@@ -265,6 +272,12 @@ func (s *IntegrationTestSuite) TestNewQueryCmdProposal() {
265
272
},
266
273
false ,
267
274
},
275
+ "invalid id" : {
276
+ []string {
277
+ fmt .Sprintf ("%d" , - 1 ),
278
+ },
279
+ false ,
280
+ },
268
281
}
269
282
270
283
for name , tc := range testCases {
@@ -352,6 +365,20 @@ func (s *IntegrationTestSuite) TestNewQueryCmdVote() {
352
365
},
353
366
false ,
354
367
},
368
+ "invalid proposal id" : {
369
+ []string {
370
+ fmt .Sprintf ("%d" , - 1 ),
371
+ s .permanentMember .String (),
372
+ },
373
+ false ,
374
+ },
375
+ "invalid voter" : {
376
+ []string {
377
+ fmt .Sprintf ("%d" , s .proposalID ),
378
+ "" ,
379
+ },
380
+ false ,
381
+ },
355
382
}
356
383
357
384
for name , tc := range testCases {
@@ -396,6 +423,12 @@ func (s *IntegrationTestSuite) TestNewQueryCmdVotes() {
396
423
},
397
424
false ,
398
425
},
426
+ "invalid proposal id" : {
427
+ []string {
428
+ fmt .Sprintf ("%d" , - 1 ),
429
+ },
430
+ false ,
431
+ },
399
432
}
400
433
401
434
for name , tc := range testCases {
@@ -440,6 +473,12 @@ func (s *IntegrationTestSuite) TestNewQueryCmdTallyResult() {
440
473
},
441
474
false ,
442
475
},
476
+ "invalid proposal id" : {
477
+ []string {
478
+ fmt .Sprintf ("%d" , - 1 ),
479
+ },
480
+ false ,
481
+ },
443
482
}
444
483
445
484
for name , tc := range testCases {
@@ -496,6 +535,14 @@ func (s *IntegrationTestSuite) TestNewQueryCmdGrants() {
496
535
false ,
497
536
0 ,
498
537
},
538
+ "invalid grantee" : {
539
+ []string {
540
+ "" ,
541
+ foundation.ReceiveFromTreasuryAuthorization {}.MsgTypeURL (),
542
+ },
543
+ false ,
544
+ 0 ,
545
+ },
499
546
}
500
547
501
548
for name , tc := range testCases {
0 commit comments