From e53fff4a2a6b952d241f2388827f773815fe2789 Mon Sep 17 00:00:00 2001 From: K Jonathan Harker Date: Wed, 27 Aug 2014 17:18:42 -0700 Subject: [PATCH] Add single_use_slave coverage to the apply tests Currently the single_use_slave class is not tested by the apply tests because there is no code path from a long-living puppet node to this class, so create a dummy node definition for the purpose of adding a path to this class in the apply tests. Change-Id: I4ff4f1e42107b6df7ee7e4c845faa37d0f97ea65 --- manifests/site.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/manifests/site.pp b/manifests/site.pp index a5a37ab83e..55d3ed361c 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -626,4 +626,18 @@ node 'openstackid-dev.openstack.org' { } } +# Node-OS: centos6 +# Node-OS: precise +# Node-OS: trusty +# This is not meant to be an actual node that connects to the master. +# This is a dummy node definition to trigger a test of the code path used by +# nodepool's prepare_node scripts in the apply tests +node 'single-use-slave' { + class { 'openstack_project::single_use_slave': + # Test non-default values from prepare_node_bare.sh + sudo => true, + thin => false, + } +} + # vim:sw=2:ts=2:expandtab:textwidth=79