From 2d1fa76d0fe7163c485cddb29dbbe7adf431022b Mon Sep 17 00:00:00 2001 From: Alan Bishop Date: Fri, 6 Sep 2019 10:49:55 -0700 Subject: [PATCH] Fix tripleo::profile::base::monitoring::sensu rspec test Add ipaddress fact when testing tripleo::profile::base::monitoring::sensu. The latest facterdb no longer defines ::ipaddress, which is the default value for ::sensu module's client_address. Change-Id: I714b8bf69ef26ee7bb5195a3001f86d45e6e1fb6 (cherry picked from commit 04b14abc042045ed55d0f81d470aeaa4555e315a) --- spec/classes/tripleo_profile_base_monitoring_sensu_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/classes/tripleo_profile_base_monitoring_sensu_spec.rb b/spec/classes/tripleo_profile_base_monitoring_sensu_spec.rb index d182af10c..d6a3341d7 100644 --- a/spec/classes/tripleo_profile_base_monitoring_sensu_spec.rb +++ b/spec/classes/tripleo_profile_base_monitoring_sensu_spec.rb @@ -29,7 +29,7 @@ describe 'tripleo::profile::base::monitoring::sensu' do on_supported_os.each do |os, facts| context "on #{os}" do let (:facts) { - facts + facts.merge({ :ipaddress => '127.0.0.1' }) } it_behaves_like 'tripleo::profile::base::monitoring::sensu' end