]> git.proxmox.com Git - ceph.git/blobdiff - ceph/monitoring/ceph-mixin/tox.ini
import ceph quincy 17.2.4
[ceph.git] / ceph / monitoring / ceph-mixin / tox.ini
index e6cae299d68fa0d6d3ea2535ef78fa4b5a5649dd..821a5cd5640b732ee8339ee50a4a998ac80b9333 100644 (file)
@@ -22,7 +22,7 @@ whitelist_externals =
     sh
 description =
     check: Ensure that auto-generated files matches the current version
-    fix: Update generated files from jsonnet filse with latest changes
+    fix: Update generated files from jsonnet file with latest changes
     lint: Test if jsonnet files are linted (without any update)
 deps =
     -rrequirements-grafonnet.txt
@@ -56,7 +56,7 @@ whitelist_externals =
 commands =
     behave tests_dashboards/features 
 
-[testenv:alerts-{check,lint}]
+[testenv:alerts-{fix,check,lint}]
 deps =
     -rrequirements-alerts.txt
     pytest
@@ -64,6 +64,7 @@ depends = grafonnet-check
 whitelist_externals =
   promtool
 commands =
+    fix: jsonnet -J vendor -S alerts.jsonnet -o prometheus_alerts.yml
     lint: promtool check rules prometheus_alerts.yml
     test: pytest -rA tests_alerts/test_syntax.py tests_alerts/test_unittests.py
           python3 ./tests_alerts/validate_rules.py