From e9ed73c932f7e998e729f000d6e01112bc99fc8c Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:38:19 -0300 Subject: [PATCH] test(open-code-scanning-alerts): fix mock data to use correct severity field --- tests/open-code-scanning-alerts-exceeding-limits.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/open-code-scanning-alerts-exceeding-limits.t b/tests/open-code-scanning-alerts-exceeding-limits.t index cbe062b..bec2895 100644 --- a/tests/open-code-scanning-alerts-exceeding-limits.t +++ b/tests/open-code-scanning-alerts-exceeding-limits.t @@ -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 = (