diff --git a/tests/integration/README.md b/tests/integration/README.md index 4962fd0a..7447c3e0 100644 --- a/tests/integration/README.md +++ b/tests/integration/README.md @@ -65,6 +65,8 @@ OK ## Robot framework Note the root privileges when invoking the command (datastore permission issues otherwise, item not found): +The plugin wait start time can be modified via the env var `SYSREPO_INTEGRATION_PLUGIN_TIMEOUT_SECONDS`. The default value is `0.5s`. It's set in `robot-ietf-interfaces/InterfacesInit.resource` and `robot-ietf-routing/RoutingInit.resource`. + To test the interfaces plugin (change env var path): ``` # SYSREPO_INTERFACES_PLUGIN_PATH=/path/to/interfaces/plugin/executable robot robot-ietf-interfaces diff --git a/tests/integration/robot-ietf-interfaces/InterfaceInit.resource b/tests/integration/robot-ietf-interfaces/InterfaceInit.resource index 9b7a15a1..2ec91f4c 100644 --- a/tests/integration/robot-ietf-interfaces/InterfaceInit.resource +++ b/tests/integration/robot-ietf-interfaces/InterfaceInit.resource @@ -4,13 +4,15 @@ Library RPA.JSON Library Process *** Variables *** -${Xpath Interfaces} /ietf-interfaces:interfaces -${Running Datastore} running +${Xpath Interfaces} /ietf-interfaces:interfaces +${Running Datastore} running +${Plugin Timeout Seconds Default} 0.5s +${Plugin Timeout Seconds} %{SYSREPO_INTEGRATION_PLUGIN_TIMEOUT_SECONDS=${Plugin Timeout Seconds Default}} *** Keywords *** Restore Initial Running Datastore Edit Datastore Config ${Connection Default} ${Session Running} ${If Init Str} json - Check If Datastore Is Restored + #Check If Datastore Is Restored Check If Datastore Is Restored [Documentation] Make sure the initial datastore is restored @@ -46,7 +48,7 @@ Cleanup Interfaces Start Plugin ${Plugin}= Start Process %{SYSREPO_INTERFACES_PLUGIN_PATH} Set Global Variable ${Plugin} - Wait For Process ${Plugin} timeout=0.1s on_timeout=continue + Wait For Process ${Plugin} timeout=${Plugin Timeout Seconds} on_timeout=continue Stop Plugin Terminate Process ${Plugin} diff --git a/tests/integration/robot-ietf-routing/RoutingInit.resource b/tests/integration/robot-ietf-routing/RoutingInit.resource index 6132a4fa..6678af28 100644 --- a/tests/integration/robot-ietf-routing/RoutingInit.resource +++ b/tests/integration/robot-ietf-routing/RoutingInit.resource @@ -6,7 +6,8 @@ Library Process *** Variables *** ${Xpath Routing} /ietf-routing:routing ${Running Datastore} running -${Plugin Timeout Seconds} 0.5s +${Plugin Timeout Seconds Default} 0.5s +${Plugin Timeout Seconds} %{SYSREPO_INTEGRATION_PLUGIN_TIMEOUT_SECONDS=${Plugin Timeout Seconds Default}} *** Keywords *** Restore Initial Running Datastore