tests: add a test to prove cron:run commands work as expected
Closes #8242
This commit is contained in:
29
tests/apps/python/app-cnb-cron.json
Normal file
29
tests/apps/python/app-cnb-cron.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"cron": [
|
||||
{
|
||||
"command": "python3 task.py some cron task",
|
||||
"schedule": "5 5 5 5 5"
|
||||
}
|
||||
],
|
||||
"healthchecks": {
|
||||
"web": [
|
||||
{
|
||||
"attempts": 2,
|
||||
"content": "python/http.server",
|
||||
"name": "check-1",
|
||||
"path": "/",
|
||||
"timeout": 5,
|
||||
"type": "startup",
|
||||
"wait": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"dokku": {
|
||||
// this is a comment for the postdeploy script
|
||||
"postdeploy": "touch /workspace/postdeploy.test",
|
||||
// this is a comment for the predeploy script
|
||||
"predeploy": "touch /workspace/predeploy.test"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,4 +18,4 @@
|
||||
"predeploy": "touch /workspace/predeploy.test"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
29
tests/apps/python/app-cron.json
Normal file
29
tests/apps/python/app-cron.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"cron": [
|
||||
{
|
||||
"command": "python3 task.py some cron task",
|
||||
"schedule": "5 5 5 5 5"
|
||||
}
|
||||
],
|
||||
"healthchecks": {
|
||||
"web": [
|
||||
{
|
||||
"attempts": 2,
|
||||
"content": "python/http.server",
|
||||
"name": "check-1",
|
||||
"path": "/",
|
||||
"timeout": 5,
|
||||
"type": "startup",
|
||||
"wait": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"dokku": {
|
||||
// this is a comment for the postdeploy script
|
||||
"postdeploy": "touch /app/postdeploy.test",
|
||||
// this is a comment for the predeploy script
|
||||
"predeploy": "touch /app/predeploy.test"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user