tests: add a test to prove cron:run commands work as expected

Closes #8242
This commit is contained in:
Jose Diaz-Gonzalez
2026-01-04 00:39:06 -05:00
parent b1ebd694e6
commit c19cb81c4b
8 changed files with 260 additions and 1 deletions

View 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"
}
}
}

View File

@@ -18,4 +18,4 @@
"predeploy": "touch /workspace/predeploy.test"
}
}
}
}

View 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"
}
}
}