Skip to content

Commit

Permalink
fix(tests): regressions due to changes in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
bouda1 committed Nov 15, 2024
1 parent 3268958 commit f8a820f
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions tests/broker-engine/negociation.robot
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,13 @@ BESS7
Ctn Broker Config Log central bbdo debug
Ctn Broker Config Log module0 bbdo debug
Ctn Broker Config Log rrd bbdo debug
log to console step4
Ctn Engine Config Set Value ${0} broker_module /usr/lib64/nagios/cbmod.so -c /tmp/etc/centreon-broker/central-module0.json -e /tmp/etc/centreon-engine/config0 disambiguous=True
log to console step5
Ctn Broker Config Add Item central cache_config_directory ${VarRoot}/lib/centreon/config
log to console step6
log to console step1
Remove Directory ${VarRoot}/lib/centreon/config recursive=${True}
log to console step2
Create Directory ${VarRoot}/lib/centreon/config
log to console step3
Copy Directory
... ${EtcRoot}/centreon-engine/config0
... ${VarRoot}/lib/centreon/config/1
log to console step4
Ctn Start Broker
Ctn Start Engine
${result} Ctn Check Connections
Expand Down Expand Up @@ -251,10 +244,7 @@ BESS8
Ctn Config Broker module
Ctn Config Broker rrd
Ctn Config BBDO3 1
Ctn Broker Config Log central core error
Ctn Broker Config Log central sql trace
Ctn Broker Config Log module0 core error
Ctn Broker Config Log rrd core error
Ctn Broker Config Log central bbdo debug
Ctn Broker Config Log module0 bbdo debug
Ctn Broker Config Log rrd bbdo debug
Expand All @@ -269,18 +259,18 @@ BESS8
Ctn Start Broker
Ctn Start Engine

${content} Create List BBDO: engine configuration sent to peer 'Central' with version
${content} Create List BBDO: engine configuration sent to peer 'central-broker-master' with version
${result} Ctn Find In Log With Timeout ${engineLog0} ${start} ${content} 60
Should Be True ${result} A message telling that Engine is sending its configuration should be available in centengine.log

${content} Create List
... BBDO: received engine configuration from Engine peer 'Poller0'
... BBDO: engine configuration for 'Poller0' is outdated
... BBDO: received engine configuration from Engine peer 'central-module-master0'
... BBDO: engine configuration for 'central-module-master0' is outdated
${result} Ctn Find In Log With Timeout ${centralLog} ${start} ${content} 60
Should Be True ${result} A message telling that Broker received the configuration from Engine should be available in central.log. And this configuration should be outdated.

${content} Create List
... BBDO: engine configuration from peer 'Central' received as expected
... BBDO: engine configuration from peer 'central-broker-master' received as expected
${result} Ctn Find In Log With Timeout ${engineLog0} ${start} ${content} 60
Should Be True ${result} Broker should send a response to the EngineConfiguration.

Expand Down Expand Up @@ -324,10 +314,7 @@ BESS9
Ctn Config Broker module
Ctn Config Broker rrd
Ctn Config BBDO3 1
Ctn Broker Config Log central core error
Ctn Broker Config Log central sql trace
Ctn Broker Config Log module0 core error
Ctn Broker Config Log rrd core error
Ctn Broker Config Log central bbdo debug
Ctn Broker Config Log module0 bbdo debug
Ctn Broker Config Log rrd bbdo debug
Expand All @@ -350,18 +337,18 @@ BESS9
Ctn Start Broker
Ctn Start Engine

${content} Create List BBDO: engine configuration sent to peer 'Central' with version
${content} Create List BBDO: engine configuration sent to peer 'central-broker-master' with version
${result} Ctn Find In Log With Timeout ${engineLog0} ${start} ${content} 60
Should Be True ${result} A message telling that Engine is sending its configuration should be available in centengine.log

${content} Create List
... BBDO: received engine configuration from Engine peer 'Poller0'
... BBDO: engine configuration for 'Poller0' is up to date
... BBDO: received engine configuration from Engine peer 'central-module-master0'
... BBDO: engine configuration for 'central-module-master0' is up to date
${result} Ctn Find In Log With Timeout ${centralLog} ${start} ${content} 60
Should Be True ${result} A message telling that Broker received the configuration from Engine should be available in central.log. And this configuration should be up to date.

${content} Create List
... BBDO: engine configuration from peer 'Central' received as expected
... BBDO: engine configuration from peer 'central-broker-master' received as expected
${result} Ctn Find In Log With Timeout ${engineLog0} ${start} ${content} 60
Should Be True ${result} Broker should send a response to the EngineConfiguration.

Expand Down Expand Up @@ -401,9 +388,6 @@ BESS10
Ctn Config Broker module
Ctn Config Broker rrd
Ctn Config BBDO3 1
Ctn Broker Config Log central core error
Ctn Broker Config Log module0 core error
Ctn Broker Config Log rrd core error
Ctn Broker Config Log central bbdo debug
Ctn Broker Config Log module0 bbdo debug
Ctn Broker Config Log rrd bbdo debug
Expand Down

3 comments on commit f8a820f

@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 % ⏱️ Duration
4 1 0 5 80.00 1m14.47757s

Failed Tests

Name Message ⏱️ Duration Suite
BESS10 Poller not visible in resources table (second connection) 13.413 s Negociation

@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 % ⏱️ Duration
1 1 0 2 50.00 1m16.707858s

Failed Tests

Name Message ⏱️ Duration Suite
LCDNU Configuration error 65.201 s Lua-Cache

@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 % ⏱️ Duration
27 2 0 29 93.10 11m19.399096s

Failed Tests

Name Message ⏱️ Duration Suite
BESS8 Engine should send its full configuration. 65.523 s Negociation
BESS2U Poller not visible in database 15.184 s Start-Stop

Please sign in to comment.