Skip to content

Commit 7129553

Browse files
committed
testsuite: add job-info.lookup jobid test
Problem: There is no test to ensure job-info.lookup returns a jobid now. Add coverage in t2230-job-info-lookup.t.
1 parent fcf599f commit 7129553

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t2230-job-info-lookup.t

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ test_expect_success 'job-info: generate jobspec for simple test job' '
3333
flux run --dry-run -n1 -N1 sleep 300 > sleeplong.json
3434
'
3535

36+
test_expect_success 'job-info.lookup returns jobid in response' '
37+
jobid=$(submit_job) &&
38+
id=$(flux job id --to=dec ${jobid}) &&
39+
$jq -j -c -n "{id:${id}, keys:[\"jobspec\"], flags:0}" \
40+
| $RPC job-info.lookup > job_info_lookup.out &&
41+
cat job_info_lookup.out | $jq -e ".id == ${id}"
42+
'
43+
3644
#
3745
# job info lookup list w/o jobid & keys
3846
#

0 commit comments

Comments
 (0)