Skip to content

Commit

Permalink
enh(tests): new test that can lead to a segfault with the mysql object
Browse files Browse the repository at this point in the history
  • Loading branch information
bouda1 committed Nov 20, 2024
1 parent d1f7d46 commit 65b582e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
10 changes: 5 additions & 5 deletions tests/broker-engine/services-and-bulk-stmt.robot
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ EBMSSMDBD
... The rrd output is removed from the broker configuration.
... While metrics are written in the database, we stop the database and then restart it.
... Broker must recover its connection to the database and continue to write metrics.
[Tags] broker engine unified_sql MON-152743
[Tags] broker engine unified_sql MON-153321
Ctn Clear Metrics
Ctn Config Engine ${1} ${1} ${1000}
# We want all the services to be passive to avoid parasite checks during our test.
Expand Down Expand Up @@ -487,13 +487,13 @@ EBMSSMDBD
Log To Console Let's start some database manipulation...
${start} Get Current Date

FOR ${i} IN RANGE ${120}
Start Process /usr/bin/bash /root/mv_data_bin.sh alias=mv_data_bin
FOR ${i} IN RANGE ${3}
Ctn Stop Mysql
Sleep 10s
Ctn Start Mysql
${content} Create List could not insert data in data_bin
${result} Ctn Find In Log With Timeout ${centralLog} ${start} ${content} 10
Log To Console ${result}
${result} Wait For Process mv_data_bin
Log To Console ${result}
END

*** Keywords ***
Expand Down
17 changes: 9 additions & 8 deletions tests/resources/resources.resource
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,14 @@ Ctn Dump Ba On Error

Ctn Process Service Result Hard
[Arguments] ${host} ${svc} ${state} ${output}
Repeat Keyword
... 3 times
... Ctn Process Service Check Result
... ${host}
... ${svc}
... ${state}
... ${output}
FOR ${idx} IN RANGE 3
Ctn Process Service Check Result
... ${host}
... ${svc}
... ${state}
... ${output}
Sleep 1s
END

Ctn Wait For Engine To Be Ready
[Arguments] ${start} ${nbEngine}=1
Expand All @@ -386,7 +387,7 @@ Ctn Wait For Engine To Be Ready
${result} Ctn Find In Log With Timeout
... ${ENGINE_LOG}/config${i}/centengine.log
... ${start} ${content} 60
... verbose=False
... verbose=False
Should Be True
... ${result}
... A message telling check_for_external_commands() should be available in config${i}/centengine.log.
Expand Down

0 comments on commit 65b582e

Please sign in to comment.