File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -322,4 +322,19 @@ test_expect_success 'lookup request with empty payload fails with EPROTO(71)' '
322322 ${RPC} job-info.lookup 71 </dev/null
323323'
324324
325+ test_expect_success ' lookup request with keys not and array fails with EPROTO(71)' '
326+ $jq -j -c -n "{id:12345, keys:1, flags:0}" \
327+ | ${RPC} job-info.lookup 71
328+ '
329+
330+ test_expect_success ' lookup request with invalid keys fails with EPROTO(71)' '
331+ $jq -j -c -n "{id:12345, keys:[1], flags:0}" \
332+ | ${RPC} job-info.lookup 71
333+ '
334+
335+ test_expect_success ' lookup request with invalid flags fails with EPROTO(71)' '
336+ $jq -j -c -n "{id:12345, keys:[\"jobspec\"], flags:8191}" \
337+ | ${RPC} job-info.lookup 71
338+ '
339+
325340test_done
You can’t perform that action at this time.
0 commit comments