2024-04-04 17:52:49 +02:00
|
|
|
*** Settings ***
|
|
|
|
Documentation Centreon Plugins for Robot Framework
|
2024-07-10 16:21:28 +02:00
|
|
|
|
2024-04-04 17:52:49 +02:00
|
|
|
Library Process
|
|
|
|
|
2024-07-10 16:21:28 +02:00
|
|
|
|
2024-04-04 17:52:49 +02:00
|
|
|
*** Variables ***
|
2024-07-10 16:21:28 +02:00
|
|
|
${CENTREON_PLUGINS} perl ${CURDIR}${/}..${/}..${/}src${/}centreon_plugins.pl
|
2024-04-04 17:52:49 +02:00
|
|
|
# one we use package, we need to remove the "perl" part to be sure the plugin is executable and is correctly formated
|
|
|
|
# with a shebang at the top.
|
2024-07-10 16:21:28 +02:00
|
|
|
${HOSTNAME} 127.0.0.1
|
|
|
|
${APIPORT} 3000
|
|
|
|
${SNMPPORT} 2024
|
|
|
|
${SNMPVERSION} 2c
|
|
|
|
${PERCENT} %
|
|
|
|
|
2024-04-04 17:52:49 +02:00
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
Start Mockoon
|
|
|
|
[Arguments] ${MOCKOON_JSON}
|
|
|
|
${process} Start Process
|
|
|
|
... mockoon-cli
|
|
|
|
... start
|
|
|
|
... --data
|
|
|
|
... ${MOCKOON_JSON}
|
|
|
|
... --port
|
|
|
|
... 3000
|
2024-07-26 14:56:01 +02:00
|
|
|
Sleep 10s
|
2024-07-10 16:21:28 +02:00
|
|
|
|
2024-04-04 17:52:49 +02:00
|
|
|
Stop Mockoon
|
2024-07-10 16:21:28 +02:00
|
|
|
Terminate All Processes
|