]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
spec: Enable webmock connect to IPv4 link-local
authorSebastien Badia <sbadia@redhat.com>
Sat, 5 Sep 2015 23:37:30 +0000 (01:37 +0200)
committerEmilien Macchi <emilien@redhat.com>
Mon, 12 Oct 2015 21:03:58 +0000 (21:03 +0000)
compile and compile.with_all_deps rpsec matchers make
a call to all facts, and especially the ec2 one (this fact, try
to make a connection on the IPv4 link-local for ec2 metadata which
is incompatible with webmock restrictions), this seems to produce
random errors with puppet 3.{3,4}.x and facter 1.7.6.

Closes-bug: #1492636
Change-Id: If27fa1adca40bab7fdfcb0687b68d1524c961325

spec/classes/ceilometer_collector_spec.rb

index 6a0ade1cac8facc78babbab5b7b48da044f3102d..00c83d4ffc6fba5d850fcac2ccf30a0f9139595b 100644 (file)
@@ -1,4 +1,6 @@
 require 'spec_helper'
+# LP1492636 - Cohabitation of compile matcher and webmock
+WebMock.disable_net_connect!(:allow => "169.254.169.254")
 
 describe 'ceilometer::collector' do