summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-03 00:15:42 +0000
committerGerrit Code Review <review@openstack.org>2018-07-03 00:15:42 +0000
commit0969e906f3f8190d50a3d8b3ebc10f19ef65c34e (patch)
tree13072a102e00ceab39767b28dd0debc06445259c
parent1d29156dde3ae9aca1db7757667dd4580bf471bd (diff)
parenta5d14a2fafda910af27024c61e2bc82e2bc33dd7 (diff)
Merge "Add transparent"
-rw-r--r--grafana_dashboards/schema/panel/base.py1
-rw-r--r--tests/schema/fixtures/dashboard-0030.json1
-rw-r--r--tests/schema/fixtures/dashboard-0030.yaml1
3 files changed, 3 insertions, 0 deletions
diff --git a/grafana_dashboards/schema/panel/base.py b/grafana_dashboards/schema/panel/base.py
index 4945579..79a0483 100644
--- a/grafana_dashboards/schema/panel/base.py
+++ b/grafana_dashboards/schema/panel/base.py
@@ -44,6 +44,7 @@ class Base(object):
44 'dashlist', 'graph', 'singlestat', 'text'), 44 'dashlist', 'graph', 'singlestat', 'text'),
45 v.Optional('id'): int, 45 v.Optional('id'): int,
46 v.Optional('format'): v.Any(self.formats, v.Length(min=1)), 46 v.Optional('format'): v.Any(self.formats, v.Length(min=1)),
47 v.Optional('transparent'): v.All(bool),
47 } 48 }
48 49
49 def get_schema(self): 50 def get_schema(self):
diff --git a/tests/schema/fixtures/dashboard-0030.json b/tests/schema/fixtures/dashboard-0030.json
index decec00..2b8ddbb 100644
--- a/tests/schema/fixtures/dashboard-0030.json
+++ b/tests/schema/fixtures/dashboard-0030.json
@@ -34,6 +34,7 @@
34 } 34 }
35 ], 35 ],
36 "title": "no title (click here)", 36 "title": "no title (click here)",
37 "transparent": true,
37 "type": "graph", 38 "type": "graph",
38 "x-axis": true, 39 "x-axis": true,
39 "y-axis": true 40 "y-axis": true
diff --git a/tests/schema/fixtures/dashboard-0030.yaml b/tests/schema/fixtures/dashboard-0030.yaml
index 6fd6e3b..4f250c8 100644
--- a/tests/schema/fixtures/dashboard-0030.yaml
+++ b/tests/schema/fixtures/dashboard-0030.yaml
@@ -10,6 +10,7 @@ dashboard:
10 - title: no title (click here) 10 - title: no title (click here)
11 type: graph 11 type: graph
12 datasource: graphite 12 datasource: graphite
13 transparent: true
13 targets: 14 targets:
14 - target: "stats.gauges.afs.afs01_dfw_openstack_org.part.vicepa.total" 15 - target: "stats.gauges.afs.afs01_dfw_openstack_org.part.vicepa.total"
15 refId: "A" 16 refId: "A"