Add initial testRail bot implementation
Related-PROD: PRODX-5842
Change-Id: Id2ac9b2275ced80a95019d30ae9e0f7a967f07ec
diff --git a/testrail_bot/control/models.py b/testrail_bot/control/models.py
new file mode 100644
index 0000000..6a13c8e
--- /dev/null
+++ b/testrail_bot/control/models.py
@@ -0,0 +1,23 @@
+from django.core.files.storage import FileSystemStorage
+from django.db import models
+
+
+class TestRun(models.Model):
+ project_name = models.CharField(max_length=300)
+ plan_name = models.CharField(max_length=300)
+ run_name = models.CharField(max_length=300)
+ created_by = models.CharField(max_length=300, default="")
+ filter_func = models.TextField(null=True, blank=True)
+ ip_filter = models.BooleanField(default=False)
+ uuid_filter = models.BooleanField(default=False)
+ filter_last_traceback = models.BooleanField(default=False)
+
+
+fs = FileSystemStorage()
+
+
+class Report(models.Model):
+ path = models.FileField(storage=fs, null=True, blank=True)
+ test_run = models.ForeignKey(TestRun, on_delete=models.CASCADE)
+ report_name = models.CharField(max_length=300)
+ finished = models.BooleanField(default=False)