From 572e06e37d437be91657d3553085a9021ebc456d Mon Sep 17 00:00:00 2001 From: Ahmed AbouZaid Date: Wed, 29 Nov 2017 23:04:26 +0100 Subject: [PATCH] make sure consul service is up and running --- .kitchen.yml | 5 +++++ Gemfile | 1 + test/integration/consul/inspec/consul_spec.rb | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 test/integration/consul/inspec/consul_spec.rb diff --git a/.kitchen.yml b/.kitchen.yml index bdc631b..bb2b807 100644 --- a/.kitchen.yml +++ b/.kitchen.yml @@ -5,6 +5,11 @@ driver: privileged: true require_chef_omnibus: false +verifier: + name: inspec + inspec_tests: + - test/integration/consul/inspec + platforms: - name: ubuntu-14.04 driver_config: diff --git a/Gemfile b/Gemfile index 1947ff4..c94467b 100644 --- a/Gemfile +++ b/Gemfile @@ -3,3 +3,4 @@ source "https://rubygems.org" gem "test-kitchen" gem "kitchen-docker" gem "kitchen-salt" +gem "kitchen-inspec" diff --git a/test/integration/consul/inspec/consul_spec.rb b/test/integration/consul/inspec/consul_spec.rb new file mode 100644 index 0000000..9a1bd6a --- /dev/null +++ b/test/integration/consul/inspec/consul_spec.rb @@ -0,0 +1,4 @@ +describe service('consul') do + it { should be_enabled } + it { should be_running } +end