From 0b313be8ec73e53c9b04b37e9cda3d62712920aa Mon Sep 17 00:00:00 2001 From: John Bellone Date: Thu, 4 Feb 2016 20:34:57 -0500 Subject: [PATCH] Add coverage to the integration test. --- TODO.md | 1 + .../default/serverspec/localhost/default_spec.rb | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/TODO.md b/TODO.md index a462cd4b..7a11ccc1 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,4 @@ # TODO - Fix the helpers and clean up the where it injects into DSL. - Add custom resource (and multiple providers) for maintaining the Consul client. +- Use the InSpec instead of ServerSpec. diff --git a/test/integration/default/serverspec/localhost/default_spec.rb b/test/integration/default/serverspec/localhost/default_spec.rb index c561f14a..ac97018e 100644 --- a/test/integration/default/serverspec/localhost/default_spec.rb +++ b/test/integration/default/serverspec/localhost/default_spec.rb @@ -10,6 +10,16 @@ it { should be_linked_to '/srv/consul/current/consul' } end +describe group('consul') do + it { should exist } +end + +describe user('consul') do + it { should exist } + it { should belong_to_group('consul') } + it { should have_login_shell('/bin/bash') } +end + describe service('consul') do it { should be_enabled } it { should be_running }