Add unit tests
Change-Id: I6530d29e834633665f21e330d23fd50471ce0046
diff --git a/tests/pillar/client.sls b/tests/pillar/client.sls
new file mode 100644
index 0000000..9383adb
--- /dev/null
+++ b/tests/pillar/client.sls
@@ -0,0 +1,23 @@
+grafana:
+ client:
+ enabled: true
+ server:
+ protocol: https
+ host: grafana.host
+ port: 3000
+ user: admin
+ password: password
+ datasource:
+ elasticsearch:
+ type: elasticsearch
+ host: log01.domain.com
+ port: 80
+ index: grafana-dash
+ dashboard:
+ system_metrics:
+ title: "Generic system metrics"
+ style: dark
+ editable: false
+ row:
+ top:
+ title: "First row"
\ No newline at end of file
diff --git a/tests/pillar/server.sls b/tests/pillar/server.sls
new file mode 100644
index 0000000..875029d
--- /dev/null
+++ b/tests/pillar/server.sls
@@ -0,0 +1,27 @@
+grafana:
+ server:
+ enabled: true
+ bind:
+ address: 1.2.3.4
+ port: 3000
+ admin:
+ user: admin
+ password: passwd
+ auth:
+ ldap:
+ enabled: true
+ host: '127.0.0.1'
+ port: 389
+ use_ssl: false
+ bind_dn: "cn=admin,dc=grafana,dc=org"
+ bind_password: "grafana"
+ user_search_filter: "(cn=%s)"
+ user_search_base_dns:
+ - "dc=grafana,dc=org"
+ database:
+ engine: postgresql
+ host: localhost
+ port: 5432
+ name: grafana
+ user: grafana
+ password: passwd
\ No newline at end of file