Skip to content

Commit

Permalink
Fix: tests settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thearchit3ct committed Oct 9, 2023
1 parent e1628d4 commit 918bb1f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
6 changes: 1 addition & 5 deletions tests/broker-database/dedicated-connection.robot
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
*** Settings ***
Documentation Centreon Broker data_bin and logs dedicated connections
Resource ../resources/resources.robot
Library DateTime
Library Examples
Library ../resources/Broker.py
Library ../resources/Common.py
Resource ../resources/resources.resource

Suite Setup Clean Before Suite
Suite Teardown Clean After Suite
Expand Down
10 changes: 1 addition & 9 deletions tests/broker-engine/notification.robot
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
*** Settings ***
Documentation Centreon notification
Resource ../resources/resources.robot
Library Process
Library DatabaseLibrary
Library OperatingSystem
Library DateTime
Library Collections
Library ../resources/Engine.py
Library ../resources/Broker.py
Library ../resources/Common.py
Resource ../resources/resources.resource

Suite Setup Clean Before Suite
Suite Teardown Clean After Suite
Expand Down
15 changes: 10 additions & 5 deletions tests/engine/forced_checks.robot
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ EFHC2
[Documentation] Engine is configured with hosts and we force checks on one 5 times on bbdo2
[Tags] engine external_cmd log-v2
Config Engine ${1}
Init Config
Config Broker central
Config Broker rrd
Config Broker module ${1}
Engine Config Set Value ${0} log_legacy_enabled ${0}
Engine Config Set Value ${0} log_v2_enabled ${1}
Expand Down Expand Up @@ -93,7 +94,8 @@ EFHCU1
[Documentation] Engine is configured with hosts and we force checks on one 5 times on bbdo3. Bbdo3 has no impact on this behavior. resources table is cleared before starting broker.
[Tags] engine external_cmd
Config Engine ${1}
Init Config
Config Broker central
Config Broker rrd
Config Broker module ${1}
Engine Config Set Value ${0} log_legacy_enabled ${0}
Engine Config Set Value ${0} log_v2_enabled ${1}
Expand Down Expand Up @@ -140,7 +142,8 @@ EFHCU2
[Documentation] Engine is configured with hosts and we force checks on one 5 times on bbdo3. Bbdo3 has no impact on this behavior.
[Tags] engine external_cmd
Config Engine ${1}
Init Config
Config Broker central
Config Broker rrd
Config Broker module ${1}
Engine Config Set Value ${0} log_legacy_enabled ${0}
Engine Config Set Value ${0} log_v2_enabled ${1}
Expand Down Expand Up @@ -186,7 +189,8 @@ EMACROS
[Documentation] macros ADMINEMAIL and ADMINPAGER are replaced in check outputs
[Tags] engine external_cmd macros
Config Engine ${1}
Init Config
Config Broker central
Config Broker rrd
Config Broker module ${1}
Engine Config Set Value ${0} log_legacy_enabled ${0}
Engine Config Set Value ${0} log_v2_enabled ${1}
Expand Down Expand Up @@ -219,7 +223,8 @@ EMACROS_NOTIF
[Documentation] macros ADMINEMAIL and ADMINPAGER are replaced in notification commands
[Tags] engine external_cmd macros
Config Engine ${1}
Init Config
Config Broker central
Config Broker rrd
Config Broker module ${1}
Engine Config Set Value ${0} log_legacy_enabled ${0}
Engine Config Set Value ${0} log_v2_enabled ${1}
Expand Down
10 changes: 5 additions & 5 deletions tests/resources/import.resource
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Library Telnet
# creation
Resource resources.resource
# Python Library
Library Engine.py
Library Broker.py
Library Bench.py
Library Common.py
Library specific-duplication.py
# Library Engine.py
# Library Broker.py
# Library Bench.py
# Library Common.py
# Library specific-duplication.py

3 comments on commit 918bb1f

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
348 9 0 357 97.48

Failed Tests

Name Message ⏱️ Duration Suite
BEHOSTCHECK hosts table not updated 36.166 s External-Commands2
BERDUC3U1 There are events sent several times, see /tmp/lua-engine.log and /tmp/lua.log 55.899 s Retention-Duplicates
ENRSCHE1 the delta of last_check and next_check is not equal to 60. 251.298 s Scheduler
BSCSSK1 No message about the bad connection. 31.103 s Bbdo-Server-Client-Ko
EFHC1 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 86.348 s Forced Checks
EFHC2 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 91.711 s Forced Checks
EFHCU1 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 90.27 s Forced Checks
EFHCU2 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 90.318 s Forced Checks
EMACROS_NOTIF An Initial host state on host_1 should be raised before we can start our external commands. Also teardown failed: Several failures occurred: 1) Invalid IF condition: Evaluating expression 'docker is None' failed: NameError: name 'docker' is not defined nor importable as module Variables in the original expression '${docker_env} is None' were resolved before the expression was evaluated. Try using '$docker_env is None' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. 2) Engine badly stopped with 1 instances - code returned 1. 68.323 s Forced Checks

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
389 29 0 418 93.06

Failed Tests

Name Message ⏱️ Duration Suite
DEDICATED_DB_CONNECTION_${nb_conn}_${store_in_data_bin} Variable '${nb_conn}' not found. 2.445 s Dedicated-Connection
BENCH_1000STATUS fail to save broker bench to database 566.241 s Bench
BENCH_10000STATUS fail to save broker bench to database 565.487 s Bench
BENCH_1000STATUS_100ENGINE "fail to save broker bench to database" 762.605 s Bench
BENCH_1000STATUS_100ENGINE_2 "fail to save broker bench to database" 787.154 s Bench
BENCH_1000STATUS_100ENGINE_3 "fail to save broker bench to database" 824.068 s Bench
EBDP1 ((4,),) != () 81.8 s Delete-Poller
BEHOSTCHECK hosts table not updated 36.389 s External-Commands2
not1 No keyword with name 'Get Current Date' found. 0.118 s Notification
not2 No keyword with name 'Get Current Date' found. 0.099 s Notification
not3 No keyword with name 'Get Current Date' found. 0.099 s Notification
not4 No keyword with name 'Get Current Date' found. 0.102 s Notification
not5 No keyword with name 'Get Current Date' found. 0.104 s Notification
not6 No keyword with name 'Get Current Date' found. 0.105 s Notification
not7 No keyword with name 'Get Current Date' found. 0.094 s Notification
not8 No keyword with name 'Get Current Date' found. 0.096 s Notification
not9 No keyword with name 'Get Current Date' found. 0.097 s Notification
not10 No keyword with name 'Get Current Date' found. 0.098 s Notification
not11 No keyword with name 'Get Current Date' found. 0.099 s Notification
not12 No keyword with name 'Get Current Date' found. 0.097 s Notification
not13 No keyword with name 'Get Current Date' found. 0.121 s Notification
BERDUC3U1 There are events sent several times, see /tmp/lua-engine.log and /tmp/lua.log 55.912 s Retention-Duplicates
ENRSCHE1 the delta of last_check and next_check is not equal to 60. 250.702 s Scheduler
BSCSSK1 No message about the bad connection. 31.114 s Bbdo-Server-Client-Ko
EFHC1 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 86.311 s Forced Checks
EFHC2 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 91.659 s Forced Checks
EFHCU1 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 90.213 s Forced Checks
EFHCU2 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 85.255 s Forced Checks
EMACROS_NOTIF An Initial host state on host_1 should be raised before we can start our external commands. Also teardown failed: Several failures occurred: 1) Invalid IF condition: Evaluating expression 'docker is None' failed: NameError: name 'docker' is not defined nor importable as module Variables in the original expression '${docker_env} is None' were resolved before the expression was evaluated. Try using '$docker_env is None' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. 2) Engine badly stopped with 1 instances - code returned 1. 66.895 s Forced Checks

@github-actions
Copy link

Choose a reason for hiding this comment

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

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
390 28 0 418 93.30

Failed Tests

Name Message ⏱️ Duration Suite
DEDICATED_DB_CONNECTION_${nb_conn}_${store_in_data_bin} Variable '${nb_conn}' not found. 4.201 s Dedicated-Connection
BENCH_1000STATUS fail to save broker bench to database 575.374 s Bench
BENCH_10000STATUS fail to save broker bench to database 570.285 s Bench
BENCH_1000STATUS_100ENGINE "fail to save broker bench to database" 721.029 s Bench
BENCH_1000STATUS_100ENGINE_2 "fail to save broker bench to database" 726.326 s Bench
BENCH_1000STATUS_100ENGINE_3 "fail to save broker bench to database" 741.565 s Bench
BEHOSTCHECK hosts table not updated 35.924 s External-Commands2
not1 No keyword with name 'Get Current Date' found. 0.118 s Notification
not2 No keyword with name 'Get Current Date' found. 0.097 s Notification
not3 No keyword with name 'Get Current Date' found. 0.092 s Notification
not4 No keyword with name 'Get Current Date' found. 0.096 s Notification
not5 No keyword with name 'Get Current Date' found. 0.096 s Notification
not6 No keyword with name 'Get Current Date' found. 0.094 s Notification
not7 No keyword with name 'Get Current Date' found. 0.085 s Notification
not8 No keyword with name 'Get Current Date' found. 0.085 s Notification
not9 No keyword with name 'Get Current Date' found. 0.088 s Notification
not10 No keyword with name 'Get Current Date' found. 0.087 s Notification
not11 No keyword with name 'Get Current Date' found. 0.086 s Notification
not12 No keyword with name 'Get Current Date' found. 0.194 s Notification
not13 No keyword with name 'Get Current Date' found. 0.119 s Notification
BERDUC3U1 There are events sent several times, see /tmp/lua-engine.log and /tmp/lua.log 55.751 s Retention-Duplicates
ENRSCHE1 the delta of last_check and next_check is not equal to 60. 250.446 s Scheduler
BSCSSK1 No message about the bad connection. 31.113 s Bbdo-Server-Client-Ko
EFHC1 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 87.958 s Forced Checks
EFHC2 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 91.659 s Forced Checks
EFHCU1 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 86.228 s Forced Checks
EFHCU2 Message about SCHEDULE FORCED CHECK and HOST ALERT should be available in log. 86.283 s Forced Checks
EMACROS_NOTIF An Initial host state on host_1 should be raised before we can start our external commands. Also teardown failed: Several failures occurred: 1) Invalid IF condition: Evaluating expression 'docker is None' failed: NameError: name 'docker' is not defined nor importable as module Variables in the original expression '${docker_env} is None' were resolved before the expression was evaluated. Try using '$docker_env is None' syntax to avoid that. See Evaluating Expressions appendix in Robot Framework User Guide for more details. 2) Engine badly stopped with 1 instances - code returned 1. 71.364 s Forced Checks

Please sign in to comment.