Skip to content

Commit

Permalink
test(open-code-scanning-alerts): fix mock data to use correct severit…
Browse files Browse the repository at this point in the history
…y field
  • Loading branch information
scriptprivate authored Sep 17, 2024
1 parent d6a889a commit e9ed73c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/open-code-scanning-alerts-exceeding-limits.t
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ subtest 'Open code scanning alerts exceeding limits' => sub {

my $mock_response = Mojo::UserAgent -> set_mock_response(Test::MockObject -> new);
$mock_response -> set_always('code', 200);
$mock_response -> set_always('json', [
{ state => 'open', rule => { severity => 'high' } },
{ state => 'open', rule => { severity => 'high' } },
{ state => 'open', rule => { severity => 'medium' } },
$mock_response->set_always('json', [
{ state => 'open', rule => { security_severity_level => 'high' } },
{ state => 'open', rule => { security_severity_level => 'high' } },
{ state => 'open', rule => { security_severity_level => 'medium' } },
]);

my %severity_limits = (
Expand Down

0 comments on commit e9ed73c

Please sign in to comment.