summaryrefslogtreecommitdiff
path: root/roles/save-cinder-migration-results/templates/migration_results_reporter.py.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/save-cinder-migration-results/templates/migration_results_reporter.py.j2')
-rw-r--r--roles/save-cinder-migration-results/templates/migration_results_reporter.py.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/save-cinder-migration-results/templates/migration_results_reporter.py.j2 b/roles/save-cinder-migration-results/templates/migration_results_reporter.py.j2
new file mode 100644
index 000000000..805eb33de
--- /dev/null
+++ b/roles/save-cinder-migration-results/templates/migration_results_reporter.py.j2
@@ -0,0 +1,10 @@
+import unittest
+
+
+class CinderMigrationsMatrixTest(unittest.TestCase):
+
+{% for test_case in migration_test_results %}
+ def test__{{ test_case.source }}_to_{{ test_case.destination }}(self):
+ self.assertEqual({{ test_case.result }}, 0)
+
+{% endfor %}