-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MON-22331] [Plugins] Mode sql-string not working anymore (#4746)
- Loading branch information
1 parent
ef9b28a
commit c6bfbd1
Showing
4 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
*** Settings *** | ||
Documentation Database Mysql plugin | ||
Library OperatingSystem | ||
Library Process | ||
Library String | ||
|
||
Test Timeout 120s | ||
|
||
|
||
*** Variables *** | ||
${CENTREON_PLUGINS} ${CURDIR}${/}..${/}..${/}..${/}src${/}centreon_plugins.pl | ||
|
||
${CMD} perl ${CENTREON_PLUGINS} --plugin=database::mysql::plugin | ||
|
||
&{sql_string_test1} | ||
... result=UNKNOWN: Need to specify data_source arguments. | ||
@{sql_string_tests} | ||
... &{sql_string_test1} | ||
|
||
|
||
*** Test Cases *** | ||
Database Mysql sql string mode | ||
[Documentation] Mode sql string (common protocol database) | ||
[Tags] database mysql sql-string | ||
FOR ${sql_string_test} IN @{sql_string_tests} | ||
${command} Catenate | ||
... ${CMD} | ||
... --mode=sql-string | ||
${output} Run ${command} | ||
${output} Strip String ${output} | ||
Should Be Equal As Strings | ||
... ${output} | ||
... ${sql_string_test.result} | ||
... Wrong output result for compliance of ${sql_string_test.result}{\n}Command output:{\n}${output}{\n}{\n}{\n} | ||
END |