From a63ecef5a31d5cc8f07a267f2f1b21e862b3c0c1 Mon Sep 17 00:00:00 2001 From: Lukas Wagner Date: Tue, 14 Nov 2023 13:59:38 +0100 Subject: [PATCH] test: fix vzdump notification test The signature of the PVE::Notify functions have changed, this commit adapts the mocked functions so that the tests work again. Signed-off-by: Lukas Wagner --- test/vzdump_notification_test.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/vzdump_notification_test.pl b/test/vzdump_notification_test.pl index 21c31651..631606bb 100755 --- a/test/vzdump_notification_test.pl +++ b/test/vzdump_notification_test.pl @@ -38,14 +38,14 @@ my $result_properties; my $mock_notification_module = Test::MockModule->new('PVE::Notify'); my $mocked_notify = sub { - my ($channel, $severity, $title, $text, $properties) = @_; + my ($severity, $title, $text, $properties, $metadata) = @_; $result_text = $text; $result_properties = $properties; }; my $mocked_notify_short = sub { - my ($channel, @rest) = @_; - return $mocked_notify->($channel, '', @rest); + my (@params) = @_; + return $mocked_notify->('', @params); }; $mock_notification_module->mock( -- 2.39.2