Component for testing Runner configuration interactions.
⚠️ This component is not for production use, it is deployed only to testing.
Create the following configuration.
{
"parameters": {
"operation": "list"
}
}Valid values for operation are:
list-- list files in input mapping foldersdump-config-- print the config.json fileunsafe-dump-config-- print the config file including secretssleep-- sleep for a number of seconds given in thetimeoutparameterdump-env-- show environment variablesprint-logs-- send logs to GELF logger, same parameters as in sync actions belowuser-error- causes process to end with exit code1application-error- causes process to end with exit code2
You can pass arbitrary data in the parameters.arbitrary node.
Run the component php src\run.php.
Component supports following sync actions:
dumpConfig- dumpsconfig.jsonto outputdumpEnv- dumps all ENV vars to outputtimeout- sleeps 60 seconds, causing sync action timeoutemptyJsonArray- outputs empty JSON array ([])emptyJsonObject- outputs empty JSON object ({})invalidJson- outputs invalid JSONnoResponse- returns with no outputuserError- causes process to end with exit code1applicationError- causes process to end with exit code2printLogs- sends logs to GELF logger- requires
KBC_LOGGER_ADDRandKBC_LOGGER_PORTenv vars - supports configuration:
{ "parameters": { "logs": { "transport": "udp", # udp, tcp, http "records": [ {"level": "debug", "message": "debug message"}, {"level": "critical", "message": "critical message", "context": {"extraKey": "extraVal"}} ] } } }
- requires
Clone this repository.
Run the test suite using this command:
docker compose run --rm dev composer tests
For information about deployment and integration with KBC, please refer to the deployment section of developers documentation
MIT licensed, see LICENSE file.