Added Kitchen tests and Travis
Change-Id: Ic56650e5dab61f7dd8fecbc2d3d0e57bc5f69132
diff --git a/.kitchen.yml b/.kitchen.yml
new file mode 100644
index 0000000..9014285
--- /dev/null
+++ b/.kitchen.yml
@@ -0,0 +1,52 @@
+---
+driver:
+ name: docker
+ hostname: telegraf.ci.local
+ use_sudo: false
+
+provisioner:
+ name: salt_solo
+ salt_install: bootstrap
+ salt_bootstrap_url: https://bootstrap.saltstack.com
+ salt_version: latest
+ require_chef: false
+ log_level: error
+ formula: telegraf
+ grains:
+ noservices: True
+ dependencies:
+ - name: linux
+ repo: git
+ source: https://github.com/salt-formulas/salt-formula-linux
+ state_top:
+ base:
+ "*":
+ - linux.system.repo
+ - telegraf
+ pillars:
+ top.sls:
+ base:
+ "*":
+ - telegraf
+ - linux_repo_extra
+ pillars-from-files:
+ linux_repo_extra.sls: tests/pillar/repo_extra.sls
+
+verifier:
+ name: inspec
+ sudo: true
+
+
+platforms:
+ - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial'%>
+ driver_config:
+ image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial'%>
+ platform: ubuntu
+
+suites:
+
+ - name: telegraf_agent
+ provisioner:
+ pillars-from-files:
+ telegraf.sls: tests/pillar/telegraf_agent.sls
+# vim: ft=yaml sw=2 ts=2 sts=2 tw=125