Skip to content

Commit

Permalink
t: cover improper kvs eventlogs
Browse files Browse the repository at this point in the history
Problem: The flux kvs eventlog commands don't have coverage for
improperly formatted eventlogs.

Add some coverage to t1008-kvs-eventlog.t.
  • Loading branch information
chu11 committed Dec 20, 2024
1 parent 1c6c0fb commit 8d7ad52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t1008-kvs-eventlog.t
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ test_expect_success 'flux kvs eventlog get fails on bad input' '
test_must_fail flux kvs eventlog get
'

test_expect_success 'flux kvs eventlog get fails on not an eventlog' '
flux kvs put test.noteventlog=foo &&
test_must_fail flux kvs eventlog get test.noteventlog 2> noteventlog1.err &&
grep "cannot decode" noteventlog1.err
'

test_expect_success 'flux kvs eventlog append fails on bad input' '
test_must_fail flux kvs eventlog append
'
Expand All @@ -236,6 +242,11 @@ test_expect_success 'flux kvs eventlog wait-event fails on bad input' '
test_must_fail flux kvs eventlog wait-event
'

test_expect_success 'flux kvs eventlog wait-event fails on not an eventlog' '
test_must_fail flux kvs eventlog wait-event test.noteventlog foo 2> noteventlog2.err &&
grep "cannot decode" noteventlog2.err
'

#
# ensure no lingering pending requests
#
Expand Down

0 comments on commit 8d7ad52

Please sign in to comment.