Skip to content

Commit

Permalink
test all plugins
Browse files Browse the repository at this point in the history
REF:CTOR-474
  • Loading branch information
Evan-Adam committed Apr 10, 2024
1 parent 9ed4edf commit 01971b6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/test-all-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def remove_plugin(plugin, archi):
if archi == "deb":
output_status = (subprocess.run("apt purge -y " + plugin.lower(), shell=True, check=False)).returncode
elif archi == "rpm":
output_status = (subprocess.run("dnf purge -y " + plugin, shell=True, check=False)).returncode
output_status = (subprocess.run("dnf remove -y " + plugin, shell=True, check=False)).returncode
else:
print(f"Unknown architecture, expected deb or rpm, got {archi}. Exiting.")
exit(1)
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/docker-builder-packaging-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ concurrency:

on:
workflow_dispatch:
push:
branches:
- develop
paths:
- ".github/workflows/docker-builder-packaging-plugins.yml"
- ".github/docker/packaging/*"
pull_request:
paths:
- ".github/workflows/docker-builder-packaging-plugins.yml"
- ".github/docker/packaging/*"

jobs:
create-and-push-docker:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/docker-builder-testing-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ concurrency:

on:
workflow_dispatch:

push:
branches:
- develop
paths:
- ".github/workflows/docker-builder-testing-plugins.yml"
- ".github/docker/testing/*"
pull_request:
paths:
- ".github/workflows/docker-builder-testing-plugins.yml"
- ".github/docker/testing/*"

jobs:
create-and-push-docker:
Expand Down
1 change: 1 addition & 0 deletions src/centreon/plugins/dbi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use DBI;
use Digest::MD5 qw(md5_hex);
use POSIX qw(:signal_h);


my %handlers = ( ALRM => {} );

sub new {
Expand Down

0 comments on commit 01971b6

Please sign in to comment.