From 0a05a75ebf7f92a62d91f6a7f732094cf4603763 Mon Sep 17 00:00:00 2001 From: Evan Adam Date: Mon, 25 Nov 2024 09:53:23 +0100 Subject: [PATCH] ci(gorgone): fix unit tests Refs:MON-106121 --- .github/workflows/gorgone.yml | 2 +- gorgone/tests/unit/class/core.t | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gorgone.yml b/.github/workflows/gorgone.yml index 86dd06681ee..cb78783d9ea 100644 --- a/.github/workflows/gorgone.yml +++ b/.github/workflows/gorgone.yml @@ -95,7 +95,7 @@ jobs: if: failure() uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: - name: plugin-installation-${{ matrix.distrib }} + name: centreon-collect-perl-unit-tests-${{ matrix.distrib }} path: ./lastlog.jsonl retention-days: 1 diff --git a/gorgone/tests/unit/class/core.t b/gorgone/tests/unit/class/core.t index b4a3224c44b..c2df64eef92 100644 --- a/gorgone/tests/unit/class/core.t +++ b/gorgone/tests/unit/class/core.t @@ -1,4 +1,11 @@ #!/usr/bin/perl + +package centreon::common::centreonvault; +sub get_secret; +sub new; + +package main; + use strict; use warnings; @@ -10,7 +17,6 @@ use FindBin; use lib "$FindBin::Bin/../../../"; use gorgone::class::script; use gorgone::class::core; -use centreon::common::centreonvault; sub create_data_set { my $set = {};