add kitchen tests
more of test suites will be added later
Change-Id: I279def2e4b28d64a75a6978ca9c048a05cd588c2
diff --git a/.kitchen.yml b/.kitchen.yml
new file mode 100644
index 0000000..c9cc946
--- /dev/null
+++ b/.kitchen.yml
@@ -0,0 +1,62 @@
+---
+driver:
+ name: docker
+ hostname: kubernetes
+ use_sudo: true
+
+provisioner:
+ name: salt_solo
+ salt_install: bootstrap
+ salt_bootstrap_url: https://bootstrap.saltstack.com
+ salt_version: latest
+ require_chef: false
+ log_level: error
+ formula: kubernetes
+ grains:
+ noservices: True
+ dependencies:
+ - name: linux
+ repo: git
+ source: https://github.com/salt-formulas/salt-formula-linux
+ state_top:
+ base:
+ "*":
+ - linux
+ - kubernetes
+ pillars:
+ top.sls:
+ base:
+ "*":
+ - linux_repo_docker
+ - linux
+ - kubernetes
+ linux.sls:
+ linux:
+ system:
+ enabled: true
+ name: kubernetes
+ pillars-from-files:
+ linux_repo_docker.sls: tests/pillar/repo_docker.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: master_cluster
+ provisioner:
+ pillars-from-files:
+ kubernetes.sls: tests/pillar/master_cluster.sls
+ - name: pool_cluster
+ provisioner:
+ pillars-from-files:
+ kubernetes.sls: tests/pillar/pool_cluster.sls
+
+# vim: ft=yaml sw=2 ts=2 sts=2 tw=125