Trending: Remove unneeded tests from Dashboard
[csit.git] / resources / tools / presentation / specification_parser.py
index f994a59..c149e3e 100644 (file)
@@ -112,6 +112,15 @@ class Specification(object):
         """
         return self._specification["configuration"]["ignore"]
 
+    @property
+    def alerting(self):
+        """Getter - Alerting.
+
+        :returns: Specification of alerts.
+        :rtype: dict
+        """
+        return self._specification["configuration"]["alerting"]
+
     @property
     def input(self):
         """Getter - specification - inputs.
@@ -383,6 +392,12 @@ class Specification(object):
         except KeyError:
             self._specification["environment"]["build-dirs"] = None
 
+        try:
+            self._specification["environment"]["testbeds"] = \
+                self._cfg_yaml[idx]["testbeds"]
+        except KeyError:
+            self._specification["environment"]["testbeds"] = None
+
         logging.info("Done.")
 
     def _parse_configuration(self):