2013-12-04 16:04:28 +01:00
|
|
|
{
|
|
|
|
"commands": {
|
|
|
|
"copy": "scp -qF ssh_config {0} default:{1}",
|
2013-12-06 14:09:04 +01:00
|
|
|
"exec": "ssh -F ssh_config default '{0}'",
|
|
|
|
"clean": "ssh -F ssh_config default 'rm -f {0}'"
|
2013-12-04 16:04:28 +01:00
|
|
|
},
|
2013-12-04 16:23:44 +01:00
|
|
|
"settings": {
|
|
|
|
"test_root": "/tmp"
|
2013-12-04 16:04:28 +01:00
|
|
|
},
|
|
|
|
"setups": {
|
2013-12-06 10:07:55 +01:00
|
|
|
"^ido_[a-z]{2}sql.test$": {
|
|
|
|
"setup": {
|
|
|
|
"copy": ["files/ido_tests.py >> /tmp/ido_tests.py"]
|
|
|
|
},
|
|
|
|
"teardown": {
|
|
|
|
"clean": ["/tmp/ido_tests.py", "/tmp/ido_tests.pyc"]
|
|
|
|
}
|
2013-12-09 16:03:31 +01:00
|
|
|
},
|
|
|
|
"checkresult.test": {
|
|
|
|
"setup": {
|
|
|
|
"copy": [
|
|
|
|
"files/configs/checkresult.conf >> /tmp/checkresult.conf",
|
|
|
|
"files/wait_for_ido.sh >> /tmp/wait_for_ido.sh",
|
|
|
|
"ido_mysql.test >> /tmp/ido_mysql.py"
|
|
|
|
],
|
|
|
|
"exec": [
|
|
|
|
"sudo mv /tmp/checkresult.conf /etc/icinga2/conf.d/",
|
|
|
|
"mkdir -p -m 0777 /tmp/icinga2/checkresults",
|
|
|
|
"sudo service icinga2 restart",
|
|
|
|
"/tmp/wait_for_ido.sh mysql"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"teardown": {
|
|
|
|
"clean": ["/tmp/ido_mysql.py*"],
|
|
|
|
"exec": [
|
|
|
|
"sudo rm /etc/icinga2/conf.d/checkresult.conf",
|
|
|
|
"sudo service icinga2 restart",
|
|
|
|
"rmdir /tmp/icinga2/checkresults",
|
|
|
|
"/tmp/wait_for_ido.sh mysql",
|
|
|
|
"/tmp/wait_for_ido.sh pgsql && rm /tmp/wait_for_ido.sh"
|
|
|
|
]
|
|
|
|
}
|
2013-12-06 10:07:55 +01:00
|
|
|
}
|
2013-12-04 16:04:28 +01:00
|
|
|
}
|
|
|
|
}
|