Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gorgone tests execution #1673

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gorgone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- ready_for_review
paths:
- "gorgone/**"
- "!gorgone/tests/**"
- "gorgone/tests/**"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not forget to revert this change, as it may trigger an unexpected release if only tests are modified during a release.

- "!gorgone/veracode.json"
- "!gorgone/.veracode-exclusions"
push:
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
mysql -h mariadb -u root -ppassword 'centreon-storage' < centreon/centreon/www/install/createTablesCentstorage.sql

- name: Run tests
run: robot -v 'DBHOST:mariadb' -v 'DBNAME:centreon' -v 'DBNAME_STORAGE:centreon-storage' -v 'DBUSER:centreon' gorgone/tests
run: robot --exclude manual -v 'DBHOST:mariadb' -v 'DBNAME:centreon' -v 'DBNAME_STORAGE:centreon-storage' -v 'DBUSER:centreon' gorgone/tests

- name: Upload gorgone and robot debug artifacts
if: failure()
Expand Down
2 changes: 2 additions & 0 deletions gorgone/tests/robot/resources/resources.resource
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ Setup Two Gorgone Instances
Start Gorgone debug ${poller_name}
Check Poller Is Connected port=8086 expected_nb=2
Check Poller Communicate 2

ELSE IF '${communication_mode}' == 'pull'

@{central_pull_config}= Copy List ${central_config}
Append To List ${central_pull_config} ${pull_central_config} ${ROOT_CONFIG}pull_node_register_one_node.yaml ${gorgone_core_config}

Expand Down
1 change: 0 additions & 1 deletion gorgone/tests/robot/tests/core/pullwss.robot
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ check one poller can connect to a central and gorgone poller stop first
[Teardown] Stop Gorgone And Remove Gorgone Config @{process_list} sql_file=${ROOT_CONFIG}db_delete_poller.sql
@{process_list} Set Variable pullwss_gorgone_poller_2 pullwss_gorgone_central
Log To Console \nStarting the gorgone setup

Setup Two Gorgone Instances communication_mode=pullwss central_name=pullwss_gorgone_central poller_name=pullwss_gorgone_poller_2
Ctn Check No Error In Logs pullwss_gorgone_poller_2
Log To Console End of tests.
Loading